DealMakerAPI 0.85.3 → 0.85.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -12
  3. data/docs/InvestorProfileApi.md +48 -54
  4. data/docs/{PatchCorporationProfileRequest.md → PatchInvestorProfilesCorporations.md} +4 -34
  5. data/docs/PatchInvestorProfilesCorporationsBeneficialOwnersInner.md +42 -0
  6. data/docs/{PatchIndividualProfileRequest.md → PatchInvestorProfilesIndividuals.md} +2 -4
  7. data/docs/{PatchJointProfileRequest.md → PatchInvestorProfilesJoints.md} +2 -6
  8. data/docs/{PatchTrustProfileRequest.md → PatchInvestorProfilesTrusts.md} +2 -6
  9. data/docs/{CreateCorporationProfileRequest.md → PostInvestorProfilesCorporations.md} +4 -30
  10. data/docs/PostInvestorProfilesCorporationsBeneficialOwnersInner.md +38 -0
  11. data/docs/{CreateIndividualProfileRequest.md → PostInvestorProfilesIndividuals.md} +2 -4
  12. data/docs/{CreateJointProfileRequest.md → PostInvestorProfilesJoints.md} +2 -6
  13. data/docs/PostInvestorProfilesTrusts.md +46 -0
  14. data/docs/PostInvestorProfilesTrustsTrusteesInner.md +36 -0
  15. data/lib/DealMakerAPI/api/investor_profile_api.rb +75 -63
  16. data/lib/DealMakerAPI/models/patch_investor_profiles_corporations.rb +503 -0
  17. data/lib/DealMakerAPI/models/patch_investor_profiles_corporations_beneficial_owners_inner.rb +342 -0
  18. data/lib/DealMakerAPI/models/{patch_individual_profile_request.rb → patch_investor_profiles_individuals.rb} +5 -14
  19. data/lib/DealMakerAPI/models/{patch_joint_profile_request.rb → patch_investor_profiles_joints.rb} +5 -24
  20. data/lib/DealMakerAPI/models/{patch_trust_profile_request.rb → patch_investor_profiles_trusts.rb} +5 -24
  21. data/lib/DealMakerAPI/models/{create_corporation_profile_request.rb → post_investor_profiles_corporations.rb} +14 -166
  22. data/lib/DealMakerAPI/models/post_investor_profiles_corporations_beneficial_owners_inner.rb +315 -0
  23. data/lib/DealMakerAPI/models/{create_individual_profile_request.rb → post_investor_profiles_individuals.rb} +5 -14
  24. data/lib/DealMakerAPI/models/{create_joint_profile_request.rb → post_investor_profiles_joints.rb} +5 -24
  25. data/lib/DealMakerAPI/models/{create_trust_profile_request.rb → post_investor_profiles_trusts.rb} +12 -142
  26. data/lib/DealMakerAPI/models/post_investor_profiles_trusts_trustees_inner.rb +305 -0
  27. data/lib/DealMakerAPI/version.rb +1 -1
  28. data/lib/DealMakerAPI.rb +11 -8
  29. data/spec/api/investor_profile_api_spec.rb +8 -8
  30. data/spec/models/patch_investor_profiles_corporations_beneficial_owners_inner_spec.rb +106 -0
  31. data/spec/models/patch_investor_profiles_corporations_spec.rb +186 -0
  32. data/spec/models/{create_individual_profile_request_spec.rb → patch_investor_profiles_individuals_spec.rb} +6 -18
  33. data/spec/models/{create_joint_profile_request_spec.rb → patch_investor_profiles_joints_spec.rb} +6 -24
  34. data/spec/models/{patch_trust_profile_request_spec.rb → patch_investor_profiles_trusts_spec.rb} +6 -18
  35. data/spec/models/post_investor_profiles_corporations_beneficial_owners_inner_spec.rb +94 -0
  36. data/spec/models/{create_trust_profile_request_spec.rb → post_investor_profiles_corporations_spec.rb} +30 -30
  37. data/spec/models/{patch_individual_profile_request_spec.rb → post_investor_profiles_individuals_spec.rb} +12 -12
  38. data/spec/models/{patch_joint_profile_request_spec.rb → post_investor_profiles_joints_spec.rb} +12 -18
  39. data/spec/models/post_investor_profiles_trusts_spec.rb +126 -0
  40. data/spec/models/post_investor_profiles_trusts_trustees_inner_spec.rb +88 -0
  41. metadata +46 -34
  42. data/docs/CreateTrustProfileRequest.md +0 -68
  43. data/lib/DealMakerAPI/models/patch_corporation_profile_request.rb +0 -686
  44. data/spec/models/create_corporation_profile_request_spec.rb +0 -270
  45. data/spec/models/patch_corporation_profile_request_spec.rb +0 -276
@@ -14,7 +14,8 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module DealMakerAPI
17
- class PatchTrustProfileRequest
17
+ # Patch trust investor profile
18
+ class PatchInvestorProfilesTrusts
18
19
  # The United States accredited investor information.
19
20
  attr_accessor :us_accredited_category
20
21
 
@@ -30,9 +31,6 @@ module DealMakerAPI
30
31
  # The phone number of the trust.
31
32
  attr_accessor :phone_number
32
33
 
33
- # Trust country.
34
- attr_accessor :country
35
-
36
34
  # Trust street address.
37
35
  attr_accessor :street_address
38
36
 
@@ -66,9 +64,6 @@ module DealMakerAPI
66
64
  # Trustee suffix.
67
65
  attr_accessor :trustee_suffix
68
66
 
69
- # Trustee country.
70
- attr_accessor :trustee_country
71
-
72
67
  # Trustee street address.
73
68
  attr_accessor :trustee_street_address
74
69
 
@@ -120,7 +115,6 @@ module DealMakerAPI
120
115
  :'name' => :'name',
121
116
  :'date' => :'date',
122
117
  :'phone_number' => :'phone_number',
123
- :'country' => :'country',
124
118
  :'street_address' => :'street_address',
125
119
  :'unit2' => :'unit2',
126
120
  :'city' => :'city',
@@ -132,7 +126,6 @@ module DealMakerAPI
132
126
  :'trustee_first_name' => :'trustee_first_name',
133
127
  :'trustee_last_name' => :'trustee_last_name',
134
128
  :'trustee_suffix' => :'trustee_suffix',
135
- :'trustee_country' => :'trustee_country',
136
129
  :'trustee_street_address' => :'trustee_street_address',
137
130
  :'trustee_unit2' => :'trustee_unit2',
138
131
  :'trustee_city' => :'trustee_city',
@@ -156,7 +149,6 @@ module DealMakerAPI
156
149
  :'name' => :'String',
157
150
  :'date' => :'String',
158
151
  :'phone_number' => :'String',
159
- :'country' => :'String',
160
152
  :'street_address' => :'String',
161
153
  :'unit2' => :'String',
162
154
  :'city' => :'String',
@@ -168,7 +160,6 @@ module DealMakerAPI
168
160
  :'trustee_first_name' => :'String',
169
161
  :'trustee_last_name' => :'String',
170
162
  :'trustee_suffix' => :'String',
171
- :'trustee_country' => :'String',
172
163
  :'trustee_street_address' => :'String',
173
164
  :'trustee_unit2' => :'String',
174
165
  :'trustee_city' => :'String',
@@ -189,13 +180,13 @@ module DealMakerAPI
189
180
  # @param [Hash] attributes Model attributes in the form of hash
190
181
  def initialize(attributes = {})
191
182
  if (!attributes.is_a?(Hash))
192
- fail ArgumentError, "The input argument (attributes) must be a hash in `DealMakerAPI::PatchTrustProfileRequest` initialize method"
183
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DealMakerAPI::PatchInvestorProfilesTrusts` initialize method"
193
184
  end
194
185
 
195
186
  # check to see if the attribute exists and convert string to symbol for hash key
196
187
  attributes = attributes.each_with_object({}) { |(k, v), h|
197
188
  if (!self.class.attribute_map.key?(k.to_sym))
198
- fail ArgumentError, "`#{k}` is not a valid attribute in `DealMakerAPI::PatchTrustProfileRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
189
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DealMakerAPI::PatchInvestorProfilesTrusts`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
199
190
  end
200
191
  h[k.to_sym] = v
201
192
  }
@@ -220,10 +211,6 @@ module DealMakerAPI
220
211
  self.phone_number = attributes[:'phone_number']
221
212
  end
222
213
 
223
- if attributes.key?(:'country')
224
- self.country = attributes[:'country']
225
- end
226
-
227
214
  if attributes.key?(:'street_address')
228
215
  self.street_address = attributes[:'street_address']
229
216
  end
@@ -268,10 +255,6 @@ module DealMakerAPI
268
255
  self.trustee_suffix = attributes[:'trustee_suffix']
269
256
  end
270
257
 
271
- if attributes.key?(:'trustee_country')
272
- self.trustee_country = attributes[:'trustee_country']
273
- end
274
-
275
258
  if attributes.key?(:'trustee_street_address')
276
259
  self.trustee_street_address = attributes[:'trustee_street_address']
277
260
  end
@@ -350,7 +333,6 @@ module DealMakerAPI
350
333
  name == o.name &&
351
334
  date == o.date &&
352
335
  phone_number == o.phone_number &&
353
- country == o.country &&
354
336
  street_address == o.street_address &&
355
337
  unit2 == o.unit2 &&
356
338
  city == o.city &&
@@ -362,7 +344,6 @@ module DealMakerAPI
362
344
  trustee_first_name == o.trustee_first_name &&
363
345
  trustee_last_name == o.trustee_last_name &&
364
346
  trustee_suffix == o.trustee_suffix &&
365
- trustee_country == o.trustee_country &&
366
347
  trustee_street_address == o.trustee_street_address &&
367
348
  trustee_unit2 == o.trustee_unit2 &&
368
349
  trustee_city == o.trustee_city &&
@@ -381,7 +362,7 @@ module DealMakerAPI
381
362
  # Calculates hash code according to all attributes.
382
363
  # @return [Integer] Hash code
383
364
  def hash
384
- [us_accredited_category, ca_accredited_investor, name, date, phone_number, country, street_address, unit2, city, region, postal_code, income, net_worth, reg_cf_prior_offerings_amount, trustee_first_name, trustee_last_name, trustee_suffix, trustee_country, trustee_street_address, trustee_unit2, trustee_city, trustee_region, trustee_postal_code, trustee_date_of_birth, trustee_taxpayer_id].hash
365
+ [us_accredited_category, ca_accredited_investor, name, date, phone_number, street_address, unit2, city, region, postal_code, income, net_worth, reg_cf_prior_offerings_amount, trustee_first_name, trustee_last_name, trustee_suffix, trustee_street_address, trustee_unit2, trustee_city, trustee_region, trustee_postal_code, trustee_date_of_birth, trustee_taxpayer_id].hash
385
366
  end
386
367
 
387
368
  # Builds the object from hash
@@ -14,7 +14,8 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module DealMakerAPI
17
- class CreateCorporationProfileRequest
17
+ # Create new corporation investor profile.
18
+ class PostInvestorProfilesCorporations
18
19
  # User email which is associated with investor profile (required).
19
20
  attr_accessor :email
20
21
 
@@ -27,9 +28,6 @@ module DealMakerAPI
27
28
  # The name of the corporation (required).
28
29
  attr_accessor :name
29
30
 
30
- # The country of the corporation (required).
31
- attr_accessor :country
32
-
33
31
  # The street address of the corporation (required).
34
32
  attr_accessor :street_address
35
33
 
@@ -69,9 +67,6 @@ module DealMakerAPI
69
67
  # The suffix of the signing officer.
70
68
  attr_accessor :signing_officer_suffix
71
69
 
72
- # The country of the signing officer (required).
73
- attr_accessor :signing_officer_country
74
-
75
70
  # The street address of the signing officer (required).
76
71
  attr_accessor :signing_officer_street_address
77
72
 
@@ -96,41 +91,7 @@ module DealMakerAPI
96
91
  # The phone number of the signing officer (required).
97
92
  attr_accessor :signing_officer_phone_number
98
93
 
99
- # The list of first names for the beneficial owners (required for beneficial owner 1).
100
- attr_accessor :beneficial_owners_first_name
101
-
102
- # The list of last names for the beneficial owners (required for beneficial owner 1).
103
- attr_accessor :beneficial_owners_last_name
104
-
105
- # The list of suffixes for the beneficial owners.
106
- attr_accessor :beneficial_owners_suffix
107
-
108
- # The list of countries for the beneficial owners (required for beneficial owner 1).
109
- attr_accessor :beneficial_owners_country
110
-
111
- # The list of street addresses for the beneficial owners (required for beneficial owner 1).
112
- attr_accessor :beneficial_owners_street_address
113
-
114
- # The list of street address line 2 for the beneficial owners.
115
- attr_accessor :beneficial_owners_unit2
116
-
117
- # The list of cities for the beneficial owners (required for beneficial owner 1).
118
- attr_accessor :beneficial_owners_city
119
-
120
- # The list of region or states for the beneficial owners (required for beneficial owner 1).
121
- attr_accessor :beneficial_owners_region
122
-
123
- # The list of postal codes or zipcodes for the beneficial owners (required for beneficial owner 1).
124
- attr_accessor :beneficial_owners_postal_code
125
-
126
- # The list of dates of birth for the beneficial owners (required for beneficial owner 1).
127
- attr_accessor :beneficial_owners_date_of_birth
128
-
129
- # The list of taxpayer identification numbers for the beneficial owners (required for beneficial owner 1).
130
- attr_accessor :beneficial_owners_taxpayer_id
131
-
132
- # The list of phone numbers for the beneficial owners (required for beneficial owner 1).
133
- attr_accessor :beneficial_owners_phone_number
94
+ attr_accessor :beneficial_owners
134
95
 
135
96
  class EnumAttributeValidator
136
97
  attr_reader :datatype
@@ -161,7 +122,6 @@ module DealMakerAPI
161
122
  :'us_accredited_category' => :'us_accredited_category',
162
123
  :'ca_accredited_investor' => :'ca_accredited_investor',
163
124
  :'name' => :'name',
164
- :'country' => :'country',
165
125
  :'street_address' => :'street_address',
166
126
  :'unit2' => :'unit2',
167
127
  :'city' => :'city',
@@ -175,7 +135,6 @@ module DealMakerAPI
175
135
  :'signing_officer_first_name' => :'signing_officer_first_name',
176
136
  :'signing_officer_last_name' => :'signing_officer_last_name',
177
137
  :'signing_officer_suffix' => :'signing_officer_suffix',
178
- :'signing_officer_country' => :'signing_officer_country',
179
138
  :'signing_officer_street_address' => :'signing_officer_street_address',
180
139
  :'signing_officer_unit2' => :'signing_officer_unit2',
181
140
  :'signing_officer_city' => :'signing_officer_city',
@@ -184,18 +143,7 @@ module DealMakerAPI
184
143
  :'signing_officer_date_of_birth' => :'signing_officer_date_of_birth',
185
144
  :'signing_officer_taxpayer_id' => :'signing_officer_taxpayer_id',
186
145
  :'signing_officer_phone_number' => :'signing_officer_phone_number',
187
- :'beneficial_owners_first_name' => :'beneficial_owners[first_name]',
188
- :'beneficial_owners_last_name' => :'beneficial_owners[last_name]',
189
- :'beneficial_owners_suffix' => :'beneficial_owners[suffix]',
190
- :'beneficial_owners_country' => :'beneficial_owners[country]',
191
- :'beneficial_owners_street_address' => :'beneficial_owners[street_address]',
192
- :'beneficial_owners_unit2' => :'beneficial_owners[unit2]',
193
- :'beneficial_owners_city' => :'beneficial_owners[city]',
194
- :'beneficial_owners_region' => :'beneficial_owners[region]',
195
- :'beneficial_owners_postal_code' => :'beneficial_owners[postal_code]',
196
- :'beneficial_owners_date_of_birth' => :'beneficial_owners[date_of_birth]',
197
- :'beneficial_owners_taxpayer_id' => :'beneficial_owners[taxpayer_id]',
198
- :'beneficial_owners_phone_number' => :'beneficial_owners[phone_number]'
146
+ :'beneficial_owners' => :'beneficial_owners'
199
147
  }
200
148
  end
201
149
 
@@ -211,7 +159,6 @@ module DealMakerAPI
211
159
  :'us_accredited_category' => :'String',
212
160
  :'ca_accredited_investor' => :'String',
213
161
  :'name' => :'String',
214
- :'country' => :'String',
215
162
  :'street_address' => :'String',
216
163
  :'unit2' => :'String',
217
164
  :'city' => :'String',
@@ -225,7 +172,6 @@ module DealMakerAPI
225
172
  :'signing_officer_first_name' => :'String',
226
173
  :'signing_officer_last_name' => :'String',
227
174
  :'signing_officer_suffix' => :'String',
228
- :'signing_officer_country' => :'String',
229
175
  :'signing_officer_street_address' => :'String',
230
176
  :'signing_officer_unit2' => :'String',
231
177
  :'signing_officer_city' => :'String',
@@ -234,18 +180,7 @@ module DealMakerAPI
234
180
  :'signing_officer_date_of_birth' => :'String',
235
181
  :'signing_officer_taxpayer_id' => :'String',
236
182
  :'signing_officer_phone_number' => :'String',
237
- :'beneficial_owners_first_name' => :'Array<String>',
238
- :'beneficial_owners_last_name' => :'Array<String>',
239
- :'beneficial_owners_suffix' => :'Array<String>',
240
- :'beneficial_owners_country' => :'Array<String>',
241
- :'beneficial_owners_street_address' => :'Array<String>',
242
- :'beneficial_owners_unit2' => :'Array<String>',
243
- :'beneficial_owners_city' => :'Array<String>',
244
- :'beneficial_owners_region' => :'Array<String>',
245
- :'beneficial_owners_postal_code' => :'Array<String>',
246
- :'beneficial_owners_date_of_birth' => :'Array<String>',
247
- :'beneficial_owners_taxpayer_id' => :'Array<String>',
248
- :'beneficial_owners_phone_number' => :'Array<String>'
183
+ :'beneficial_owners' => :'Array<PostInvestorProfilesCorporationsBeneficialOwnersInner>'
249
184
  }
250
185
  end
251
186
 
@@ -259,13 +194,13 @@ module DealMakerAPI
259
194
  # @param [Hash] attributes Model attributes in the form of hash
260
195
  def initialize(attributes = {})
261
196
  if (!attributes.is_a?(Hash))
262
- fail ArgumentError, "The input argument (attributes) must be a hash in `DealMakerAPI::CreateCorporationProfileRequest` initialize method"
197
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DealMakerAPI::PostInvestorProfilesCorporations` initialize method"
263
198
  end
264
199
 
265
200
  # check to see if the attribute exists and convert string to symbol for hash key
266
201
  attributes = attributes.each_with_object({}) { |(k, v), h|
267
202
  if (!self.class.attribute_map.key?(k.to_sym))
268
- fail ArgumentError, "`#{k}` is not a valid attribute in `DealMakerAPI::CreateCorporationProfileRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
203
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DealMakerAPI::PostInvestorProfilesCorporations`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
269
204
  end
270
205
  h[k.to_sym] = v
271
206
  }
@@ -288,10 +223,6 @@ module DealMakerAPI
288
223
  self.name = attributes[:'name']
289
224
  end
290
225
 
291
- if attributes.key?(:'country')
292
- self.country = attributes[:'country']
293
- end
294
-
295
226
  if attributes.key?(:'street_address')
296
227
  self.street_address = attributes[:'street_address']
297
228
  end
@@ -344,10 +275,6 @@ module DealMakerAPI
344
275
  self.signing_officer_suffix = attributes[:'signing_officer_suffix']
345
276
  end
346
277
 
347
- if attributes.key?(:'signing_officer_country')
348
- self.signing_officer_country = attributes[:'signing_officer_country']
349
- end
350
-
351
278
  if attributes.key?(:'signing_officer_street_address')
352
279
  self.signing_officer_street_address = attributes[:'signing_officer_street_address']
353
280
  end
@@ -380,75 +307,9 @@ module DealMakerAPI
380
307
  self.signing_officer_phone_number = attributes[:'signing_officer_phone_number']
381
308
  end
382
309
 
383
- if attributes.key?(:'beneficial_owners_first_name')
384
- if (value = attributes[:'beneficial_owners_first_name']).is_a?(Array)
385
- self.beneficial_owners_first_name = value
386
- end
387
- end
388
-
389
- if attributes.key?(:'beneficial_owners_last_name')
390
- if (value = attributes[:'beneficial_owners_last_name']).is_a?(Array)
391
- self.beneficial_owners_last_name = value
392
- end
393
- end
394
-
395
- if attributes.key?(:'beneficial_owners_suffix')
396
- if (value = attributes[:'beneficial_owners_suffix']).is_a?(Array)
397
- self.beneficial_owners_suffix = value
398
- end
399
- end
400
-
401
- if attributes.key?(:'beneficial_owners_country')
402
- if (value = attributes[:'beneficial_owners_country']).is_a?(Array)
403
- self.beneficial_owners_country = value
404
- end
405
- end
406
-
407
- if attributes.key?(:'beneficial_owners_street_address')
408
- if (value = attributes[:'beneficial_owners_street_address']).is_a?(Array)
409
- self.beneficial_owners_street_address = value
410
- end
411
- end
412
-
413
- if attributes.key?(:'beneficial_owners_unit2')
414
- if (value = attributes[:'beneficial_owners_unit2']).is_a?(Array)
415
- self.beneficial_owners_unit2 = value
416
- end
417
- end
418
-
419
- if attributes.key?(:'beneficial_owners_city')
420
- if (value = attributes[:'beneficial_owners_city']).is_a?(Array)
421
- self.beneficial_owners_city = value
422
- end
423
- end
424
-
425
- if attributes.key?(:'beneficial_owners_region')
426
- if (value = attributes[:'beneficial_owners_region']).is_a?(Array)
427
- self.beneficial_owners_region = value
428
- end
429
- end
430
-
431
- if attributes.key?(:'beneficial_owners_postal_code')
432
- if (value = attributes[:'beneficial_owners_postal_code']).is_a?(Array)
433
- self.beneficial_owners_postal_code = value
434
- end
435
- end
436
-
437
- if attributes.key?(:'beneficial_owners_date_of_birth')
438
- if (value = attributes[:'beneficial_owners_date_of_birth']).is_a?(Array)
439
- self.beneficial_owners_date_of_birth = value
440
- end
441
- end
442
-
443
- if attributes.key?(:'beneficial_owners_taxpayer_id')
444
- if (value = attributes[:'beneficial_owners_taxpayer_id']).is_a?(Array)
445
- self.beneficial_owners_taxpayer_id = value
446
- end
447
- end
448
-
449
- if attributes.key?(:'beneficial_owners_phone_number')
450
- if (value = attributes[:'beneficial_owners_phone_number']).is_a?(Array)
451
- self.beneficial_owners_phone_number = value
310
+ if attributes.key?(:'beneficial_owners')
311
+ if (value = attributes[:'beneficial_owners']).is_a?(Array)
312
+ self.beneficial_owners = value
452
313
  end
453
314
  end
454
315
  end
@@ -470,7 +331,7 @@ module DealMakerAPI
470
331
  def valid?
471
332
  warn '[DEPRECATED] the `valid?` method is obsolete'
472
333
  return false if @email.nil?
473
- us_accredited_category_validator = EnumAttributeValidator.new('String', ["entity_owned_by_accredited_investors", "assets_other", "assets_family_office", "assets_benefit_plan", "assets_state_plan", "assets_501_c_3", "assets_corporation", "broker_or_dealer", "bank_3_a_2", "business_development_company", "private_business_development_company", "investment_company", "rural_business_investment_company", "insurance_company", "family_client", "not_accredited"])
334
+ us_accredited_category_validator = EnumAttributeValidator.new('String', ["entity_owned_by_accredited_investors", "assets_other", "assets_family_office", "assets_benefit_plan", "assets_state_plan", "assets_501_c_3", "assets_corporation", "broker_or_dealer", "bank_3_a_2", "business_development_company", "small_business", "private_business_development_company", "investment_company", "rural_business_investment_company", "insurance_company", "family_client", "not_accredited"])
474
335
  return false unless us_accredited_category_validator.valid?(@us_accredited_category)
475
336
  ca_accredited_investor_validator = EnumAttributeValidator.new('String', ["a", "b", "c", "d", "f", "g", "h", "i", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "x"])
476
337
  return false unless ca_accredited_investor_validator.valid?(@ca_accredited_investor)
@@ -480,7 +341,7 @@ module DealMakerAPI
480
341
  # Custom attribute writer method checking allowed values (enum).
481
342
  # @param [Object] us_accredited_category Object to be assigned
482
343
  def us_accredited_category=(us_accredited_category)
483
- validator = EnumAttributeValidator.new('String', ["entity_owned_by_accredited_investors", "assets_other", "assets_family_office", "assets_benefit_plan", "assets_state_plan", "assets_501_c_3", "assets_corporation", "broker_or_dealer", "bank_3_a_2", "business_development_company", "private_business_development_company", "investment_company", "rural_business_investment_company", "insurance_company", "family_client", "not_accredited"])
344
+ validator = EnumAttributeValidator.new('String', ["entity_owned_by_accredited_investors", "assets_other", "assets_family_office", "assets_benefit_plan", "assets_state_plan", "assets_501_c_3", "assets_corporation", "broker_or_dealer", "bank_3_a_2", "business_development_company", "small_business", "private_business_development_company", "investment_company", "rural_business_investment_company", "insurance_company", "family_client", "not_accredited"])
484
345
  unless validator.valid?(us_accredited_category)
485
346
  fail ArgumentError, "invalid value for \"us_accredited_category\", must be one of #{validator.allowable_values}."
486
347
  end
@@ -506,7 +367,6 @@ module DealMakerAPI
506
367
  us_accredited_category == o.us_accredited_category &&
507
368
  ca_accredited_investor == o.ca_accredited_investor &&
508
369
  name == o.name &&
509
- country == o.country &&
510
370
  street_address == o.street_address &&
511
371
  unit2 == o.unit2 &&
512
372
  city == o.city &&
@@ -520,7 +380,6 @@ module DealMakerAPI
520
380
  signing_officer_first_name == o.signing_officer_first_name &&
521
381
  signing_officer_last_name == o.signing_officer_last_name &&
522
382
  signing_officer_suffix == o.signing_officer_suffix &&
523
- signing_officer_country == o.signing_officer_country &&
524
383
  signing_officer_street_address == o.signing_officer_street_address &&
525
384
  signing_officer_unit2 == o.signing_officer_unit2 &&
526
385
  signing_officer_city == o.signing_officer_city &&
@@ -529,18 +388,7 @@ module DealMakerAPI
529
388
  signing_officer_date_of_birth == o.signing_officer_date_of_birth &&
530
389
  signing_officer_taxpayer_id == o.signing_officer_taxpayer_id &&
531
390
  signing_officer_phone_number == o.signing_officer_phone_number &&
532
- beneficial_owners_first_name == o.beneficial_owners_first_name &&
533
- beneficial_owners_last_name == o.beneficial_owners_last_name &&
534
- beneficial_owners_suffix == o.beneficial_owners_suffix &&
535
- beneficial_owners_country == o.beneficial_owners_country &&
536
- beneficial_owners_street_address == o.beneficial_owners_street_address &&
537
- beneficial_owners_unit2 == o.beneficial_owners_unit2 &&
538
- beneficial_owners_city == o.beneficial_owners_city &&
539
- beneficial_owners_region == o.beneficial_owners_region &&
540
- beneficial_owners_postal_code == o.beneficial_owners_postal_code &&
541
- beneficial_owners_date_of_birth == o.beneficial_owners_date_of_birth &&
542
- beneficial_owners_taxpayer_id == o.beneficial_owners_taxpayer_id &&
543
- beneficial_owners_phone_number == o.beneficial_owners_phone_number
391
+ beneficial_owners == o.beneficial_owners
544
392
  end
545
393
 
546
394
  # @see the `==` method
@@ -552,7 +400,7 @@ module DealMakerAPI
552
400
  # Calculates hash code according to all attributes.
553
401
  # @return [Integer] Hash code
554
402
  def hash
555
- [email, us_accredited_category, ca_accredited_investor, name, country, street_address, unit2, city, region, postal_code, business_number, phone_number, income, net_worth, reg_cf_prior_offerings_amount, signing_officer_first_name, signing_officer_last_name, signing_officer_suffix, signing_officer_country, signing_officer_street_address, signing_officer_unit2, signing_officer_city, signing_officer_region, signing_officer_postal_code, signing_officer_date_of_birth, signing_officer_taxpayer_id, signing_officer_phone_number, beneficial_owners_first_name, beneficial_owners_last_name, beneficial_owners_suffix, beneficial_owners_country, beneficial_owners_street_address, beneficial_owners_unit2, beneficial_owners_city, beneficial_owners_region, beneficial_owners_postal_code, beneficial_owners_date_of_birth, beneficial_owners_taxpayer_id, beneficial_owners_phone_number].hash
403
+ [email, us_accredited_category, ca_accredited_investor, name, street_address, unit2, city, region, postal_code, business_number, phone_number, income, net_worth, reg_cf_prior_offerings_amount, signing_officer_first_name, signing_officer_last_name, signing_officer_suffix, signing_officer_street_address, signing_officer_unit2, signing_officer_city, signing_officer_region, signing_officer_postal_code, signing_officer_date_of_birth, signing_officer_taxpayer_id, signing_officer_phone_number, beneficial_owners].hash
556
404
  end
557
405
 
558
406
  # Builds the object from hash