Class: Stripe::TestHelpers::Issuing::TransactionCreateForceCaptureParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TestHelpers::Issuing::TransactionCreateForceCaptureParams
- Defined in:
- lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb
Defined Under Namespace
Classes: MerchantData, PurchaseDetails
Instance Attribute Summary collapse
-
#amount ⇒ Object
The total amount to attempt to capture.
-
#card ⇒ Object
Card associated with this transaction.
-
#currency ⇒ Object
The currency of the capture.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#merchant_data ⇒ Object
Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened.
-
#purchase_details ⇒ Object
Additional purchase information that is optionally provided by the merchant.
Instance Method Summary collapse
-
#initialize(amount: nil, card: nil, currency: nil, expand: nil, merchant_data: nil, purchase_details: nil) ⇒ TransactionCreateForceCaptureParams
constructor
A new instance of TransactionCreateForceCaptureParams.
Methods inherited from RequestParams
Constructor Details
#initialize(amount: nil, card: nil, currency: nil, expand: nil, merchant_data: nil, purchase_details: nil) ⇒ TransactionCreateForceCaptureParams
Returns a new instance of TransactionCreateForceCaptureParams.
300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 300 def initialize( amount: nil, card: nil, currency: nil, expand: nil, merchant_data: nil, purchase_details: nil ) @amount = amount @card = card @currency = currency @expand = @merchant_data = merchant_data @purchase_details = purchase_details end |
Instance Attribute Details
#amount ⇒ Object
The total amount to attempt to capture. This amount is in the provided currency, or defaults to the cards currency, and in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal).
288 289 290 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 288 def amount @amount end |
#card ⇒ Object
Card associated with this transaction.
290 291 292 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 290 def card @card end |
#currency ⇒ Object
The currency of the capture. If not provided, defaults to the currency of the card. Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](stripe.com/docs/currencies).
292 293 294 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 292 def currency @currency end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
294 295 296 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 294 def @expand end |
#merchant_data ⇒ Object
Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened.
296 297 298 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 296 def merchant_data @merchant_data end |
#purchase_details ⇒ Object
Additional purchase information that is optionally provided by the merchant.
298 299 300 |
# File 'lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb', line 298 def purchase_details @purchase_details end |