Class: Increase::Models::PhysicalCardCreateParams::Shipment

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

Defined Under Namespace

Modules: Method, Schedule Classes: Address

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(city: , line1: , name: , postal_code: , state: , country: nil, line2: nil, line3: nil, phone_number: nil) ⇒ Object

Some parameter documentations has been truncated, see Address for more details.

The address to where the card should be shipped.

Parameters:

  • city (String) (defaults to: )

    The city of the shipping address.

  • line1 (String) (defaults to: )

    The first line of the shipping address.

  • name (String) (defaults to: )

    The name of the recipient.

  • postal_code (String) (defaults to: )

    The postal code of the shipping address.

  • state (String) (defaults to: )

    The state of the shipping address.

  • country (String) (defaults to: nil)

    The two-character ISO 3166-1 code of the country where the card should be shippe

  • line2 (String) (defaults to: nil)

    The second line of the shipping address.

  • line3 (String) (defaults to: nil)

    The third line of the shipping address.

  • phone_number (String) (defaults to: nil)

    The phone number of the recipient.



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


Instance Attribute Details

#addressIncrease::Models::PhysicalCardCreateParams::Shipment::Address

The address to where the card should be shipped.



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

required :address, -> { Increase::PhysicalCardCreateParams::Shipment::Address }

#method_Symbol, Increase::Models::PhysicalCardCreateParams::Shipment::Method

The shipping method to use.



81
82
83
84
85
# File 'lib/increase/models/physical_card_create_params.rb', line 81

required :method_,
enum: -> {
  Increase::PhysicalCardCreateParams::Shipment::Method
},
api_name: :method

#scheduleSymbol, ...

When this physical card should be produced by the card printer. The default timeline is the day after the card printer receives the order, except for ‘FEDEX_PRIORITY_OVERNIGHT` cards, which default to `SAME_DAY`. To use faster production methods, please reach out to [[email protected]]([email protected]).



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

optional :schedule, enum: -> { Increase::PhysicalCardCreateParams::Shipment::Schedule }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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