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
Value
Union value
[JsonIgnore]
public object? Value { get; }
Property Value
Methods
AsFormFieldPaymentConfigChargeOneOff()
Returns the value as a FormFieldPaymentConfigChargeOneOff if Type is 'formFieldPaymentConfigChargeOneOff', otherwise throws an exception.
public FormFieldPaymentConfigChargeOneOff AsFormFieldPaymentConfigChargeOneOff()
Returns
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
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
objobjectThe 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
Returns
FromFormFieldPaymentConfigChargeSubscription(FormFieldPaymentConfigChargeSubscription)
Factory method to create a union from a Auth0.ManagementApi.FormFieldPaymentConfigChargeSubscription value.
public static FormFieldPaymentConfigCharge FromFormFieldPaymentConfigChargeSubscription(FormFieldPaymentConfigChargeSubscription value)
Parameters
Returns
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
IsFormFieldPaymentConfigChargeSubscription()
Returns true if Type is "formFieldPaymentConfigChargeSubscription"
public bool IsFormFieldPaymentConfigChargeSubscription()
Returns
Match<T>(Func<FormFieldPaymentConfigChargeOneOff, T>, Func<FormFieldPaymentConfigChargeSubscription, T>)
public T Match<T>(Func<FormFieldPaymentConfigChargeOneOff, T> onFormFieldPaymentConfigChargeOneOff, Func<FormFieldPaymentConfigChargeSubscription, T> onFormFieldPaymentConfigChargeSubscription)
Parameters
onFormFieldPaymentConfigChargeOneOffFunc<FormFieldPaymentConfigChargeOneOff, T>onFormFieldPaymentConfigChargeSubscriptionFunc<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
Returns
TryGetFormFieldPaymentConfigChargeSubscription(out FormFieldPaymentConfigChargeSubscription?)
Attempts to cast the value to a FormFieldPaymentConfigChargeSubscription and returns true if successful.
public bool TryGetFormFieldPaymentConfigChargeSubscription(out FormFieldPaymentConfigChargeSubscription? value)
Parameters
Returns
Visit(Action<FormFieldPaymentConfigChargeOneOff>, Action<FormFieldPaymentConfigChargeSubscription>)
public void Visit(Action<FormFieldPaymentConfigChargeOneOff> onFormFieldPaymentConfigChargeOneOff, Action<FormFieldPaymentConfigChargeSubscription> onFormFieldPaymentConfigChargeSubscription)
Parameters
onFormFieldPaymentConfigChargeOneOffAction<FormFieldPaymentConfigChargeOneOff>onFormFieldPaymentConfigChargeSubscriptionAction<FormFieldPaymentConfigChargeSubscription>
Operators
implicit operator FormFieldPaymentConfigCharge(FormFieldPaymentConfigChargeOneOff)
public static implicit operator FormFieldPaymentConfigCharge(FormFieldPaymentConfigChargeOneOff value)
Parameters
Returns
implicit operator FormFieldPaymentConfigCharge(FormFieldPaymentConfigChargeSubscription)
public static implicit operator FormFieldPaymentConfigCharge(FormFieldPaymentConfigChargeSubscription value)