Class: Stripe::Issuing::TransactionCreateForceCaptureParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/issuing/transaction_create_force_capture_params.rb

Defined Under Namespace

Classes: MerchantData, PurchaseDetails

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, card: nil, currency: nil, expand: nil, merchant_data: nil, purchase_details: nil) ⇒ TransactionCreateForceCaptureParams

Returns a new instance of TransactionCreateForceCaptureParams.



299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
# File 'lib/stripe/params/issuing/transaction_create_force_capture_params.rb', line 299

def initialize(
  amount: nil,
  card: nil,
  currency: nil,
  expand: nil,
  merchant_data: nil,
  purchase_details: nil
)
  @amount = amount
  @card = card
  @currency = currency
  @expand = expand
  @merchant_data = merchant_data
  @purchase_details = purchase_details
end

Instance Attribute Details

#amountObject

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



287
288
289
# File 'lib/stripe/params/issuing/transaction_create_force_capture_params.rb', line 287

def amount
  @amount
end

#cardObject

Card associated with this transaction.



289
290
291
# File 'lib/stripe/params/issuing/transaction_create_force_capture_params.rb', line 289

def card
  @card
end

#currencyObject

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



291
292
293
# File 'lib/stripe/params/issuing/transaction_create_force_capture_params.rb', line 291

def currency
  @currency
end

#expandObject

Specifies which fields in the response should be expanded.



293
294
295
# File 'lib/stripe/params/issuing/transaction_create_force_capture_params.rb', line 293

def expand
  @expand
end

#merchant_dataObject

Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened.



295
296
297
# File 'lib/stripe/params/issuing/transaction_create_force_capture_params.rb', line 295

def merchant_data
  @merchant_data
end

#purchase_detailsObject

Additional purchase information that is optionally provided by the merchant.



297
298
299
# File 'lib/stripe/params/issuing/transaction_create_force_capture_params.rb', line 297

def purchase_details
  @purchase_details
end