Class: Stripe::TransferReversalCreateParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/transfer_reversal_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

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 = expand
  @metadata = 
  @refund_application_fee = refund_application_fee
end

Instance Attribute Details

#amountObject

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

#descriptionObject

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

#expandObject

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



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

def 
  @metadata
end

#refund_application_feeObject

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