Class: Increase::Models::CardPayment::Element::CardAuthentication

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/card_payment.rb

Overview

Defined Under Namespace

Modules: Category, DenyReason, Status, Type Classes: Challenge, DeviceChannel

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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(id:, billing_address_city:, billing_address_country:, billing_address_line1:, billing_address_line2:, billing_address_line3:, billing_address_postal_code:, billing_address_state:, card_id:, card_payment_id:, cardholder_email:, cardholder_name:, category:, challenge:, created_at:, deny_reason:, device_channel:, merchant_acceptor_id:, merchant_category_code:, merchant_country:, merchant_name:, prior_card_authentication_id:, purchase_amount:, purchase_currency:, real_time_decision_id:, status:, type:) ⇒ Object

Some parameter documentations has been truncated, see Increase::Models::CardPayment::Element::CardAuthentication for more details.

A Card Authentication object. This field will be present in the JSON response if and only if ‘category` is equal to `card_authentication`. Card Authentications are attempts to authenticate a transaction or a card with 3DS.

Parameters:

  • id (String)

    The Card Authentication identifier.

  • billing_address_city (String, nil)

    The city of the cardholder billing address associated with the card used for thi

  • billing_address_country (String, nil)

    The country of the cardholder billing address associated with the card used for

  • billing_address_line1 (String, nil)

    The first line of the cardholder billing address associated with the card used f

  • billing_address_line2 (String, nil)

    The second line of the cardholder billing address associated with the card used

  • billing_address_line3 (String, nil)

    The third line of the cardholder billing address associated with the card used f

  • billing_address_postal_code (String, nil)

    The postal code of the cardholder billing address associated with the card used

  • billing_address_state (String, nil)

    The US state of the cardholder billing address associated with the card used for

  • card_id (String)

    The identifier of the Card.

  • card_payment_id (String)

    The ID of the Card Payment this transaction belongs to.

  • cardholder_email (String, nil)

    The email address of the cardholder.

  • cardholder_name (String, nil)

    The name of the cardholder.

  • category (Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Category, nil)

    The category of the card authentication attempt.

  • challenge (Increase::Models::CardPayment::Element::CardAuthentication::Challenge, nil)

    Details about the challenge, if one was requested.

  • created_at (Time)

    The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) time at which the Card Au

  • deny_reason (Symbol, Increase::Models::CardPayment::Element::CardAuthentication::DenyReason, nil)

    The reason why this authentication attempt was denied, if it was.

  • device_channel (Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel)

    The device channel of the card authentication attempt.

  • merchant_acceptor_id (String)

    The merchant identifier (commonly abbreviated as MID) of the merchant the card i

  • merchant_category_code (String)

    The Merchant Category Code (commonly abbreviated as MCC) of the merchant the car

  • merchant_country (String)

    The country the merchant resides in.

  • merchant_name (String)

    The name of the merchant.

  • prior_card_authentication_id (String, nil)

    The ID of a prior Card Authentication that the requestor used to authenticate th

  • purchase_amount (Integer, nil)

    The purchase amount in minor units.

  • purchase_currency (String, nil)

    The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the authenticati

  • real_time_decision_id (String, nil)

    The identifier of the Real-Time Decision sent to approve or decline this authent

  • status (Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Status)

    The status of the card authentication.

  • type (Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Type)

    A constant representing the object’s type. For this resource it will always be ‘



# File 'lib/increase/models/card_payment.rb', line 501

Instance Attribute Details

#billing_address_cityString?

The city of the cardholder billing address associated with the card used for this purchase.

Returns:

  • (String, nil)


326
# File 'lib/increase/models/card_payment.rb', line 326

required :billing_address_city, String, nil?: true

#billing_address_countryString?

The country of the cardholder billing address associated with the card used for this purchase.

Returns:

  • (String, nil)


333
# File 'lib/increase/models/card_payment.rb', line 333

required :billing_address_country, String, nil?: true

#billing_address_line1String?

The first line of the cardholder billing address associated with the card used for this purchase.

Returns:

  • (String, nil)


340
# File 'lib/increase/models/card_payment.rb', line 340

required :billing_address_line1, String, nil?: true

#billing_address_line2String?

The second line of the cardholder billing address associated with the card used for this purchase.

Returns:

  • (String, nil)


347
# File 'lib/increase/models/card_payment.rb', line 347

required :billing_address_line2, String, nil?: true

#billing_address_line3String?

The third line of the cardholder billing address associated with the card used for this purchase.

Returns:

  • (String, nil)


354
# File 'lib/increase/models/card_payment.rb', line 354

required :billing_address_line3, String, nil?: true

#billing_address_postal_codeString?

The postal code of the cardholder billing address associated with the card used for this purchase.

Returns:

  • (String, nil)


361
# File 'lib/increase/models/card_payment.rb', line 361

required :billing_address_postal_code, String, nil?: true

#billing_address_stateString?

The US state of the cardholder billing address associated with the card used for this purchase.

Returns:

  • (String, nil)


368
# File 'lib/increase/models/card_payment.rb', line 368

required :billing_address_state, String, nil?: true

#card_idString

The identifier of the Card.

Returns:

  • (String)


374
# File 'lib/increase/models/card_payment.rb', line 374

required :card_id, String

#card_payment_idString

The ID of the Card Payment this transaction belongs to.

Returns:

  • (String)


380
# File 'lib/increase/models/card_payment.rb', line 380

required :card_payment_id, String

#cardholder_emailString?

The email address of the cardholder.

Returns:

  • (String, nil)


386
# File 'lib/increase/models/card_payment.rb', line 386

required :cardholder_email, String, nil?: true

#cardholder_nameString?

The name of the cardholder.

Returns:

  • (String, nil)


392
# File 'lib/increase/models/card_payment.rb', line 392

required :cardholder_name, String, nil?: true

#categorySymbol, ...

The category of the card authentication attempt.



398
399
400
401
402
# File 'lib/increase/models/card_payment.rb', line 398

required :category,
enum: -> {
  Increase::CardPayment::Element::CardAuthentication::Category
},
nil?: true

#challengeIncrease::Models::CardPayment::Element::CardAuthentication::Challenge?

Details about the challenge, if one was requested.



408
409
410
411
412
# File 'lib/increase/models/card_payment.rb', line 408

required :challenge,
-> {
  Increase::CardPayment::Element::CardAuthentication::Challenge
},
nil?: true

#created_atTime

The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) time at which the Card Authentication was attempted.

Returns:

  • (Time)


419
# File 'lib/increase/models/card_payment.rb', line 419

required :created_at, Time

#deny_reasonSymbol, ...

The reason why this authentication attempt was denied, if it was.



425
426
427
# File 'lib/increase/models/card_payment.rb', line 425

required :deny_reason,
enum: -> { Increase::CardPayment::Element::CardAuthentication::DenyReason },
nil?: true

#device_channelIncrease::Models::CardPayment::Element::CardAuthentication::DeviceChannel

The device channel of the card authentication attempt.



433
# File 'lib/increase/models/card_payment.rb', line 433

required :device_channel, -> { Increase::CardPayment::Element::CardAuthentication::DeviceChannel }

#idString

The Card Authentication identifier.

Returns:

  • (String)


319
# File 'lib/increase/models/card_payment.rb', line 319

required :id, String

#merchant_acceptor_idString

The merchant identifier (commonly abbreviated as MID) of the merchant the card is transacting with.

Returns:

  • (String)


440
# File 'lib/increase/models/card_payment.rb', line 440

required :merchant_acceptor_id, String

#merchant_category_codeString

The Merchant Category Code (commonly abbreviated as MCC) of the merchant the card is transacting with.

Returns:

  • (String)


447
# File 'lib/increase/models/card_payment.rb', line 447

required :merchant_category_code, String

#merchant_countryString

The country the merchant resides in.

Returns:

  • (String)


453
# File 'lib/increase/models/card_payment.rb', line 453

required :merchant_country, String

#merchant_nameString

The name of the merchant.

Returns:

  • (String)


459
# File 'lib/increase/models/card_payment.rb', line 459

required :merchant_name, String

#prior_card_authentication_idString?

The ID of a prior Card Authentication that the requestor used to authenticate this cardholder for a previous transaction.

Returns:

  • (String, nil)


466
# File 'lib/increase/models/card_payment.rb', line 466

required :prior_card_authentication_id, String, nil?: true

#purchase_amountInteger?

The purchase amount in minor units.

Returns:

  • (Integer, nil)


472
# File 'lib/increase/models/card_payment.rb', line 472

required :purchase_amount, Integer, nil?: true

#purchase_currencyString?

The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the authentication attempt’s purchase currency.

Returns:

  • (String, nil)


479
# File 'lib/increase/models/card_payment.rb', line 479

required :purchase_currency, String, nil?: true

#real_time_decision_idString?

The identifier of the Real-Time Decision sent to approve or decline this authentication attempt.

Returns:

  • (String, nil)


486
# File 'lib/increase/models/card_payment.rb', line 486

required :real_time_decision_id, String, nil?: true

#statusSymbol, Increase::Models::CardPayment::Element::CardAuthentication::Status

The status of the card authentication.



492
# File 'lib/increase/models/card_payment.rb', line 492

required :status, enum: -> { Increase::CardPayment::Element::CardAuthentication::Status }

#typeSymbol, Increase::Models::CardPayment::Element::CardAuthentication::Type

A constant representing the object’s type. For this resource it will always be ‘card_authentication`.



499
# File 'lib/increase/models/card_payment.rb', line 499

required :type, enum: -> { Increase::CardPayment::Element::CardAuthentication::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/increase/models/card_payment.rb', line 575