Class: Stripe::CustomerBalanceTransactionCreateParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/customer_balance_transaction_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, metadata: nil) ⇒ CustomerBalanceTransactionCreateParams



17
18
19
20
21
22
23
# File 'lib/stripe/params/customer_balance_transaction_create_params.rb', line 17

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

Instance Attribute Details

#amountObject

The integer amount in **cents (or local equivalent)** to apply to the customer’s credit balance.



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

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). Specifies the [‘invoice_credit_balance`](stripe.com/docs/api/customers/object#customer_object-invoice_credit_balance) that this transaction will apply to. If the customer’s ‘currency` is not set, it will be updated to this value.



9
10
11
# File 'lib/stripe/params/customer_balance_transaction_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/customer_balance_transaction_create_params.rb', line 11

def description
  @description
end

#expandObject

Specifies which fields in the response should be expanded.



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

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



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

def 
  @metadata
end