Class: Lithic::Models::TransactionSimulateCreditAuthorizationAdviceParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb

Overview

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(amount:, descriptor:, pan:, mcc: nil, merchant_acceptor_id: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see Lithic::Models::TransactionSimulateCreditAuthorizationAdviceParams for more details.

Parameters:

  • amount (Integer)

    Amount (in cents). Any value entered will be converted into a negative amount in

  • descriptor (String)

    Merchant descriptor.

  • pan (String)

    Sixteen digit card number.

  • mcc (String) (defaults to: nil)

    Merchant category code for the transaction to be simulated. A four-digit number

  • merchant_acceptor_id (String) (defaults to: nil)

    Unique identifier to identify the payment card acceptor.

  • request_options (Lithic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb', line 44


Instance Attribute Details

#amountInteger

Amount (in cents). Any value entered will be converted into a negative amount in the simulated transaction. For example, entering 100 in this field will appear as a -100 amount in the transaction.

Returns:

  • (Integer)


16
# File 'lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb', line 16

required :amount, Integer

#descriptorString

Merchant descriptor.

Returns:

  • (String)


22
# File 'lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb', line 22

required :descriptor, String

#mccString?

Merchant category code for the transaction to be simulated. A four-digit number listed in ISO 18245. Supported merchant category codes can be found [here](docs.lithic.com/docs/transactions#merchant-category-codes-mccs).

Returns:

  • (String, nil)


36
# File 'lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb', line 36

optional :mcc, String

#merchant_acceptor_idString?

Unique identifier to identify the payment card acceptor.

Returns:

  • (String, nil)


42
# File 'lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb', line 42

optional :merchant_acceptor_id, String

#panString

Sixteen digit card number.

Returns:

  • (String)


28
# File 'lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb', line 28

required :pan, String