DealMakerAPI 0.79.1 → 0.80.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -4
  3. data/docs/AddDocumentRequest.md +24 -0
  4. data/docs/CreateCorporationProfileRequest.md +3 -1
  5. data/docs/CreateIndividualProfileRequest.md +3 -1
  6. data/docs/CreateJointProfileRequest.md +3 -1
  7. data/docs/CreateTrustProfileRequest.md +3 -1
  8. data/docs/DealApi.md +71 -0
  9. data/docs/InvestorApi.md +141 -0
  10. data/docs/PatchCorporationProfileRequest.md +3 -1
  11. data/docs/PatchIndividualProfileRequest.md +3 -1
  12. data/docs/PatchJointProfileRequest.md +3 -1
  13. data/docs/PatchTrustProfileRequest.md +3 -1
  14. data/docs/ShareholderApi.md +74 -0
  15. data/docs/UpdateInvestorRequest.md +3 -1
  16. data/docs/V1EntitiesInvestorProfileCorporation.md +3 -1
  17. data/docs/V1EntitiesInvestorProfileIndividual.md +3 -1
  18. data/docs/V1EntitiesInvestorProfileJoint.md +3 -1
  19. data/docs/V1EntitiesInvestorProfileTrust.md +3 -1
  20. data/docs/V1EntitiesShareholder.md +22 -0
  21. data/docs/V1EntitiesShareholders.md +18 -0
  22. data/lib/DealMakerAPI/api/deal_api.rb +66 -0
  23. data/lib/DealMakerAPI/api/investor_api.rb +153 -0
  24. data/lib/DealMakerAPI/api/shareholder_api.rb +85 -0
  25. data/lib/DealMakerAPI/models/add_document_request.rb +296 -0
  26. data/lib/DealMakerAPI/models/create_corporation_profile_request.rb +24 -2
  27. data/lib/DealMakerAPI/models/create_individual_profile_request.rb +24 -2
  28. data/lib/DealMakerAPI/models/create_joint_profile_request.rb +24 -2
  29. data/lib/DealMakerAPI/models/create_trust_profile_request.rb +24 -2
  30. data/lib/DealMakerAPI/models/patch_corporation_profile_request.rb +24 -2
  31. data/lib/DealMakerAPI/models/patch_individual_profile_request.rb +24 -2
  32. data/lib/DealMakerAPI/models/patch_joint_profile_request.rb +24 -2
  33. data/lib/DealMakerAPI/models/patch_trust_profile_request.rb +24 -2
  34. data/lib/DealMakerAPI/models/update_investor_request.rb +14 -4
  35. data/lib/DealMakerAPI/models/v1_entities_investor_profile_corporation.rb +12 -2
  36. data/lib/DealMakerAPI/models/v1_entities_investor_profile_individual.rb +12 -2
  37. data/lib/DealMakerAPI/models/v1_entities_investor_profile_joint.rb +12 -2
  38. data/lib/DealMakerAPI/models/v1_entities_investor_profile_trust.rb +12 -2
  39. data/lib/DealMakerAPI/models/v1_entities_shareholder.rb +240 -0
  40. data/lib/DealMakerAPI/models/v1_entities_shareholders.rb +220 -0
  41. data/lib/DealMakerAPI/version.rb +1 -1
  42. data/lib/DealMakerAPI.rb +4 -0
  43. data/spec/api/deal_api_spec.rb +13 -0
  44. data/spec/api/investor_api_spec.rb +28 -0
  45. data/spec/api/shareholder_api_spec.rb +47 -0
  46. data/spec/models/add_document_request_spec.rb +56 -0
  47. data/spec/models/create_corporation_profile_request_spec.rb +10 -0
  48. data/spec/models/create_individual_profile_request_spec.rb +10 -0
  49. data/spec/models/create_joint_profile_request_spec.rb +10 -0
  50. data/spec/models/create_trust_profile_request_spec.rb +10 -0
  51. data/spec/models/patch_corporation_profile_request_spec.rb +10 -0
  52. data/spec/models/patch_individual_profile_request_spec.rb +10 -0
  53. data/spec/models/patch_joint_profile_request_spec.rb +10 -0
  54. data/spec/models/patch_trust_profile_request_spec.rb +10 -0
  55. data/spec/models/update_investor_request_spec.rb +6 -0
  56. data/spec/models/v1_entities_investor_profile_corporation_spec.rb +6 -0
  57. data/spec/models/v1_entities_investor_profile_individual_spec.rb +6 -0
  58. data/spec/models/v1_entities_investor_profile_joint_spec.rb +6 -0
  59. data/spec/models/v1_entities_investor_profile_trust_spec.rb +6 -0
  60. data/spec/models/v1_entities_shareholder_spec.rb +46 -0
  61. data/spec/models/v1_entities_shareholders_spec.rb +34 -0
  62. metadata +61 -45
@@ -15,9 +15,12 @@ require 'time'
15
15
 
16
16
  module DealMakerAPI
17
17
  class PatchCorporationProfileRequest
18
- # The accredited investor information.
18
+ # The United States accredited investor information.
19
19
  attr_accessor :us_accredited_category
20
20
 
21
+ # The Canadian accredited investor information.
22
+ attr_accessor :ca_accredited_investor
23
+
21
24
  # Corporation name.
22
25
  attr_accessor :name
23
26
 
@@ -113,6 +116,7 @@ module DealMakerAPI
113
116
  def self.attribute_map
114
117
  {
115
118
  :'us_accredited_category' => :'us_accredited_category',
119
+ :'ca_accredited_investor' => :'ca_accredited_investor',
116
120
  :'name' => :'name',
117
121
  :'country' => :'country',
118
122
  :'street_address' => :'street_address',
@@ -148,6 +152,7 @@ module DealMakerAPI
148
152
  def self.openapi_types
149
153
  {
150
154
  :'us_accredited_category' => :'String',
155
+ :'ca_accredited_investor' => :'String',
151
156
  :'name' => :'String',
152
157
  :'country' => :'String',
153
158
  :'street_address' => :'String',
@@ -199,6 +204,10 @@ module DealMakerAPI
199
204
  self.us_accredited_category = attributes[:'us_accredited_category']
200
205
  end
201
206
 
207
+ if attributes.key?(:'ca_accredited_investor')
208
+ self.ca_accredited_investor = attributes[:'ca_accredited_investor']
209
+ end
210
+
202
211
  if attributes.key?(:'name')
203
212
  self.name = attributes[:'name']
204
213
  end
@@ -304,6 +313,8 @@ module DealMakerAPI
304
313
  def valid?
305
314
  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"])
306
315
  return false unless us_accredited_category_validator.valid?(@us_accredited_category)
316
+ 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"])
317
+ return false unless ca_accredited_investor_validator.valid?(@ca_accredited_investor)
307
318
  true
308
319
  end
309
320
 
@@ -317,12 +328,23 @@ module DealMakerAPI
317
328
  @us_accredited_category = us_accredited_category
318
329
  end
319
330
 
331
+ # Custom attribute writer method checking allowed values (enum).
332
+ # @param [Object] ca_accredited_investor Object to be assigned
333
+ def ca_accredited_investor=(ca_accredited_investor)
334
+ validator = EnumAttributeValidator.new('String', ["a", "b", "c", "d", "f", "g", "h", "i", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "x"])
335
+ unless validator.valid?(ca_accredited_investor)
336
+ fail ArgumentError, "invalid value for \"ca_accredited_investor\", must be one of #{validator.allowable_values}."
337
+ end
338
+ @ca_accredited_investor = ca_accredited_investor
339
+ end
340
+
320
341
  # Checks equality by comparing each attribute.
321
342
  # @param [Object] Object to be compared
322
343
  def ==(o)
323
344
  return true if self.equal?(o)
324
345
  self.class == o.class &&
325
346
  us_accredited_category == o.us_accredited_category &&
347
+ ca_accredited_investor == o.ca_accredited_investor &&
326
348
  name == o.name &&
327
349
  country == o.country &&
328
350
  street_address == o.street_address &&
@@ -357,7 +379,7 @@ module DealMakerAPI
357
379
  # Calculates hash code according to all attributes.
358
380
  # @return [Integer] Hash code
359
381
  def hash
360
- [us_accredited_category, 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].hash
382
+ [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].hash
361
383
  end
362
384
 
363
385
  # Builds the object from hash
@@ -15,9 +15,12 @@ require 'time'
15
15
 
16
16
  module DealMakerAPI
17
17
  class PatchIndividualProfileRequest
18
- # The accredited investor information.
18
+ # The United States accredited investor information.
19
19
  attr_accessor :us_accredited_category
20
20
 
21
+ # The Canadian accredited investor information.
22
+ attr_accessor :ca_accredited_investor
23
+
21
24
  # The first name of the individual investor profile.
22
25
  attr_accessor :first_name
23
26
 
@@ -89,6 +92,7 @@ module DealMakerAPI
89
92
  def self.attribute_map
90
93
  {
91
94
  :'us_accredited_category' => :'us_accredited_category',
95
+ :'ca_accredited_investor' => :'ca_accredited_investor',
92
96
  :'first_name' => :'first_name',
93
97
  :'last_name' => :'last_name',
94
98
  :'suffix' => :'suffix',
@@ -116,6 +120,7 @@ module DealMakerAPI
116
120
  def self.openapi_types
117
121
  {
118
122
  :'us_accredited_category' => :'String',
123
+ :'ca_accredited_investor' => :'String',
119
124
  :'first_name' => :'String',
120
125
  :'last_name' => :'String',
121
126
  :'suffix' => :'String',
@@ -159,6 +164,10 @@ module DealMakerAPI
159
164
  self.us_accredited_category = attributes[:'us_accredited_category']
160
165
  end
161
166
 
167
+ if attributes.key?(:'ca_accredited_investor')
168
+ self.ca_accredited_investor = attributes[:'ca_accredited_investor']
169
+ end
170
+
162
171
  if attributes.key?(:'first_name')
163
172
  self.first_name = attributes[:'first_name']
164
173
  end
@@ -232,6 +241,8 @@ module DealMakerAPI
232
241
  def valid?
233
242
  us_accredited_category_validator = EnumAttributeValidator.new('String', ["income_individual", "assets_individual", "director", "knowledgable_employee", "broker_or_dealer", "investment_advisor_registered", "investment_advisor_relying", "designated_accredited_investor", "not_accredited"])
234
243
  return false unless us_accredited_category_validator.valid?(@us_accredited_category)
244
+ ca_accredited_investor_validator = EnumAttributeValidator.new('String', ["d", "e", "e_1", "j", "j_1", "k", "l", "q", "v", "x"])
245
+ return false unless ca_accredited_investor_validator.valid?(@ca_accredited_investor)
235
246
  true
236
247
  end
237
248
 
@@ -245,12 +256,23 @@ module DealMakerAPI
245
256
  @us_accredited_category = us_accredited_category
246
257
  end
247
258
 
259
+ # Custom attribute writer method checking allowed values (enum).
260
+ # @param [Object] ca_accredited_investor Object to be assigned
261
+ def ca_accredited_investor=(ca_accredited_investor)
262
+ validator = EnumAttributeValidator.new('String', ["d", "e", "e_1", "j", "j_1", "k", "l", "q", "v", "x"])
263
+ unless validator.valid?(ca_accredited_investor)
264
+ fail ArgumentError, "invalid value for \"ca_accredited_investor\", must be one of #{validator.allowable_values}."
265
+ end
266
+ @ca_accredited_investor = ca_accredited_investor
267
+ end
268
+
248
269
  # Checks equality by comparing each attribute.
249
270
  # @param [Object] Object to be compared
250
271
  def ==(o)
251
272
  return true if self.equal?(o)
252
273
  self.class == o.class &&
253
274
  us_accredited_category == o.us_accredited_category &&
275
+ ca_accredited_investor == o.ca_accredited_investor &&
254
276
  first_name == o.first_name &&
255
277
  last_name == o.last_name &&
256
278
  suffix == o.suffix &&
@@ -277,7 +299,7 @@ module DealMakerAPI
277
299
  # Calculates hash code according to all attributes.
278
300
  # @return [Integer] Hash code
279
301
  def hash
280
- [us_accredited_category, first_name, last_name, suffix, date_of_birth, taxpayer_id, phone_number, country, street_address, unit2, city, region, postal_code, income, net_worth, reg_cf_prior_offerings_amount].hash
302
+ [us_accredited_category, ca_accredited_investor, first_name, last_name, suffix, date_of_birth, taxpayer_id, phone_number, country, street_address, unit2, city, region, postal_code, income, net_worth, reg_cf_prior_offerings_amount].hash
281
303
  end
282
304
 
283
305
  # Builds the object from hash
@@ -15,9 +15,12 @@ require 'time'
15
15
 
16
16
  module DealMakerAPI
17
17
  class PatchJointProfileRequest
18
- # The accredited investor information.
18
+ # The United States accredited investor information.
19
19
  attr_accessor :us_accredited_category
20
20
 
21
+ # The Canadian accredited investor information.
22
+ attr_accessor :ca_accredited_investor
23
+
21
24
  # The kind of joint investor.
22
25
  attr_accessor :joint_type
23
26
 
@@ -125,6 +128,7 @@ module DealMakerAPI
125
128
  def self.attribute_map
126
129
  {
127
130
  :'us_accredited_category' => :'us_accredited_category',
131
+ :'ca_accredited_investor' => :'ca_accredited_investor',
128
132
  :'joint_type' => :'joint_type',
129
133
  :'first_name' => :'first_name',
130
134
  :'last_name' => :'last_name',
@@ -164,6 +168,7 @@ module DealMakerAPI
164
168
  def self.openapi_types
165
169
  {
166
170
  :'us_accredited_category' => :'String',
171
+ :'ca_accredited_investor' => :'String',
167
172
  :'joint_type' => :'String',
168
173
  :'first_name' => :'String',
169
174
  :'last_name' => :'String',
@@ -219,6 +224,10 @@ module DealMakerAPI
219
224
  self.us_accredited_category = attributes[:'us_accredited_category']
220
225
  end
221
226
 
227
+ if attributes.key?(:'ca_accredited_investor')
228
+ self.ca_accredited_investor = attributes[:'ca_accredited_investor']
229
+ end
230
+
222
231
  if attributes.key?(:'joint_type')
223
232
  self.joint_type = attributes[:'joint_type']
224
233
  end
@@ -340,6 +349,8 @@ module DealMakerAPI
340
349
  def valid?
341
350
  us_accredited_category_validator = EnumAttributeValidator.new('String', ["income_individual", "assets_individual", "director", "knowledgable_employee", "broker_or_dealer", "investment_advisor_registered", "investment_advisor_relying", "designated_accredited_investor", "not_accredited"])
342
351
  return false unless us_accredited_category_validator.valid?(@us_accredited_category)
352
+ ca_accredited_investor_validator = EnumAttributeValidator.new('String', ["d", "e", "e_1", "j", "j_1", "k", "l", "q", "v", "x"])
353
+ return false unless ca_accredited_investor_validator.valid?(@ca_accredited_investor)
343
354
  joint_type_validator = EnumAttributeValidator.new('String', ["joint_tenant", "tenants_in_common", "community_property"])
344
355
  return false unless joint_type_validator.valid?(@joint_type)
345
356
  true
@@ -355,6 +366,16 @@ module DealMakerAPI
355
366
  @us_accredited_category = us_accredited_category
356
367
  end
357
368
 
369
+ # Custom attribute writer method checking allowed values (enum).
370
+ # @param [Object] ca_accredited_investor Object to be assigned
371
+ def ca_accredited_investor=(ca_accredited_investor)
372
+ validator = EnumAttributeValidator.new('String', ["d", "e", "e_1", "j", "j_1", "k", "l", "q", "v", "x"])
373
+ unless validator.valid?(ca_accredited_investor)
374
+ fail ArgumentError, "invalid value for \"ca_accredited_investor\", must be one of #{validator.allowable_values}."
375
+ end
376
+ @ca_accredited_investor = ca_accredited_investor
377
+ end
378
+
358
379
  # Custom attribute writer method checking allowed values (enum).
359
380
  # @param [Object] joint_type Object to be assigned
360
381
  def joint_type=(joint_type)
@@ -371,6 +392,7 @@ module DealMakerAPI
371
392
  return true if self.equal?(o)
372
393
  self.class == o.class &&
373
394
  us_accredited_category == o.us_accredited_category &&
395
+ ca_accredited_investor == o.ca_accredited_investor &&
374
396
  joint_type == o.joint_type &&
375
397
  first_name == o.first_name &&
376
398
  last_name == o.last_name &&
@@ -409,7 +431,7 @@ module DealMakerAPI
409
431
  # Calculates hash code according to all attributes.
410
432
  # @return [Integer] Hash code
411
433
  def hash
412
- [us_accredited_category, joint_type, first_name, last_name, suffix, country, street_address, unit2, city, region, postal_code, date_of_birth, taxpayer_id, phone_number, income, net_worth, reg_cf_prior_offerings_amount, joint_holder_first_name, joint_holder_last_name, joint_holder_suffix, joint_holder_country, joint_holder_street_address, joint_holder_unit2, joint_holder_city, joint_holder_region, joint_holder_postal_code, joint_holder_date_of_birth, joint_holder_taxpayer_id].hash
434
+ [us_accredited_category, ca_accredited_investor, joint_type, first_name, last_name, suffix, country, street_address, unit2, city, region, postal_code, date_of_birth, taxpayer_id, phone_number, income, net_worth, reg_cf_prior_offerings_amount, joint_holder_first_name, joint_holder_last_name, joint_holder_suffix, joint_holder_country, joint_holder_street_address, joint_holder_unit2, joint_holder_city, joint_holder_region, joint_holder_postal_code, joint_holder_date_of_birth, joint_holder_taxpayer_id].hash
413
435
  end
414
436
 
415
437
  # Builds the object from hash
@@ -15,9 +15,12 @@ require 'time'
15
15
 
16
16
  module DealMakerAPI
17
17
  class PatchTrustProfileRequest
18
- # The accredited investor information.
18
+ # The United States accredited investor information.
19
19
  attr_accessor :us_accredited_category
20
20
 
21
+ # The Canadian accredited investor information.
22
+ attr_accessor :ca_accredited_investor
23
+
21
24
  # The name of the trust.
22
25
  attr_accessor :name
23
26
 
@@ -113,6 +116,7 @@ module DealMakerAPI
113
116
  def self.attribute_map
114
117
  {
115
118
  :'us_accredited_category' => :'us_accredited_category',
119
+ :'ca_accredited_investor' => :'ca_accredited_investor',
116
120
  :'name' => :'name',
117
121
  :'date' => :'date',
118
122
  :'phone_number' => :'phone_number',
@@ -148,6 +152,7 @@ module DealMakerAPI
148
152
  def self.openapi_types
149
153
  {
150
154
  :'us_accredited_category' => :'String',
155
+ :'ca_accredited_investor' => :'String',
151
156
  :'name' => :'String',
152
157
  :'date' => :'String',
153
158
  :'phone_number' => :'String',
@@ -199,6 +204,10 @@ module DealMakerAPI
199
204
  self.us_accredited_category = attributes[:'us_accredited_category']
200
205
  end
201
206
 
207
+ if attributes.key?(:'ca_accredited_investor')
208
+ self.ca_accredited_investor = attributes[:'ca_accredited_investor']
209
+ end
210
+
202
211
  if attributes.key?(:'name')
203
212
  self.name = attributes[:'name']
204
213
  end
@@ -304,6 +313,8 @@ module DealMakerAPI
304
313
  def valid?
305
314
  us_accredited_category_validator = EnumAttributeValidator.new('String', ["entity_owned_by_accredited_investors", "broker_or_dealer", "assets_trust", "not_accredited"])
306
315
  return false unless us_accredited_category_validator.valid?(@us_accredited_category)
316
+ ca_accredited_investor_validator = EnumAttributeValidator.new('String', ["p", "w"])
317
+ return false unless ca_accredited_investor_validator.valid?(@ca_accredited_investor)
307
318
  true
308
319
  end
309
320
 
@@ -317,12 +328,23 @@ module DealMakerAPI
317
328
  @us_accredited_category = us_accredited_category
318
329
  end
319
330
 
331
+ # Custom attribute writer method checking allowed values (enum).
332
+ # @param [Object] ca_accredited_investor Object to be assigned
333
+ def ca_accredited_investor=(ca_accredited_investor)
334
+ validator = EnumAttributeValidator.new('String', ["p", "w"])
335
+ unless validator.valid?(ca_accredited_investor)
336
+ fail ArgumentError, "invalid value for \"ca_accredited_investor\", must be one of #{validator.allowable_values}."
337
+ end
338
+ @ca_accredited_investor = ca_accredited_investor
339
+ end
340
+
320
341
  # Checks equality by comparing each attribute.
321
342
  # @param [Object] Object to be compared
322
343
  def ==(o)
323
344
  return true if self.equal?(o)
324
345
  self.class == o.class &&
325
346
  us_accredited_category == o.us_accredited_category &&
347
+ ca_accredited_investor == o.ca_accredited_investor &&
326
348
  name == o.name &&
327
349
  date == o.date &&
328
350
  phone_number == o.phone_number &&
@@ -357,7 +379,7 @@ module DealMakerAPI
357
379
  # Calculates hash code according to all attributes.
358
380
  # @return [Integer] Hash code
359
381
  def hash
360
- [us_accredited_category, 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
382
+ [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
361
383
  end
362
384
 
363
385
  # Builds the object from hash
@@ -27,6 +27,9 @@ module DealMakerAPI
27
27
  # The allocation unit of the investor.
28
28
  attr_accessor :allocation_unit
29
29
 
30
+ # The investment value of the investor.
31
+ attr_accessor :investment_value
32
+
30
33
  class EnumAttributeValidator
31
34
  attr_reader :datatype
32
35
  attr_reader :allowable_values
@@ -55,7 +58,8 @@ module DealMakerAPI
55
58
  :'warrant_expiry_date' => :'warrant_expiry_date',
56
59
  :'warrant_certificate_number' => :'warrant_certificate_number',
57
60
  :'allocated_amount' => :'allocated_amount',
58
- :'allocation_unit' => :'allocation_unit'
61
+ :'allocation_unit' => :'allocation_unit',
62
+ :'investment_value' => :'investment_value'
59
63
  }
60
64
  end
61
65
 
@@ -70,7 +74,8 @@ module DealMakerAPI
70
74
  :'warrant_expiry_date' => :'Date',
71
75
  :'warrant_certificate_number' => :'Integer',
72
76
  :'allocated_amount' => :'Float',
73
- :'allocation_unit' => :'String'
77
+ :'allocation_unit' => :'String',
78
+ :'investment_value' => :'Float'
74
79
  }
75
80
  end
76
81
 
@@ -112,6 +117,10 @@ module DealMakerAPI
112
117
  else
113
118
  self.allocation_unit = 'securities'
114
119
  end
120
+
121
+ if attributes.key?(:'investment_value')
122
+ self.investment_value = attributes[:'investment_value']
123
+ end
115
124
  end
116
125
 
117
126
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -147,7 +156,8 @@ module DealMakerAPI
147
156
  warrant_expiry_date == o.warrant_expiry_date &&
148
157
  warrant_certificate_number == o.warrant_certificate_number &&
149
158
  allocated_amount == o.allocated_amount &&
150
- allocation_unit == o.allocation_unit
159
+ allocation_unit == o.allocation_unit &&
160
+ investment_value == o.investment_value
151
161
  end
152
162
 
153
163
  # @see the `==` method
@@ -159,7 +169,7 @@ module DealMakerAPI
159
169
  # Calculates hash code according to all attributes.
160
170
  # @return [Integer] Hash code
161
171
  def hash
162
- [warrant_expiry_date, warrant_certificate_number, allocated_amount, allocation_unit].hash
172
+ [warrant_expiry_date, warrant_certificate_number, allocated_amount, allocation_unit, investment_value].hash
163
173
  end
164
174
 
165
175
  # Builds the object from hash
@@ -28,9 +28,12 @@ module DealMakerAPI
28
28
  # Investor Profile type
29
29
  attr_accessor :type
30
30
 
31
- # The accredited investor information
31
+ # The United States accredited investor information
32
32
  attr_accessor :us_accredited_category
33
33
 
34
+ # The Canadian accredited investor information
35
+ attr_accessor :ca_accredited_investor
36
+
34
37
  # To check if the profile is complete or not
35
38
  attr_accessor :complete
36
39
 
@@ -75,6 +78,7 @@ module DealMakerAPI
75
78
  :'email' => :'email',
76
79
  :'type' => :'type',
77
80
  :'us_accredited_category' => :'us_accredited_category',
81
+ :'ca_accredited_investor' => :'ca_accredited_investor',
78
82
  :'complete' => :'complete',
79
83
  :'owner_type' => :'owner_type',
80
84
  :'owner' => :'owner',
@@ -97,6 +101,7 @@ module DealMakerAPI
97
101
  :'email' => :'String',
98
102
  :'type' => :'String',
99
103
  :'us_accredited_category' => :'String',
104
+ :'ca_accredited_investor' => :'String',
100
105
  :'complete' => :'Boolean',
101
106
  :'owner_type' => :'String',
102
107
  :'owner' => :'V1EntitiesInvestorProfileOwner',
@@ -147,6 +152,10 @@ module DealMakerAPI
147
152
  self.us_accredited_category = attributes[:'us_accredited_category']
148
153
  end
149
154
 
155
+ if attributes.key?(:'ca_accredited_investor')
156
+ self.ca_accredited_investor = attributes[:'ca_accredited_investor']
157
+ end
158
+
150
159
  if attributes.key?(:'complete')
151
160
  self.complete = attributes[:'complete']
152
161
  end
@@ -207,6 +216,7 @@ module DealMakerAPI
207
216
  email == o.email &&
208
217
  type == o.type &&
209
218
  us_accredited_category == o.us_accredited_category &&
219
+ ca_accredited_investor == o.ca_accredited_investor &&
210
220
  complete == o.complete &&
211
221
  owner_type == o.owner_type &&
212
222
  owner == o.owner &&
@@ -224,7 +234,7 @@ module DealMakerAPI
224
234
  # Calculates hash code according to all attributes.
225
235
  # @return [Integer] Hash code
226
236
  def hash
227
- [id, user_id, email, type, us_accredited_category, complete, owner_type, owner, corporation, signing_officer, beneficial_owners].hash
237
+ [id, user_id, email, type, us_accredited_category, ca_accredited_investor, complete, owner_type, owner, corporation, signing_officer, beneficial_owners].hash
228
238
  end
229
239
 
230
240
  # Builds the object from hash
@@ -28,9 +28,12 @@ module DealMakerAPI
28
28
  # Investor Profile type
29
29
  attr_accessor :type
30
30
 
31
- # The accredited investor information
31
+ # The United States accredited investor information
32
32
  attr_accessor :us_accredited_category
33
33
 
34
+ # The Canadian accredited investor information
35
+ attr_accessor :ca_accredited_investor
36
+
34
37
  # To check if the profile is complete or not
35
38
  attr_accessor :complete
36
39
 
@@ -71,6 +74,7 @@ module DealMakerAPI
71
74
  :'email' => :'email',
72
75
  :'type' => :'type',
73
76
  :'us_accredited_category' => :'us_accredited_category',
77
+ :'ca_accredited_investor' => :'ca_accredited_investor',
74
78
  :'complete' => :'complete',
75
79
  :'owner_type' => :'owner_type',
76
80
  :'owner' => :'owner',
@@ -91,6 +95,7 @@ module DealMakerAPI
91
95
  :'email' => :'String',
92
96
  :'type' => :'String',
93
97
  :'us_accredited_category' => :'String',
98
+ :'ca_accredited_investor' => :'String',
94
99
  :'complete' => :'Boolean',
95
100
  :'owner_type' => :'String',
96
101
  :'owner' => :'V1EntitiesInvestorProfileOwner',
@@ -139,6 +144,10 @@ module DealMakerAPI
139
144
  self.us_accredited_category = attributes[:'us_accredited_category']
140
145
  end
141
146
 
147
+ if attributes.key?(:'ca_accredited_investor')
148
+ self.ca_accredited_investor = attributes[:'ca_accredited_investor']
149
+ end
150
+
142
151
  if attributes.key?(:'complete')
143
152
  self.complete = attributes[:'complete']
144
153
  end
@@ -191,6 +200,7 @@ module DealMakerAPI
191
200
  email == o.email &&
192
201
  type == o.type &&
193
202
  us_accredited_category == o.us_accredited_category &&
203
+ ca_accredited_investor == o.ca_accredited_investor &&
194
204
  complete == o.complete &&
195
205
  owner_type == o.owner_type &&
196
206
  owner == o.owner &&
@@ -206,7 +216,7 @@ module DealMakerAPI
206
216
  # Calculates hash code according to all attributes.
207
217
  # @return [Integer] Hash code
208
218
  def hash
209
- [id, user_id, email, type, us_accredited_category, complete, owner_type, owner, account_holder].hash
219
+ [id, user_id, email, type, us_accredited_category, ca_accredited_investor, complete, owner_type, owner, account_holder].hash
210
220
  end
211
221
 
212
222
  # Builds the object from hash
@@ -28,9 +28,12 @@ module DealMakerAPI
28
28
  # Investor Profile type
29
29
  attr_accessor :type
30
30
 
31
- # The accredited investor information
31
+ # The United States accredited investor information
32
32
  attr_accessor :us_accredited_category
33
33
 
34
+ # The Canadian accredited investor information
35
+ attr_accessor :ca_accredited_investor
36
+
34
37
  # To check if the profile is complete or not
35
38
  attr_accessor :complete
36
39
 
@@ -76,6 +79,7 @@ module DealMakerAPI
76
79
  :'email' => :'email',
77
80
  :'type' => :'type',
78
81
  :'us_accredited_category' => :'us_accredited_category',
82
+ :'ca_accredited_investor' => :'ca_accredited_investor',
79
83
  :'complete' => :'complete',
80
84
  :'owner_type' => :'owner_type',
81
85
  :'owner' => :'owner',
@@ -98,6 +102,7 @@ module DealMakerAPI
98
102
  :'email' => :'String',
99
103
  :'type' => :'String',
100
104
  :'us_accredited_category' => :'String',
105
+ :'ca_accredited_investor' => :'String',
101
106
  :'complete' => :'Boolean',
102
107
  :'owner_type' => :'String',
103
108
  :'owner' => :'V1EntitiesInvestorProfileOwner',
@@ -148,6 +153,10 @@ module DealMakerAPI
148
153
  self.us_accredited_category = attributes[:'us_accredited_category']
149
154
  end
150
155
 
156
+ if attributes.key?(:'ca_accredited_investor')
157
+ self.ca_accredited_investor = attributes[:'ca_accredited_investor']
158
+ end
159
+
151
160
  if attributes.key?(:'complete')
152
161
  self.complete = attributes[:'complete']
153
162
  end
@@ -208,6 +217,7 @@ module DealMakerAPI
208
217
  email == o.email &&
209
218
  type == o.type &&
210
219
  us_accredited_category == o.us_accredited_category &&
220
+ ca_accredited_investor == o.ca_accredited_investor &&
211
221
  complete == o.complete &&
212
222
  owner_type == o.owner_type &&
213
223
  owner == o.owner &&
@@ -225,7 +235,7 @@ module DealMakerAPI
225
235
  # Calculates hash code according to all attributes.
226
236
  # @return [Integer] Hash code
227
237
  def hash
228
- [id, user_id, email, type, us_accredited_category, complete, owner_type, owner, joint_type, primary_holder, joint_holder].hash
238
+ [id, user_id, email, type, us_accredited_category, ca_accredited_investor, complete, owner_type, owner, joint_type, primary_holder, joint_holder].hash
229
239
  end
230
240
 
231
241
  # Builds the object from hash
@@ -28,9 +28,12 @@ module DealMakerAPI
28
28
  # Investor Profile type
29
29
  attr_accessor :type
30
30
 
31
- # The accredited investor information
31
+ # The United States accredited investor information
32
32
  attr_accessor :us_accredited_category
33
33
 
34
+ # The Canadian accredited investor information
35
+ attr_accessor :ca_accredited_investor
36
+
34
37
  # To check if the profile is complete or not
35
38
  attr_accessor :complete
36
39
 
@@ -73,6 +76,7 @@ module DealMakerAPI
73
76
  :'email' => :'email',
74
77
  :'type' => :'type',
75
78
  :'us_accredited_category' => :'us_accredited_category',
79
+ :'ca_accredited_investor' => :'ca_accredited_investor',
76
80
  :'complete' => :'complete',
77
81
  :'owner_type' => :'owner_type',
78
82
  :'owner' => :'owner',
@@ -94,6 +98,7 @@ module DealMakerAPI
94
98
  :'email' => :'String',
95
99
  :'type' => :'String',
96
100
  :'us_accredited_category' => :'String',
101
+ :'ca_accredited_investor' => :'String',
97
102
  :'complete' => :'Boolean',
98
103
  :'owner_type' => :'String',
99
104
  :'owner' => :'V1EntitiesInvestorProfileOwner',
@@ -143,6 +148,10 @@ module DealMakerAPI
143
148
  self.us_accredited_category = attributes[:'us_accredited_category']
144
149
  end
145
150
 
151
+ if attributes.key?(:'ca_accredited_investor')
152
+ self.ca_accredited_investor = attributes[:'ca_accredited_investor']
153
+ end
154
+
146
155
  if attributes.key?(:'complete')
147
156
  self.complete = attributes[:'complete']
148
157
  end
@@ -199,6 +208,7 @@ module DealMakerAPI
199
208
  email == o.email &&
200
209
  type == o.type &&
201
210
  us_accredited_category == o.us_accredited_category &&
211
+ ca_accredited_investor == o.ca_accredited_investor &&
202
212
  complete == o.complete &&
203
213
  owner_type == o.owner_type &&
204
214
  owner == o.owner &&
@@ -215,7 +225,7 @@ module DealMakerAPI
215
225
  # Calculates hash code according to all attributes.
216
226
  # @return [Integer] Hash code
217
227
  def hash
218
- [id, user_id, email, type, us_accredited_category, complete, owner_type, owner, trust_holder, trustees].hash
228
+ [id, user_id, email, type, us_accredited_category, ca_accredited_investor, complete, owner_type, owner, trust_holder, trustees].hash
219
229
  end
220
230
 
221
231
  # Builds the object from hash