Class: Stripe::FxQuote::CreateParams::Usage::Payment

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/fx_quote.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.



95
96
97
98
# File 'lib/stripe/resources/fx_quote.rb', line 95

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.



89
90
91
# File 'lib/stripe/resources/fx_quote.rb', line 89

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.



93
94
95
# File 'lib/stripe/resources/fx_quote.rb', line 93

def on_behalf_of
  @on_behalf_of
end