Class: Increase::Models::EntityUpdateParams::Corporation

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

Defined Under Namespace

Classes: Address

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(address: nil, industry_code: nil, name: nil) ⇒ Object

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

Details of the corporation entity to update. If you specify this parameter and the entity is not a corporation, the request will fail.

Parameters:

  • address (Increase::Models::EntityUpdateParams::Corporation::Address) (defaults to: nil)

    The entity’s physical address. Mail receiving locations like PO Boxes and PMB’s

  • industry_code (String) (defaults to: nil)

    The North American Industry Classification System (NAICS) code for the corporati

  • name (String) (defaults to: nil)

    The legal name of the corporation.



81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# File 'lib/increase/models/entity_update_params.rb', line 81

class Corporation < Increase::Internal::Type::BaseModel
  # @!attribute address
  #   The entity's physical address. Mail receiving locations like PO Boxes and PMB's
  #   are disallowed.
  #
  #   @return [Increase::Models::EntityUpdateParams::Corporation::Address, nil]
  optional :address, -> { Increase::EntityUpdateParams::Corporation::Address }

  # @!attribute industry_code
  #   The North American Industry Classification System (NAICS) code for the
  #   corporation's primary line of business. This is a number, like `5132` for
  #   `Software Publishers`. A full list of classification codes is available
  #   [here](https://increase.com/documentation/data-dictionary#north-american-industry-classification-system-codes).
  #
  #   @return [String, nil]
  optional :industry_code, String

  # @!attribute name
  #   The legal name of the corporation.
  #
  #   @return [String, nil]
  optional :name, String

  # @!method initialize(address: nil, industry_code: nil, name: nil)
  #   Some parameter documentations has been truncated, see
  #   {Increase::Models::EntityUpdateParams::Corporation} for more details.
  #
  #   Details of the corporation entity to update. If you specify this parameter and
  #   the entity is not a corporation, the request will fail.
  #
  #   @param address [Increase::Models::EntityUpdateParams::Corporation::Address] The entity's physical address. Mail receiving locations like PO Boxes and PMB's
  #
  #   @param industry_code [String] The North American Industry Classification System (NAICS) code for the corporati
  #
  #   @param name [String] The legal name of the corporation.

  # @see Increase::Models::EntityUpdateParams::Corporation#address
  class Address < Increase::Internal::Type::BaseModel
    # @!attribute city
    #   The city of the address.
    #
    #   @return [String]
    required :city, String

    # @!attribute line1
    #   The first line of the address. This is usually the street number and street.
    #
    #   @return [String]
    required :line1, String

    # @!attribute state
    #   The two-letter United States Postal Service (USPS) abbreviation for the state of
    #   the address.
    #
    #   @return [String]
    required :state, String

    # @!attribute zip
    #   The ZIP code of the address.
    #
    #   @return [String]
    required :zip, String

    # @!attribute line2
    #   The second line of the address. This might be the floor or room number.
    #
    #   @return [String, nil]
    optional :line2, String

    # @!method initialize(city:, line1:, state:, zip:, line2: nil)
    #   Some parameter documentations has been truncated, see
    #   {Increase::Models::EntityUpdateParams::Corporation::Address} for more details.
    #
    #   The entity's physical address. Mail receiving locations like PO Boxes and PMB's
    #   are disallowed.
    #
    #   @param city [String] The city of the address.
    #
    #   @param line1 [String] The first line of the address. This is usually the street number and street.
    #
    #   @param state [String] The two-letter United States Postal Service (USPS) abbreviation for the state of
    #
    #   @param zip [String] The ZIP code of the address.
    #
    #   @param line2 [String] The second line of the address. This might be the floor or room number.
  end
end

Instance Attribute Details

#addressIncrease::Models::EntityUpdateParams::Corporation::Address?

The entity’s physical address. Mail receiving locations like PO Boxes and PMB’s are disallowed.



87
# File 'lib/increase/models/entity_update_params.rb', line 87

optional :address, -> { Increase::EntityUpdateParams::Corporation::Address }

#industry_codeString?

The North American Industry Classification System (NAICS) code for the corporation’s primary line of business. This is a number, like ‘5132` for `Software Publishers`. A full list of classification codes is available [here](increase.com/documentation/data-dictionary#north-american-industry-classification-system-codes).

Returns:

  • (String, nil)


96
# File 'lib/increase/models/entity_update_params.rb', line 96

optional :industry_code, String

#nameString?

The legal name of the corporation.

Returns:

  • (String, nil)


102
# File 'lib/increase/models/entity_update_params.rb', line 102

optional :name, String