Class: Stripe::Issuing::AuthorizationService::ApproveParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Issuing::AuthorizationService::ApproveParams
- Defined in:
- lib/stripe/services/issuing/authorization_service.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
If the authorization’s ‘pending_request.is_amount_controllable` property is `true`, you may provide this value to control how much to hold for the authorization.
-
#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.
Instance Method Summary collapse
-
#initialize(amount: nil, expand: nil, metadata: nil) ⇒ ApproveParams
constructor
A new instance of ApproveParams.
Methods inherited from RequestParams
Constructor Details
#initialize(amount: nil, expand: nil, metadata: nil) ⇒ ApproveParams
Returns a new instance of ApproveParams.
92 93 94 95 96 |
# File 'lib/stripe/services/issuing/authorization_service.rb', line 92 def initialize(amount: nil, expand: nil, metadata: nil) @amount = amount @expand = @metadata = end |
Instance Attribute Details
#amount ⇒ Object
If the authorization’s ‘pending_request.is_amount_controllable` property is `true`, you may provide this value to control how much to hold for the authorization. Must be positive (use [`decline`](stripe.com/docs/api/issuing/authorizations/decline) to decline an authorization request).
86 87 88 |
# File 'lib/stripe/services/issuing/authorization_service.rb', line 86 def amount @amount end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
88 89 90 |
# File 'lib/stripe/services/issuing/authorization_service.rb', line 88 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`.
90 91 92 |
# File 'lib/stripe/services/issuing/authorization_service.rb', line 90 def @metadata end |