Class: Stripe::InvoiceService::CreateParams::TransferData
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::InvoiceService::CreateParams::TransferData
- Defined in:
- lib/stripe/services/invoice_service.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
The amount that will be transferred automatically when the invoice is paid.
-
#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.
1112 1113 1114 1115 |
# File 'lib/stripe/services/invoice_service.rb', line 1112 def initialize(amount: nil, destination: nil) @amount = amount @destination = destination end |
Instance Attribute Details
#amount ⇒ Object
The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred.
1108 1109 1110 |
# File 'lib/stripe/services/invoice_service.rb', line 1108 def amount @amount end |
#destination ⇒ Object
ID of an existing, connected Stripe account.
1110 1111 1112 |
# File 'lib/stripe/services/invoice_service.rb', line 1110 def destination @destination end |