Table of Contents

Class FormFieldPaymentConfigCharge

Namespace
Auth0.ManagementApi
Assembly
Auth0.ManagementApi.dll
[JsonConverter(typeof(FormFieldPaymentConfigCharge.JsonConverter))]
[Serializable]
public class FormFieldPaymentConfigCharge
Inheritance
FormFieldPaymentConfigCharge
Inherited Members
Extension Methods

Properties

Type

Type discriminator

[JsonIgnore]
public string Type { get; }

Property Value

string

Value

Union value

[JsonIgnore]
public object? Value { get; }

Property Value

object

Methods

AsFormFieldPaymentConfigChargeOneOff()

Returns the value as a FormFieldPaymentConfigChargeOneOff if Type is 'formFieldPaymentConfigChargeOneOff', otherwise throws an exception.

public FormFieldPaymentConfigChargeOneOff AsFormFieldPaymentConfigChargeOneOff()

Returns

FormFieldPaymentConfigChargeOneOff

Exceptions

ManagementException

Thrown when Type is not 'formFieldPaymentConfigChargeOneOff'.

AsFormFieldPaymentConfigChargeSubscription()

Returns the value as a FormFieldPaymentConfigChargeSubscription if Type is 'formFieldPaymentConfigChargeSubscription', otherwise throws an exception.

public FormFieldPaymentConfigChargeSubscription AsFormFieldPaymentConfigChargeSubscription()

Returns

FormFieldPaymentConfigChargeSubscription

Exceptions

ManagementException

Thrown when Type is not 'formFieldPaymentConfigChargeSubscription'.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

FromFormFieldPaymentConfigChargeOneOff(FormFieldPaymentConfigChargeOneOff)

Factory method to create a union from a Auth0.ManagementApi.FormFieldPaymentConfigChargeOneOff value.

public static FormFieldPaymentConfigCharge FromFormFieldPaymentConfigChargeOneOff(FormFieldPaymentConfigChargeOneOff value)

Parameters

value FormFieldPaymentConfigChargeOneOff

Returns

FormFieldPaymentConfigCharge

FromFormFieldPaymentConfigChargeSubscription(FormFieldPaymentConfigChargeSubscription)

Factory method to create a union from a Auth0.ManagementApi.FormFieldPaymentConfigChargeSubscription value.

public static FormFieldPaymentConfigCharge FromFormFieldPaymentConfigChargeSubscription(FormFieldPaymentConfigChargeSubscription value)

Parameters

value FormFieldPaymentConfigChargeSubscription

Returns

FormFieldPaymentConfigCharge

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

IsFormFieldPaymentConfigChargeOneOff()

Returns true if Type is "formFieldPaymentConfigChargeOneOff"

public bool IsFormFieldPaymentConfigChargeOneOff()

Returns

bool

IsFormFieldPaymentConfigChargeSubscription()

Returns true if Type is "formFieldPaymentConfigChargeSubscription"

public bool IsFormFieldPaymentConfigChargeSubscription()

Returns

bool

Match<T>(Func<FormFieldPaymentConfigChargeOneOff, T>, Func<FormFieldPaymentConfigChargeSubscription, T>)

public T Match<T>(Func<FormFieldPaymentConfigChargeOneOff, T> onFormFieldPaymentConfigChargeOneOff, Func<FormFieldPaymentConfigChargeSubscription, T> onFormFieldPaymentConfigChargeSubscription)

Parameters

onFormFieldPaymentConfigChargeOneOff Func<FormFieldPaymentConfigChargeOneOff, T>
onFormFieldPaymentConfigChargeSubscription Func<FormFieldPaymentConfigChargeSubscription, T>

Returns

T

Type Parameters

T

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

TryGetFormFieldPaymentConfigChargeOneOff(out FormFieldPaymentConfigChargeOneOff?)

Attempts to cast the value to a FormFieldPaymentConfigChargeOneOff and returns true if successful.

public bool TryGetFormFieldPaymentConfigChargeOneOff(out FormFieldPaymentConfigChargeOneOff? value)

Parameters

value FormFieldPaymentConfigChargeOneOff

Returns

bool

TryGetFormFieldPaymentConfigChargeSubscription(out FormFieldPaymentConfigChargeSubscription?)

Attempts to cast the value to a FormFieldPaymentConfigChargeSubscription and returns true if successful.

public bool TryGetFormFieldPaymentConfigChargeSubscription(out FormFieldPaymentConfigChargeSubscription? value)

Parameters

value FormFieldPaymentConfigChargeSubscription

Returns

bool

Visit(Action<FormFieldPaymentConfigChargeOneOff>, Action<FormFieldPaymentConfigChargeSubscription>)

public void Visit(Action<FormFieldPaymentConfigChargeOneOff> onFormFieldPaymentConfigChargeOneOff, Action<FormFieldPaymentConfigChargeSubscription> onFormFieldPaymentConfigChargeSubscription)

Parameters

onFormFieldPaymentConfigChargeOneOff Action<FormFieldPaymentConfigChargeOneOff>
onFormFieldPaymentConfigChargeSubscription Action<FormFieldPaymentConfigChargeSubscription>

Operators

implicit operator FormFieldPaymentConfigCharge(FormFieldPaymentConfigChargeOneOff)

public static implicit operator FormFieldPaymentConfigCharge(FormFieldPaymentConfigChargeOneOff value)

Parameters

value FormFieldPaymentConfigChargeOneOff

Returns

FormFieldPaymentConfigCharge

implicit operator FormFieldPaymentConfigCharge(FormFieldPaymentConfigChargeSubscription)

public static implicit operator FormFieldPaymentConfigCharge(FormFieldPaymentConfigChargeSubscription value)

Parameters

value FormFieldPaymentConfigChargeSubscription

Returns

FormFieldPaymentConfigCharge