Class: Stripe::TestHelpers::Issuing::AuthorizationCaptureParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::Issuing::AuthorizationCaptureParams
- Defined in:
- lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb
Defined Under Namespace
Classes: PurchaseDetails
Instance Attribute Summary collapse
-
#capture_amount ⇒ Object
The amount to capture from the authorization.
-
#close_authorization ⇒ Object
Whether to close the authorization after capture.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#purchase_details ⇒ Object
Additional purchase information that is optionally provided by the merchant.
Instance Method Summary collapse
-
#initialize(capture_amount: nil, close_authorization: nil, expand: nil, purchase_details: nil) ⇒ AuthorizationCaptureParams
constructor
A new instance of AuthorizationCaptureParams.
Methods inherited from RequestParams
Constructor Details
#initialize(capture_amount: nil, close_authorization: nil, expand: nil, purchase_details: nil) ⇒ AuthorizationCaptureParams
Returns a new instance of AuthorizationCaptureParams.
253 254 255 256 257 258 259 260 261 262 263 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 253 def initialize( capture_amount: nil, close_authorization: nil, expand: nil, purchase_details: nil ) @capture_amount = capture_amount @close_authorization = @expand = @purchase_details = purchase_details end |
Instance Attribute Details
#capture_amount ⇒ Object
The amount to capture from the authorization. If not provided, the full amount of the authorization will be captured. This amount is in the authorization currency and in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal).
245 246 247 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 245 def capture_amount @capture_amount end |
#close_authorization ⇒ Object
Whether to close the authorization after capture. Defaults to true. Set to false to enable multi-capture flows.
247 248 249 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 247 def @close_authorization end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
249 250 251 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 249 def @expand end |
#purchase_details ⇒ Object
Additional purchase information that is optionally provided by the merchant.
251 252 253 |
# File 'lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb', line 251 def purchase_details @purchase_details end |