class

Stripe::SubscriptionPaymentMethodOptionsParam

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Constants

ERROR_MESSAGE_FOR_NETWORK = "invalid value for \"network\", must be one of [amex, cartes_bancaires, diners, discover, eftpos_au, girocard, interac, jcb, mastercard, unionpay, unknown, visa]."
ERROR_MESSAGE_FOR_REQUEST_THREE_D_SECURE = "invalid value for \"request_three_d_secure\", must be one of [any, automatic, challenge]."
MAX_LENGTH_FOR_NETWORK = 5000
VALID_VALUES_FOR_NETWORK = String.static_array("amex", "cartes_bancaires", "diners", "discover", "eftpos_au", "girocard", "interac", "jcb", "mastercard", "unionpay", "unknown", "visa")
VALID_VALUES_FOR_REQUEST_THREE_D_SECURE = String.static_array("any", "automatic", "challenge")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, mandate_options : Stripe::MandateOptionsParam | Nil = nil, network : String | Nil = nil, request_three_d_secure : String | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
mandate_options
Source
mandate_options=(new_value : Stripe::MandateOptionsParam | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] mandate_options Object to be assigned

Source
network

Selected network to process this Subscription on. Depends on the available networks of the card attached to the Subscription. Can be only set confirm-time.

Source
network=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] network Object to be assigned

Source
request_three_d_secure

We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and other requirements. However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on manually requesting 3D Secure for more information on how this configuration interacts with Radar and our SCA Engine.

Source
request_three_d_secure=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] request_three_d_secure Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source