Class: Stripe::Treasury::OutboundPaymentCreateParams::DestinationPaymentMethodData
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Treasury::OutboundPaymentCreateParams::DestinationPaymentMethodData
- Defined in:
- lib/stripe/params/treasury/outbound_payment_create_params.rb
Defined Under Namespace
Classes: BillingDetails, UsBankAccount
Instance Attribute Summary collapse
-
#billing_details ⇒ Object
Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
-
#financial_account ⇒ Object
Required if type is set to ‘financial_account`.
-
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object.
-
#type ⇒ Object
The type of the PaymentMethod.
-
#us_bank_account ⇒ Object
Required hash if type is set to ‘us_bank_account`.
Instance Method Summary collapse
-
#initialize(billing_details: nil, financial_account: nil, metadata: nil, type: nil, us_bank_account: nil) ⇒ DestinationPaymentMethodData
constructor
A new instance of DestinationPaymentMethodData.
Methods inherited from RequestParams
Constructor Details
#initialize(billing_details: nil, financial_account: nil, metadata: nil, type: nil, us_bank_account: nil) ⇒ DestinationPaymentMethodData
Returns a new instance of DestinationPaymentMethodData.
93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/stripe/params/treasury/outbound_payment_create_params.rb', line 93 def initialize( billing_details: nil, financial_account: nil, metadata: nil, type: nil, us_bank_account: nil ) @billing_details = billing_details @financial_account = financial_account @metadata = @type = type @us_bank_account = us_bank_account end |
Instance Attribute Details
#billing_details ⇒ Object
Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
83 84 85 |
# File 'lib/stripe/params/treasury/outbound_payment_create_params.rb', line 83 def billing_details @billing_details end |
#financial_account ⇒ Object
Required if type is set to ‘financial_account`. The FinancialAccount ID to send funds to.
85 86 87 |
# File 'lib/stripe/params/treasury/outbound_payment_create_params.rb', line 85 def financial_account @financial_account end |
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to ‘metadata`.
87 88 89 |
# File 'lib/stripe/params/treasury/outbound_payment_create_params.rb', line 87 def @metadata end |
#type ⇒ Object
The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
89 90 91 |
# File 'lib/stripe/params/treasury/outbound_payment_create_params.rb', line 89 def type @type end |
#us_bank_account ⇒ Object
Required hash if type is set to ‘us_bank_account`.
91 92 93 |
# File 'lib/stripe/params/treasury/outbound_payment_create_params.rb', line 91 def us_bank_account @us_bank_account end |