Class: Stripe::TestHelpers::Issuing::AuthorizationService::IncrementParams

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(expand: nil, increment_amount: nil, is_amount_controllable: nil) ⇒ IncrementParams

Returns a new instance of IncrementParams.



734
735
736
737
738
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 734

def initialize(expand: nil, increment_amount: nil, is_amount_controllable: nil)
  @expand = expand
  @increment_amount = increment_amount
  @is_amount_controllable = is_amount_controllable
end

Instance Attribute Details

#expandObject

Specifies which fields in the response should be expanded.



728
729
730
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 728

def expand
  @expand
end

#increment_amountObject

The amount to increment the authorization by. This amount is in the authorization currency and in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal).



730
731
732
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 730

def increment_amount
  @increment_amount
end

#is_amount_controllableObject

If set ‘true`, you may provide [amount](stripe.com/docs/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization.



732
733
734
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 732

def is_amount_controllable
  @is_amount_controllable
end