class

Stripe::PaymentPagesCheckoutSessionSavedPaymentMethodOptions

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

Constants

ERROR_MESSAGE_FOR_ALLOW_REDISPLAY_FILTERS = "invalid value for \"allow_redisplay_filters\", must be one of [always, limited, unspecified]."
ERROR_MESSAGE_FOR_PAYMENT_METHOD_REMOVE = "invalid value for \"payment_method_remove\", must be one of [disabled, enabled]."
ERROR_MESSAGE_FOR_PAYMENT_METHOD_SAVE = "invalid value for \"payment_method_save\", must be one of [disabled, enabled]."
VALID_VALUES_FOR_ALLOW_REDISPLAY_FILTERS = String.static_array("always", "limited", "unspecified")
VALID_VALUES_FOR_PAYMENT_METHOD_REMOVE = String.static_array("disabled", "enabled")
VALID_VALUES_FOR_PAYMENT_METHOD_SAVE = String.static_array("disabled", "enabled")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, allow_redisplay_filters : Array(String) | Nil = nil, payment_method_remove : String | Nil = nil, payment_method_save : 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

allow_redisplay_filters

Uses the allow_redisplay value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout.

Source
allow_redisplay_filters=(new_value : Array(String) | Nil)

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

Source
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
payment_method_remove

Enable customers to choose if they wish to remove their saved payment methods. Disabled by default.

Source
payment_method_remove=(new_value : String | Nil)

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

Source
payment_method_save

Enable customers to choose if they wish to save their payment method for future use. Disabled by default.

Source
payment_method_save=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] payment_method_save 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