Class: Lithic::Models::DigitalCardArtAPI

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

Overview

Defined Under Namespace

Modules: Network

Instance Attribute 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:, card_program_token:, created:, description:, is_enabled:, network:, is_card_program_default: nil) ⇒ Object

Parameters:

  • token (String)

    Globally unique identifier for the card art.

  • card_program_token (String)

    Globally unique identifier for the card program.

  • created (Time)

    Timestamp of when card art was created.

  • description (String)

    Description of the card art.

  • is_enabled (Boolean)

    Whether the card art is enabled.

  • network (Symbol, Lithic::Models::DigitalCardArtAPI::Network)

    Card network.

  • is_card_program_default (Boolean) (defaults to: nil)

    Whether the card art is the default card art to be added upon tokenization.



# File 'lib/lithic/models/digital_card_art.rb', line 49


Instance Attribute Details

#card_program_tokenString

Globally unique identifier for the card program.

Returns:

  • (String)


17
# File 'lib/lithic/models/digital_card_art.rb', line 17

required :card_program_token, String

#createdTime

Timestamp of when card art was created.

Returns:

  • (Time)


23
# File 'lib/lithic/models/digital_card_art.rb', line 23

required :created, Time

#descriptionString

Description of the card art.

Returns:

  • (String)


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

required :description, String

#is_card_program_defaultBoolean?

Whether the card art is the default card art to be added upon tokenization.

Returns:

  • (Boolean, nil)


47
# File 'lib/lithic/models/digital_card_art.rb', line 47

optional :is_card_program_default, Lithic::Internal::Type::Boolean

#is_enabledBoolean

Whether the card art is enabled.

Returns:

  • (Boolean)


35
# File 'lib/lithic/models/digital_card_art.rb', line 35

required :is_enabled, Lithic::Internal::Type::Boolean

#networkSymbol, Lithic::Models::DigitalCardArtAPI::Network

Card network.



41
# File 'lib/lithic/models/digital_card_art.rb', line 41

required :network, enum: -> { Lithic::DigitalCardArtAPI::Network }

#tokenString

Globally unique identifier for the card art.

Returns:

  • (String)


11
# File 'lib/lithic/models/digital_card_art.rb', line 11

required :token, String