Class: Stripe::Issuing::AuthorizationService::ApproveParams

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

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

Instance Attribute Details

#amountObject

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

#expandObject

Specifies which fields in the response should be expanded.



88
89
90
# File 'lib/stripe/services/issuing/authorization_service.rb', line 88

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



90
91
92
# File 'lib/stripe/services/issuing/authorization_service.rb', line 90

def 
  @metadata
end