Class: Increase::Models::CardCreateParams::BillingAddress

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

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(account_id: , billing_address: nil, description: nil, digital_wallet: nil, entity_id: nil, request_options: {}) ⇒ Object

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

Parameters:

  • account_id (String) (defaults to: )

    The Account the card should belong to.

  • billing_address (Increase::Models::CardCreateParams::BillingAddress) (defaults to: nil)

    The card’s billing address.

  • description (String) (defaults to: nil)

    The description you choose to give the card.

  • digital_wallet (Increase::Models::CardCreateParams::DigitalWallet) (defaults to: nil)

    The contact information used in the two-factor steps for digital wallet card cre

  • entity_id (String) (defaults to: nil)

    The Entity the card belongs to. You only need to supply this in rare situations

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


61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# File 'lib/increase/models/card_create_params.rb', line 61

class BillingAddress < Increase::Internal::Type::BaseModel
  # @!attribute city
  #   The city of the billing address.
  #
  #   @return [String]
  required :city, String

  # @!attribute line1
  #   The first line of the billing address.
  #
  #   @return [String]
  required :line1, String

  # @!attribute postal_code
  #   The postal code of the billing address.
  #
  #   @return [String]
  required :postal_code, String

  # @!attribute state
  #   The US state of the billing address.
  #
  #   @return [String]
  required :state, String

  # @!attribute line2
  #   The second line of the billing address.
  #
  #   @return [String, nil]
  optional :line2, String

  # @!method initialize(city:, line1:, postal_code:, state:, line2: nil)
  #   The card's billing address.
  #
  #   @param city [String] The city of the billing address.
  #
  #   @param line1 [String] The first line of the billing address.
  #
  #   @param postal_code [String] The postal code of the billing address.
  #
  #   @param state [String] The US state of the billing address.
  #
  #   @param line2 [String] The second line of the billing address.
end

Instance Attribute Details

#cityString

The city of the billing address.

Returns:

  • (String)


66
# File 'lib/increase/models/card_create_params.rb', line 66

required :city, String

#line1String

The first line of the billing address.

Returns:

  • (String)


72
# File 'lib/increase/models/card_create_params.rb', line 72

required :line1, String

#line2String?

The second line of the billing address.

Returns:

  • (String, nil)


90
# File 'lib/increase/models/card_create_params.rb', line 90

optional :line2, String

#postal_codeString

The postal code of the billing address.

Returns:

  • (String)


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

required :postal_code, String

#stateString

The US state of the billing address.

Returns:

  • (String)


84
# File 'lib/increase/models/card_create_params.rb', line 84

required :state, String