Class: Stripe::Treasury::InboundTransferCreateParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/treasury/inbound_transfer_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, currency: nil, description: nil, expand: nil, financial_account: nil, metadata: nil, origin_payment_method: nil, statement_descriptor: nil) ⇒ InboundTransferCreateParams

Returns a new instance of InboundTransferCreateParams.



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/stripe/params/treasury/inbound_transfer_create_params.rb', line 24

def initialize(
  amount: nil,
  currency: nil,
  description: nil,
  expand: nil,
  financial_account: nil,
  metadata: nil,
  origin_payment_method: nil,
  statement_descriptor: nil
)
  @amount = amount
  @currency = currency
  @description = description
  @expand = expand
  @financial_account = 
  @metadata = 
  @origin_payment_method = origin_payment_method
  @statement_descriptor = statement_descriptor
end

Instance Attribute Details

#amountObject

Amount (in cents) to be transferred.



8
9
10
# File 'lib/stripe/params/treasury/inbound_transfer_create_params.rb', line 8

def amount
  @amount
end

#currencyObject

Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](stripe.com/docs/currencies).



10
11
12
# File 'lib/stripe/params/treasury/inbound_transfer_create_params.rb', line 10

def currency
  @currency
end

#descriptionObject

An arbitrary string attached to the object. Often useful for displaying to users.



12
13
14
# File 'lib/stripe/params/treasury/inbound_transfer_create_params.rb', line 12

def description
  @description
end

#expandObject

Specifies which fields in the response should be expanded.



14
15
16
# File 'lib/stripe/params/treasury/inbound_transfer_create_params.rb', line 14

def expand
  @expand
end

#financial_accountObject

The FinancialAccount to send funds to.



16
17
18
# File 'lib/stripe/params/treasury/inbound_transfer_create_params.rb', line 16

def 
  @financial_account
end

#metadataObject

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`.



18
19
20
# File 'lib/stripe/params/treasury/inbound_transfer_create_params.rb', line 18

def 
  @metadata
end

#origin_payment_methodObject

The origin payment method to be debited for the InboundTransfer.



20
21
22
# File 'lib/stripe/params/treasury/inbound_transfer_create_params.rb', line 20

def origin_payment_method
  @origin_payment_method
end

#statement_descriptorObject

The complete description that appears on your customers’ statements. Maximum 10 characters.



22
23
24
# File 'lib/stripe/params/treasury/inbound_transfer_create_params.rb', line 22

def statement_descriptor
  @statement_descriptor
end