Class: Stripe::FxQuoteService::CreateParams::Usage::Payment

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/fx_quote_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(destination: nil, on_behalf_of: nil) ⇒ Payment

Returns a new instance of Payment.



36
37
38
39
# File 'lib/stripe/services/fx_quote_service.rb', line 36

def initialize(destination: nil, on_behalf_of: nil)
  @destination = destination
  @on_behalf_of = on_behalf_of
end

Instance Attribute Details

#destinationObject

The Stripe account ID that the funds will be transferred to.

This field should match the account ID that would be used in the PaymentIntent’s transfer_data field.



30
31
32
# File 'lib/stripe/services/fx_quote_service.rb', line 30

def destination
  @destination
end

#on_behalf_ofObject

The Stripe account ID that these funds are intended for.

This field should match the account ID that would be used in the PaymentIntent’s on_behalf_of field.



34
35
36
# File 'lib/stripe/services/fx_quote_service.rb', line 34

def on_behalf_of
  @on_behalf_of
end