Class: Stripe::TestHelpers::Issuing::AuthorizationReverseParams

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of AuthorizationReverseParams.



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

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.



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

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](stripe.com/docs/currencies#zero-decimal).



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

def reverse_amount
  @reverse_amount
end