Class: Stripe::ChargeCreateParams::TransferData
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::ChargeCreateParams::TransferData
- Defined in:
- lib/stripe/params/charge_create_params.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
The amount transferred to the destination account, if specified.
-
#destination ⇒ Object
ID of an existing, connected Stripe account.
Instance Method Summary collapse
-
#initialize(amount: nil, destination: nil) ⇒ TransferData
constructor
A new instance of TransferData.
Methods inherited from RequestParams
Constructor Details
#initialize(amount: nil, destination: nil) ⇒ TransferData
84 85 86 87 |
# File 'lib/stripe/params/charge_create_params.rb', line 84 def initialize(amount: nil, destination: nil) @amount = amount @destination = destination end |
Instance Attribute Details
#amount ⇒ Object
The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
80 81 82 |
# File 'lib/stripe/params/charge_create_params.rb', line 80 def amount @amount end |
#destination ⇒ Object
ID of an existing, connected Stripe account.
82 83 84 |
# File 'lib/stripe/params/charge_create_params.rb', line 82 def destination @destination end |