Class: Stripe::TransferReversalCreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TransferReversalCreateParams
- Defined in:
- lib/stripe/params/transfer_reversal_create_params.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
A positive integer in cents (or local equivalent) representing how much of this transfer to reverse.
-
#description ⇒ Object
An arbitrary string which you can attach to a reversal 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.
-
#refund_application_fee ⇒ Object
Boolean indicating whether the application fee should be refunded when reversing this transfer.
Instance Method Summary collapse
-
#initialize(amount: nil, description: nil, expand: nil, metadata: nil, refund_application_fee: nil) ⇒ TransferReversalCreateParams
constructor
A new instance of TransferReversalCreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(amount: nil, description: nil, expand: nil, metadata: nil, refund_application_fee: nil) ⇒ TransferReversalCreateParams
Returns a new instance of TransferReversalCreateParams.
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/stripe/params/transfer_reversal_create_params.rb', line 17 def initialize( amount: nil, description: nil, expand: nil, metadata: nil, refund_application_fee: nil ) @amount = amount @description = description @expand = @metadata = @refund_application_fee = refund_application_fee end |
Instance Attribute Details
#amount ⇒ Object
A positive integer in cents (or local equivalent) representing how much of this transfer to reverse. Can only reverse up to the unreversed amount remaining of the transfer. Partial transfer reversals are only allowed for transfers to Stripe Accounts. Defaults to the entire transfer amount.
7 8 9 |
# File 'lib/stripe/params/transfer_reversal_create_params.rb', line 7 def amount @amount end |
#description ⇒ Object
An arbitrary string which you can attach to a reversal object. This will be unset if you POST an empty value.
9 10 11 |
# File 'lib/stripe/params/transfer_reversal_create_params.rb', line 9 def description @description end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
11 12 13 |
# File 'lib/stripe/params/transfer_reversal_create_params.rb', line 11 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`.
13 14 15 |
# File 'lib/stripe/params/transfer_reversal_create_params.rb', line 13 def @metadata end |
#refund_application_fee ⇒ Object
Boolean indicating whether the application fee should be refunded when reversing this transfer. If a full transfer reversal is given, the full application fee will be refunded. Otherwise, the application fee will be refunded with an amount proportional to the amount of the transfer reversed.
15 16 17 |
# File 'lib/stripe/params/transfer_reversal_create_params.rb', line 15 def refund_application_fee @refund_application_fee end |