Class: Stripe::TransferCreateParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/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, destination: nil, expand: nil, metadata: nil, source_transaction: nil, source_type: nil, transfer_group: nil) ⇒ TransferCreateParams

Returns a new instance of TransferCreateParams.



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

def initialize(
  amount: nil,
  currency: nil,
  description: nil,
  destination: nil,
  expand: nil,
  metadata: nil,
  source_transaction: nil,
  source_type: nil,
  transfer_group: nil
)
  @amount = amount
  @currency = currency
  @description = description
  @destination = destination
  @expand = expand
  @metadata = 
  @source_transaction = source_transaction
  @source_type = source_type
  @transfer_group = transfer_group
end

Instance Attribute Details

#amountObject

A positive integer in cents (or local equivalent) representing how much to transfer.



7
8
9
# File 'lib/stripe/params/transfer_create_params.rb', line 7

def amount
  @amount
end

#currencyObject

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



9
10
11
# File 'lib/stripe/params/transfer_create_params.rb', line 9

def currency
  @currency
end

#descriptionObject

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



11
12
13
# File 'lib/stripe/params/transfer_create_params.rb', line 11

def description
  @description
end

#destinationObject

The ID of a connected Stripe account. <a href=“/docs/connect/separate-charges-and-transfers”>See the Connect documentation</a> for details.



13
14
15
# File 'lib/stripe/params/transfer_create_params.rb', line 13

def destination
  @destination
end

#expandObject

Specifies which fields in the response should be expanded.



15
16
17
# File 'lib/stripe/params/transfer_create_params.rb', line 15

def expand
  @expand
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`.



17
18
19
# File 'lib/stripe/params/transfer_create_params.rb', line 17

def 
  @metadata
end

#source_transactionObject

You can use this parameter to transfer funds from a charge before they are added to your available balance. A pending balance will transfer immediately but the funds will not become available until the original charge becomes available. [See the Connect documentation](stripe.com/docs/connect/separate-charges-and-transfers#transfer-availability) for details.



19
20
21
# File 'lib/stripe/params/transfer_create_params.rb', line 19

def source_transaction
  @source_transaction
end

#source_typeObject

The source balance to use for this transfer. One of ‘bank_account`, `card`, or `fpx`. For most users, this will default to `card`.



21
22
23
# File 'lib/stripe/params/transfer_create_params.rb', line 21

def source_type
  @source_type
end

#transfer_groupObject

A string that identifies this transaction as part of a group. See the [Connect documentation](stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.



23
24
25
# File 'lib/stripe/params/transfer_create_params.rb', line 23

def transfer_group
  @transfer_group
end