Class: Stripe::CustomerBalanceTransactionService::CreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::CustomerBalanceTransactionService::CreateParams
- Defined in:
- lib/stripe/services/customer_balance_transaction_service.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
The integer amount in **cents (or local equivalent)** to apply to the customer’s credit balance.
-
#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.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object.
Instance Method Summary collapse
-
#initialize(amount: nil, currency: nil, description: nil, expand: nil, metadata: nil) ⇒ CreateParams
constructor
A new instance of CreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(amount: nil, currency: nil, description: nil, expand: nil, metadata: nil) ⇒ CreateParams
Returns a new instance of CreateParams.
36 37 38 39 40 41 42 |
# File 'lib/stripe/services/customer_balance_transaction_service.rb', line 36 def initialize(amount: nil, currency: nil, description: nil, expand: nil, metadata: nil) @amount = amount @currency = currency @description = description @expand = @metadata = end |
Instance Attribute Details
#amount ⇒ Object
The integer amount in **cents (or local equivalent)** to apply to the customer’s credit balance.
26 27 28 |
# File 'lib/stripe/services/customer_balance_transaction_service.rb', line 26 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). 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.
28 29 30 |
# File 'lib/stripe/services/customer_balance_transaction_service.rb', line 28 def currency @currency end |
#description ⇒ Object
An arbitrary string attached to the object. Often useful for displaying to users.
30 31 32 |
# File 'lib/stripe/services/customer_balance_transaction_service.rb', line 30 def description @description end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
32 33 34 |
# File 'lib/stripe/services/customer_balance_transaction_service.rb', line 32 def @expand 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`.
34 35 36 |
# File 'lib/stripe/services/customer_balance_transaction_service.rb', line 34 def @metadata end |