Class: Stripe::Treasury::OutboundTransferCreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Treasury::OutboundTransferCreateParams
- Defined in:
- lib/stripe/params/treasury/outbound_transfer_create_params.rb
Defined Under Namespace
Classes: DestinationPaymentMethodData, DestinationPaymentMethodOptions
Instance Attribute Summary collapse
-
#amount ⇒ Object
Amount (in cents) to be transferred.
-
#currency ⇒ Object
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase.
-
#description ⇒ Object
An arbitrary string attached to the object.
-
#destination_payment_method ⇒ Object
The PaymentMethod to use as the payment instrument for the OutboundTransfer.
-
#destination_payment_method_data ⇒ Object
Hash used to generate the PaymentMethod to be used for this OutboundTransfer.
-
#destination_payment_method_options ⇒ Object
Hash describing payment method configuration details.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#financial_account ⇒ Object
The FinancialAccount to pull funds from.
-
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object.
-
#statement_descriptor ⇒ Object
Statement descriptor to be shown on the receiving end of an OutboundTransfer.
Instance Method Summary collapse
-
#initialize(amount: nil, currency: nil, description: nil, destination_payment_method: nil, destination_payment_method_data: nil, destination_payment_method_options: nil, expand: nil, financial_account: nil, metadata: nil, statement_descriptor: nil) ⇒ OutboundTransferCreateParams
constructor
A new instance of OutboundTransferCreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(amount: nil, currency: nil, description: nil, destination_payment_method: nil, destination_payment_method_data: nil, destination_payment_method_options: nil, expand: nil, financial_account: nil, metadata: nil, statement_descriptor: nil) ⇒ OutboundTransferCreateParams
Returns a new instance of OutboundTransferCreateParams.
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/stripe/params/treasury/outbound_transfer_create_params.rb', line 56 def initialize( amount: nil, currency: nil, description: nil, destination_payment_method: nil, destination_payment_method_data: nil, destination_payment_method_options: nil, expand: nil, financial_account: nil, metadata: nil, statement_descriptor: nil ) @amount = amount @currency = currency @description = description @destination_payment_method = destination_payment_method @destination_payment_method_data = destination_payment_method_data @destination_payment_method_options = @expand = @financial_account = financial_account @metadata = @statement_descriptor = statement_descriptor end |
Instance Attribute Details
#amount ⇒ Object
Amount (in cents) to be transferred.
36 37 38 |
# File 'lib/stripe/params/treasury/outbound_transfer_create_params.rb', line 36 def amount @amount end |
#currency ⇒ Object
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](stripe.com/docs/currencies).
38 39 40 |
# File 'lib/stripe/params/treasury/outbound_transfer_create_params.rb', line 38 def currency @currency end |
#description ⇒ Object
An arbitrary string attached to the object. Often useful for displaying to users.
40 41 42 |
# File 'lib/stripe/params/treasury/outbound_transfer_create_params.rb', line 40 def description @description end |
#destination_payment_method ⇒ Object
The PaymentMethod to use as the payment instrument for the OutboundTransfer.
42 43 44 |
# File 'lib/stripe/params/treasury/outbound_transfer_create_params.rb', line 42 def destination_payment_method @destination_payment_method end |
#destination_payment_method_data ⇒ Object
Hash used to generate the PaymentMethod to be used for this OutboundTransfer. Exclusive with ‘destination_payment_method`.
44 45 46 |
# File 'lib/stripe/params/treasury/outbound_transfer_create_params.rb', line 44 def destination_payment_method_data @destination_payment_method_data end |
#destination_payment_method_options ⇒ Object
Hash describing payment method configuration details.
46 47 48 |
# File 'lib/stripe/params/treasury/outbound_transfer_create_params.rb', line 46 def @destination_payment_method_options end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
48 49 50 |
# File 'lib/stripe/params/treasury/outbound_transfer_create_params.rb', line 48 def @expand end |
#financial_account ⇒ Object
The FinancialAccount to pull funds from.
50 51 52 |
# File 'lib/stripe/params/treasury/outbound_transfer_create_params.rb', line 50 def financial_account @financial_account end |
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to ‘metadata`.
52 53 54 |
# File 'lib/stripe/params/treasury/outbound_transfer_create_params.rb', line 52 def @metadata end |
#statement_descriptor ⇒ Object
Statement descriptor to be shown on the receiving end of an OutboundTransfer. Maximum 10 characters for ‘ach` transfers or 140 characters for `us_domestic_wire` transfers. The default value is “transfer”.
54 55 56 |
# File 'lib/stripe/params/treasury/outbound_transfer_create_params.rb', line 54 def statement_descriptor @statement_descriptor end |