Class: Stripe::Issuing::AuthorizationReverseParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/issuing/authorization_reverse_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(expand: nil, reverse_amount: nil) ⇒ AuthorizationReverseParams

Returns a new instance of AuthorizationReverseParams.



12
13
14
15
# File 'lib/stripe/params/issuing/authorization_reverse_params.rb', line 12

def initialize(expand: nil, reverse_amount: nil)
  @expand = expand
  @reverse_amount = reverse_amount
end

Instance Attribute Details

#expandObject

Specifies which fields in the response should be expanded.



8
9
10
# File 'lib/stripe/params/issuing/authorization_reverse_params.rb', line 8

def expand
  @expand
end

#reverse_amountObject

The amount to reverse from the authorization. If not provided, the full amount of the authorization will be reversed. This amount is in the authorization currency and in the smallest currency unit.



10
11
12
# File 'lib/stripe/params/issuing/authorization_reverse_params.rb', line 10

def reverse_amount
  @reverse_amount
end