Class: Lithic::Models::CardCreateParams

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

Overview

Defined Under Namespace

Modules: ReplacementSubstatus, ShippingMethod, State, Type

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

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(type:, account_token: nil, bulk_order_token: nil, card_program_token: nil, carrier: nil, digital_card_art_token: nil, exp_month: nil, exp_year: nil, memo: nil, pin: nil, product_id: nil, replacement_account_token: nil, replacement_comment: nil, replacement_for: nil, replacement_substatus: nil, shipping_address: nil, shipping_method: nil, spend_limit: nil, spend_limit_duration: nil, state: nil, request_options: {}) ⇒ Object

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

Parameters:

  • type (Symbol, Lithic::Models::CardCreateParams::Type)

    Card types:

  • account_token (String) (defaults to: nil)

    Globally unique identifier for the account that the card will be associated with

  • bulk_order_token (String) (defaults to: nil)

    Globally unique identifier for an existing bulk order to associate this card wit

  • card_program_token (String) (defaults to: nil)

    For card programs with more than one BIN range. This must be configured with Lit

  • carrier (Lithic::Models::Carrier) (defaults to: nil)
  • digital_card_art_token (String) (defaults to: nil)

    Specifies the digital card art to be displayed in the user’s digital wallet afte

  • exp_month (String) (defaults to: nil)

    Two digit (MM) expiry month. If neither ‘exp_month` nor `exp_year` is provided,

  • exp_year (String) (defaults to: nil)

    Four digit (yyyy) expiry year. If neither ‘exp_month` nor `exp_year` is provided

  • memo (String) (defaults to: nil)

    Friendly name to identify the card.

  • pin (String) (defaults to: nil)

    Encrypted PIN block (in base64). Applies to cards of type ‘PHYSICAL` and `VIRTUA

  • product_id (String) (defaults to: nil)

    Only applicable to cards of type ‘PHYSICAL`. This must be configured with Lithic

  • replacement_account_token (String) (defaults to: nil)

    Restricted field limited to select use cases. Lithic will reach out directly if

  • replacement_comment (String) (defaults to: nil)

    Additional context or information related to the card that this card will replac

  • replacement_for (String) (defaults to: nil)

    Globally unique identifier for the card that this card will replace. If the card

  • replacement_substatus (Symbol, Lithic::Models::CardCreateParams::ReplacementSubstatus) (defaults to: nil)

    Card state substatus values for the card that this card will replace:

  • shipping_address (Lithic::Models::ShippingAddress) (defaults to: nil)
  • shipping_method (Symbol, Lithic::Models::CardCreateParams::ShippingMethod) (defaults to: nil)

    Shipping method for the card. Only applies to cards of type PHYSICAL.

  • spend_limit (Integer) (defaults to: nil)

    Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,00

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

    Spend limit duration values:

  • state (Symbol, Lithic::Models::CardCreateParams::State) (defaults to: nil)

    Card state values:

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


# File 'lib/lithic/models/card_create_params.rb', line 229


Instance Attribute Details

#account_tokenString?

Globally unique identifier for the account that the card will be associated with. Required for programs enrolling users using the [/account_holders endpoint](docs.lithic.com/docs/account-holders-kyc). See [Managing Your Program](doc:managing-your-program) for more information.

Returns:

  • (String, nil)


38
# File 'lib/lithic/models/card_create_params.rb', line 38

optional :account_token, String

#bulk_order_tokenString?

Globally unique identifier for an existing bulk order to associate this card with. When specified, the card will be added to the bulk order for batch shipment. Only applicable to cards of type PHYSICAL

Returns:

  • (String, nil)


46
# File 'lib/lithic/models/card_create_params.rb', line 46

optional :bulk_order_token, String

#card_program_tokenString?

For card programs with more than one BIN range. This must be configured with Lithic before use. Identifies the card program/BIN range under which to create the card. If omitted, will utilize the program’s default ‘card_program_token`. In Sandbox, use 00000000-0000-0000-1000-000000000000 and 00000000-0000-0000-2000-000000000000 to test creating cards on specific card programs.

Returns:

  • (String, nil)


57
# File 'lib/lithic/models/card_create_params.rb', line 57

optional :card_program_token, String

#carrierLithic::Models::Carrier?

Returns:



62
# File 'lib/lithic/models/card_create_params.rb', line 62

optional :carrier, -> { Lithic::Carrier }

#digital_card_art_tokenString?

Specifies the digital card art to be displayed in the user’s digital wallet after tokenization. This artwork must be approved by Mastercard and configured by Lithic to use. See [Flexible Card Art Guide](docs.lithic.com/docs/about-digital-wallets#flexible-card-art).

Returns:

  • (String, nil)


71
# File 'lib/lithic/models/card_create_params.rb', line 71

optional :digital_card_art_token, String

#exp_monthString?

Two digit (MM) expiry month. If neither ‘exp_month` nor `exp_year` is provided, an expiration date will be generated.

Returns:

  • (String, nil)


78
# File 'lib/lithic/models/card_create_params.rb', line 78

optional :exp_month, String

#exp_yearString?

Four digit (yyyy) expiry year. If neither ‘exp_month` nor `exp_year` is provided, an expiration date will be generated.

Returns:

  • (String, nil)


85
# File 'lib/lithic/models/card_create_params.rb', line 85

optional :exp_year, String

#memoString?

Friendly name to identify the card.

Returns:

  • (String, nil)


91
# File 'lib/lithic/models/card_create_params.rb', line 91

optional :memo, String

#pinString?

Encrypted PIN block (in base64). Applies to cards of type ‘PHYSICAL` and `VIRTUAL`. See [Encrypted PIN Block](docs.lithic.com/docs/cards#encrypted-pin-block).

Returns:

  • (String, nil)


99
# File 'lib/lithic/models/card_create_params.rb', line 99

optional :pin, String

#product_idString?

Only applicable to cards of type ‘PHYSICAL`. This must be configured with Lithic before use. Specifies the configuration (i.e., physical card art) that the card should be manufactured with.

Returns:

  • (String, nil)


107
# File 'lib/lithic/models/card_create_params.rb', line 107

optional :product_id, String

#replacement_account_tokenString?

Restricted field limited to select use cases. Lithic will reach out directly if this field should be used. Globally unique identifier for the replacement card’s account. If this field is specified, ‘replacement_for` must also be specified. If `replacement_for` is specified and this field is omitted, the replacement card’s account will be inferred from the card being replaced.

Returns:

  • (String, nil)


117
# File 'lib/lithic/models/card_create_params.rb', line 117

optional :replacement_account_token, String

#replacement_commentString?

Additional context or information related to the card that this card will replace.

Returns:

  • (String, nil)


124
# File 'lib/lithic/models/card_create_params.rb', line 124

optional :replacement_comment, String

#replacement_forString?

Globally unique identifier for the card that this card will replace. If the card type is ‘PHYSICAL` it will be replaced by a `PHYSICAL` card. If the card type is `VIRTUAL` it will be replaced by a `VIRTUAL` card.

Returns:

  • (String, nil)


132
# File 'lib/lithic/models/card_create_params.rb', line 132

optional :replacement_for, String

#replacement_substatusSymbol, ...

Card state substatus values for the card that this card will replace:

  • ‘LOST` - The physical card is no longer in the cardholder’s possession due to being lost or never received by the cardholder.

  • ‘COMPROMISED` - Card information has been exposed, potentially leading to unauthorized access. This may involve physical card theft, cloning, or online data breaches.

  • ‘DAMAGED` - The physical card is not functioning properly, such as having chip failures or a demagnetized magnetic stripe.

  • ‘END_USER_REQUEST` - The cardholder requested the closure of the card for reasons unrelated to fraud or damage, such as switching to a different product or closing the account.

  • ‘ISSUER_REQUEST` - The issuer closed the card for reasons unrelated to fraud or damage, such as account inactivity, product or policy changes, or technology upgrades.

  • ‘NOT_ACTIVE` - The card hasn’t had any transaction activity for a specified period, applicable to statuses like `PAUSED` or `CLOSED`.

  • ‘SUSPICIOUS_ACTIVITY` - The card has one or more suspicious transactions or activities that require review. This can involve prompting the cardholder to confirm legitimate use or report confirmed fraud.

  • ‘INTERNAL_REVIEW` - The card is temporarily paused pending further internal review.

  • ‘EXPIRED` - The card has expired and has been closed without being reissued.

  • ‘UNDELIVERABLE` - The card cannot be delivered to the cardholder and has been returned.

  • ‘OTHER` - The reason for the status does not fall into any of the above categories. A comment should be provided to specify the reason.



164
# File 'lib/lithic/models/card_create_params.rb', line 164

optional :replacement_substatus, enum: -> { Lithic::CardCreateParams::ReplacementSubstatus }

#shipping_addressLithic::Models::ShippingAddress?



169
# File 'lib/lithic/models/card_create_params.rb', line 169

optional :shipping_address, -> { Lithic::ShippingAddress }

#shipping_methodSymbol, ...

Shipping method for the card. Only applies to cards of type PHYSICAL. Use of options besides ‘STANDARD` require additional permissions.

  • ‘STANDARD` - USPS regular mail or similar international option, with no tracking

  • ‘STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with tracking

  • ‘PRIORITY` - USPS Priority, 1-3 day shipping, with tracking

  • ‘EXPRESS` - FedEx or UPS depending on card manufacturer, Express, 3-day shipping, with tracking

  • ‘2_DAY` - FedEx or UPS depending on card manufacturer, 2-day shipping, with tracking

  • ‘EXPEDITED` - FedEx or UPS depending on card manufacturer, Standard Overnight or similar international option, with tracking

  • ‘BULK_EXPEDITED` - Bulk shipment with Expedited shipping



189
# File 'lib/lithic/models/card_create_params.rb', line 189

optional :shipping_method, enum: -> { Lithic::CardCreateParams::ShippingMethod }

#spend_limitInteger?

Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,000 limit). Transaction requests above the spend limit will be declined. Note that a spend limit of 0 is effectively no limit, and should only be used to reset or remove a prior limit. Only a limit of 1 or above will result in declined transactions due to checks against the card limit.

Returns:

  • (Integer, nil)


199
# File 'lib/lithic/models/card_create_params.rb', line 199

optional :spend_limit, Integer

#spend_limit_durationSymbol, ...

Spend limit duration values:

  • ‘ANNUALLY` - Card will authorize transactions up to spend limit for the trailing year.

  • ‘FOREVER` - Card will authorize only up to spend limit for the entire lifetime of the card.

  • ‘MONTHLY` - Card will authorize transactions up to spend limit for the trailing month. 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.

  • ‘TRANSACTION` - Card will authorize multiple transactions if each individual transaction is under the spend limit.

Returns:



216
# File 'lib/lithic/models/card_create_params.rb', line 216

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

#stateSymbol, ...

Card state values:

  • ‘OPEN` - Card will approve authorizations (if they match card and account parameters).

  • ‘PAUSED` - Card will decline authorizations, but can be resumed at a later time.

Returns:



227
# File 'lib/lithic/models/card_create_params.rb', line 227

optional :state, enum: -> { Lithic::CardCreateParams::State }

#typeSymbol, Lithic::Models::CardCreateParams::Type

Card types:

  • ‘VIRTUAL` - Card will authorize at any merchant and can be added to a digital wallet like Apple Pay or Google Pay (if the card program is digital wallet-enabled).

  • ‘PHYSICAL` - Manufactured and sent to the cardholder. We offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe functionality. Reach out at [lithic.com/contact](lithic.com/contact) for more information.

  • ‘SINGLE_USE` - Card is closed upon first successful authorization.

  • ‘MERCHANT_LOCKED` - [Deprecated] Card is locked to the first merchant that successfully authorizes the card.

  • ‘UNLOCKED` - [Deprecated] Similar behavior to VIRTUAL cards, please use VIRTUAL instead.

  • ‘DIGITAL_WALLET` - [Deprecated] Similar behavior to VIRTUAL cards, please use VIRTUAL instead.



29
# File 'lib/lithic/models/card_create_params.rb', line 29

required :type, enum: -> { Lithic::CardCreateParams::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/lithic/models/card_create_params.rb', line 301