Class: Lithic::Models::AsaRequestWebhookEvent::Card

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/asa_request_webhook_event.rb

Overview

See Also:

Defined Under Namespace

Modules: SpendLimitDuration, State, Type

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(token: nil, hostname: nil, last_four: nil, memo: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, type: nil) ⇒ Object

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

Card object in ASA

Parameters:

  • token (String) (defaults to: nil)

    Globally unique identifier for the card.

  • hostname (String) (defaults to: nil)

    Hostname of card’s locked merchant (will be empty if not applicable)

  • last_four (String) (defaults to: nil)

    Last four digits of the card number

  • memo (String) (defaults to: nil)

    Customizable name to identify the card. We recommend against using this field to

  • spend_limit (Integer) (defaults to: nil)

    Amount (in cents) to limit approved authorizations. Purchase requests above the

  • spend_limit_duration (Symbol, Lithic::Models::AsaRequestWebhookEvent::Card::SpendLimitDuration) (defaults to: nil)

    Note that to support recurring monthly payments, which can occur on different da

  • state (Symbol, Lithic::Models::AsaRequestWebhookEvent::Card::State) (defaults to: nil)
  • type (Symbol, Lithic::Models::AsaRequestWebhookEvent::Card::Type) (defaults to: nil)


# File 'lib/lithic/models/asa_request_webhook_event.rb', line 374


Instance Attribute Details

#hostnameString?

Hostname of card’s locked merchant (will be empty if not applicable)

Returns:

  • (String, nil)


328
# File 'lib/lithic/models/asa_request_webhook_event.rb', line 328

optional :hostname, String

#last_fourString?

Last four digits of the card number

Returns:

  • (String, nil)


334
# File 'lib/lithic/models/asa_request_webhook_event.rb', line 334

optional :last_four, String

#memoString?

Customizable name to identify the card. We recommend against using this field to store JSON data as it can cause unexpected behavior.

Returns:

  • (String, nil)


341
# File 'lib/lithic/models/asa_request_webhook_event.rb', line 341

optional :memo, String

#spend_limitInteger?

Amount (in cents) to limit approved authorizations. Purchase requests above the spend limit will be declined (refunds and credits will be approved).

Note that while spend limits are enforced based on authorized and settled volume on a card, they are not recommended to be used for balance or reconciliation-level accuracy. Spend limits also cannot block force posted charges (i.e., when a merchant sends a clearing message without a prior authorization).

Returns:

  • (Integer, nil)


354
# File 'lib/lithic/models/asa_request_webhook_event.rb', line 354

optional :spend_limit, Integer

#spend_limit_durationSymbol, ...

Note that to support recurring monthly payments, which can occur on different day every month, the time window we consider for MONTHLY velocity starts 6 days after the current calendar date one month prior.



362
# File 'lib/lithic/models/asa_request_webhook_event.rb', line 362

optional :spend_limit_duration, enum: -> { Lithic::AsaRequestWebhookEvent::Card::SpendLimitDuration }

#stateSymbol, ...



367
# File 'lib/lithic/models/asa_request_webhook_event.rb', line 367

optional :state, enum: -> { Lithic::AsaRequestWebhookEvent::Card::State }

#tokenString?

Globally unique identifier for the card.

Returns:

  • (String, nil)


322
# File 'lib/lithic/models/asa_request_webhook_event.rb', line 322

optional :token, String

#typeSymbol, ...



372
# File 'lib/lithic/models/asa_request_webhook_event.rb', line 372

optional :type, enum: -> { Lithic::AsaRequestWebhookEvent::Card::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/lithic/models/asa_request_webhook_event.rb', line 409