Class: Stripe::TestHelpers::Issuing::AuthorizationService::CreateParams

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

Defined Under Namespace

Classes: AmountDetails, Fleet, Fuel, MerchantData, NetworkData, VerificationData

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, amount_details: nil, authorization_method: nil, card: nil, currency: nil, expand: nil, fleet: nil, fuel: nil, is_amount_controllable: nil, merchant_amount: nil, merchant_currency: nil, merchant_data: nil, network_data: nil, verification_data: nil, wallet: nil) ⇒ CreateParams

Returns a new instance of CreateParams.



274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 274

def initialize(
  amount: nil,
  amount_details: nil,
  authorization_method: nil,
  card: nil,
  currency: nil,
  expand: nil,
  fleet: nil,
  fuel: nil,
  is_amount_controllable: nil,
  merchant_amount: nil,
  merchant_currency: nil,
  merchant_data: nil,
  network_data: nil,
  verification_data: nil,
  wallet: nil
)
  @amount = amount
  @amount_details = amount_details
  @authorization_method = authorization_method
  @card = card
  @currency = currency
  @expand = expand
  @fleet = fleet
  @fuel = fuel
  @is_amount_controllable = is_amount_controllable
  @merchant_amount = merchant_amount
  @merchant_currency = merchant_currency
  @merchant_data = merchant_data
  @network_data = network_data
  @verification_data = verification_data
  @wallet = wallet
end

Instance Attribute Details

#amountObject

The total amount to attempt to authorize. This amount is in the provided currency, or defaults to the card’s currency, and in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal).



244
245
246
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 244

def amount
  @amount
end

#amount_detailsObject

Detailed breakdown of amount components. These amounts are denominated in ‘currency` and in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal).



246
247
248
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 246

def amount_details
  @amount_details
end

#authorization_methodObject

How the card details were provided. Defaults to online.



248
249
250
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 248

def authorization_method
  @authorization_method
end

#cardObject

Card associated with this authorization.



250
251
252
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 250

def card
  @card
end

#currencyObject

The currency of the authorization. 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).



252
253
254
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 252

def currency
  @currency
end

#expandObject

Specifies which fields in the response should be expanded.



254
255
256
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 254

def expand
  @expand
end

#fleetObject

Fleet-specific information for authorizations using Fleet cards.



256
257
258
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 256

def fleet
  @fleet
end

#fuelObject

Information about fuel that was purchased with this transaction.



258
259
260
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 258

def fuel
  @fuel
end

#is_amount_controllableObject

If set ‘true`, you may provide [amount](stripe.com/docs/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization.



260
261
262
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 260

def is_amount_controllable
  @is_amount_controllable
end

#merchant_amountObject

The total amount to attempt to authorize. This amount is in the provided merchant currency, and in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal).



262
263
264
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 262

def merchant_amount
  @merchant_amount
end

#merchant_currencyObject

The currency of the authorization. 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).



264
265
266
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 264

def merchant_currency
  @merchant_currency
end

#merchant_dataObject

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



266
267
268
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 266

def merchant_data
  @merchant_data
end

#network_dataObject

Details about the authorization, such as identifiers, set by the card network.



268
269
270
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 268

def network_data
  @network_data
end

#verification_dataObject

Verifications that Stripe performed on information that the cardholder provided to the merchant.



270
271
272
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 270

def verification_data
  @verification_data
end

#walletObject

The digital wallet used for this transaction. One of ‘apple_pay`, `google_pay`, or `samsung_pay`. Will populate as `null` when no digital wallet was utilized.



272
273
274
# File 'lib/stripe/services/test_helpers/issuing/authorization_service.rb', line 272

def wallet
  @wallet
end