Class: Stripe::ChargeService::CreateParams::TransferData
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::ChargeService::CreateParams::TransferData
- Defined in:
- lib/stripe/services/charge_service.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
Returns a new instance of TransferData.
141 142 143 144 |
# File 'lib/stripe/services/charge_service.rb', line 141 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.
137 138 139 |
# File 'lib/stripe/services/charge_service.rb', line 137 def amount @amount end |
#destination ⇒ Object
ID of an existing, connected Stripe account.
139 140 141 |
# File 'lib/stripe/services/charge_service.rb', line 139 def destination @destination end |