Class: Increase::Models::PhysicalCardCreateParams

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

Overview

Defined Under Namespace

Classes: Cardholder, Shipment

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

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

Details about the cardholder, as it will appear on the physical 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_create_params.rb', line 62

Instance Attribute Details

#card_idString

The underlying card representing this physical card.

Returns:

  • (String)


14
# File 'lib/increase/models/physical_card_create_params.rb', line 14

required :card_id, String

#cardholderIncrease::Models::PhysicalCardCreateParams::Cardholder

Details about the cardholder, as it will appear on the physical card.



20
# File 'lib/increase/models/physical_card_create_params.rb', line 20

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

#physical_card_profile_idString?

The physical card profile to use for this physical card. The latest default physical card profile will be used if not provided.

Returns:

  • (String, nil)


33
# File 'lib/increase/models/physical_card_create_params.rb', line 33

optional :physical_card_profile_id, String

#shipmentIncrease::Models::PhysicalCardCreateParams::Shipment

The details used to ship this physical card.



26
# File 'lib/increase/models/physical_card_create_params.rb', line 26

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