class Stripe::PaymentMethodConfiguration

Overview

PaymentMethodConfigurations control which payment methods are displayed to your customers when you don't explicitly specify payment method types. You can have multiple configurations with different sets of payment methods for different scenarios. There are two types of PaymentMethodConfigurations. Which is used depends on the charge type: Direct configurations apply to payments created on your account, including Connect destination charges, Connect separate charges and transfers, and payments not involving Connect. Child configurations apply to payments created on your connected accounts using direct charges, and charges with the on_behalf_of parameter. Child configurations have a #parent that sets default values and controls which settings connected accounts may override. You can specify a parent ID at payment time, and Stripe will automatically resolve the connected account’s associated child configuration. Parent configurations are managed in the dashboard and are not available in this API. Related guides: - Payment Method Configurations API - Multiple configurations on dynamic payment methods - Multiple configurations for your Connect accounts

Included Modules

Defined in:

stripe/models/payment_method_configuration.cr

Constant Summary

ERROR_MESSAGE_FOR_OBJECT = "invalid value for \"object\", must be one of [payment_method_configuration]."
MAX_LENGTH_FOR_APPLICATION = 5000
MAX_LENGTH_FOR_ID = 5000
MAX_LENGTH_FOR_NAME = 5000
MAX_LENGTH_FOR_PARENT = 5000
VALID_VALUES_FOR_OBJECT = String.static_array("payment_method_configuration")

Constructors

Instance Method Summary

Instance methods inherited from module OpenApi::Json

after_initialize after_initialize, clone clone, eql?(o : self) eql?, to_hash : Hash(String, JSON::Any) to_hash, to_json_any : JSON::Any to_json_any

Class methods inherited from module OpenApi::Json

build_from_hash(hash : Hash) build_from_hash, build_from_json_any(json_any : JSON::Any) build_from_json_any

Instance methods inherited from module OpenApi::Validatable

list_invalid_properties : Array(String) list_invalid_properties, list_invalid_properties_for(key : String) : Array(String) list_invalid_properties_for, valid? : Bool valid?, validate : Nil validate

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, active : Bool | Nil = nil, application : String | Nil = nil, id : String | Nil = nil, is_default : Bool | Nil = nil, livemode : Bool | Nil = nil, name : String | Nil = nil, object : String | Nil = nil, parent : String | Nil = nil, acss_debit : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, affirm : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, afterpay_clearpay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, alipay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, amazon_pay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, apple_pay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, au_becs_debit : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, bacs_debit : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, bancontact : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, blik : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, boleto : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, card : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, cartes_bancaires : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, cashapp : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, customer_balance : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, eps : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, fpx : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, giropay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, google_pay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, grabpay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, ideal : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, jcb : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, klarna : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, konbini : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, link : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, mobilepay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, multibanco : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, oxxo : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, p24 : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, paynow : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, paypal : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, promptpay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, revolut_pay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, sepa_debit : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, sofort : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, swish : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, twint : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, us_bank_account : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, wechat_pay : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil, zip : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil = nil) #

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


[View source]

Instance Method Detail

def ==(other : self) #

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



[View source]

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


[View source]
def active : Bool | Nil #

[View source]
def active=(new_value : Bool | Nil) #

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


[View source]

[View source]

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


[View source]

[View source]
def afterpay_clearpay=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil) #

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]
def application : String | Nil #

[View source]
def application=(new_value : String | Nil) #

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


[View source]

[View source]
def au_becs_debit=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil) #

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]

[View source]
def cartes_bancaires=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil) #

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


[View source]

[View source]

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


[View source]

[View source]
def customer_balance=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil) #

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]
def hash(hasher) #

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


def id : String | Nil #

[View source]
def id=(new_value : String | Nil) #

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


[View source]

[View source]

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


[View source]
def is_default : Bool | Nil #

[View source]
def is_default=(new_value : Bool | Nil) #

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]
def list_invalid_properties : Array(String) #

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


[View source]
def livemode : Bool | Nil #

[View source]
def livemode=(new_value : Bool | Nil) #

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]
def name : String | Nil #

[View source]
def name=(new_value : String | Nil) #

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


[View source]
def object : String | Nil #

[View source]
def object=(new_value : String | Nil) #

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]
def parent : String | Nil #

[View source]
def parent=(new_value : String | Nil) #

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]

[View source]
def us_bank_account=(new_value : Stripe::PaymentMethodConfigResourcePaymentMethodProperties | Nil) #

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


[View source]
def valid? : Bool #

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


[View source]

[View source]

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


[View source]

[View source]

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


[View source]