Class: Increase::Models::PhysicalCard

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

Overview

Defined Under Namespace

Modules: Status, Type Classes: Cardholder, Shipment

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(first_name: , last_name: ) ⇒ Object

Details about the cardholder, as it appears on the printed card.

Parameters:

  • first_name (String) (defaults to: )

    The cardholder’s first name.

  • last_name (String) (defaults to: )

    The cardholder’s last name.



# File 'lib/increase/models/physical_card.rb', line 65

Instance Attribute Details

#card_idString

The identifier for the Card this Physical Card represents.

Returns:

  • (String)


17
# File 'lib/increase/models/physical_card.rb', line 17

required :card_id, String

#cardholderIncrease::Models::PhysicalCard::Cardholder

Details about the cardholder, as it appears on the printed card.



23
# File 'lib/increase/models/physical_card.rb', line 23

required :cardholder, -> { Increase::PhysicalCard::Cardholder }

#created_atTime

The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) date and time at which the Physical Card was created.

Returns:

  • (Time)


30
# File 'lib/increase/models/physical_card.rb', line 30

required :created_at, Time

#idString

The physical card identifier.

Returns:

  • (String)


11
# File 'lib/increase/models/physical_card.rb', line 11

required :id, String

#idempotency_keyString?

The idempotency key you chose for this object. This value is unique across Increase and is used to ensure that a request is only processed once. Learn more about [idempotency](increase.com/documentation/idempotency-keys).

Returns:

  • (String, nil)


38
# File 'lib/increase/models/physical_card.rb', line 38

required :idempotency_key, String, nil?: true

#physical_card_profile_idString?

The Physical Card Profile used for this Physical Card.

Returns:

  • (String, nil)


44
# File 'lib/increase/models/physical_card.rb', line 44

required :physical_card_profile_id, String, nil?: true

#shipmentIncrease::Models::PhysicalCard::Shipment

The details used to ship this physical card.



50
# File 'lib/increase/models/physical_card.rb', line 50

required :shipment, -> { Increase::PhysicalCard::Shipment }

#statusSymbol, Increase::Models::PhysicalCard::Status

The status of the Physical Card.



56
# File 'lib/increase/models/physical_card.rb', line 56

required :status, enum: -> { Increase::PhysicalCard::Status }

#typeSymbol, Increase::Models::PhysicalCard::Type

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



63
# File 'lib/increase/models/physical_card.rb', line 63

required :type, enum: -> { Increase::PhysicalCard::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/increase/models/physical_card.rb', line 437