DealMakerAPI 0.85.2 → 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 (200) hide show
  1. checksums.yaml +4 -4
  2. data/DealMakerAPI.gemspec +1 -1
  3. data/README.md +16 -12
  4. data/docs/InvestorProfileApi.md +48 -54
  5. data/docs/{PatchCorporationProfileRequest.md → PatchInvestorProfilesCorporations.md} +6 -32
  6. data/docs/PatchInvestorProfilesCorporationsBeneficialOwnersInner.md +42 -0
  7. data/docs/{PatchIndividualProfileRequest.md → PatchInvestorProfilesIndividuals.md} +2 -4
  8. data/docs/{PatchJointProfileRequest.md → PatchInvestorProfilesJoints.md} +2 -6
  9. data/docs/{PatchTrustProfileRequest.md → PatchInvestorProfilesTrusts.md} +2 -6
  10. data/docs/{CreateCorporationProfileRequest.md → PostInvestorProfilesCorporations.md} +6 -28
  11. data/docs/PostInvestorProfilesCorporationsBeneficialOwnersInner.md +38 -0
  12. data/docs/{CreateIndividualProfileRequest.md → PostInvestorProfilesIndividuals.md} +2 -4
  13. data/docs/{CreateJointProfileRequest.md → PostInvestorProfilesJoints.md} +2 -6
  14. data/docs/PostInvestorProfilesTrusts.md +46 -0
  15. data/docs/PostInvestorProfilesTrustsTrusteesInner.md +36 -0
  16. data/docs/V1EntitiesInvestorProfileCorporation.md +2 -2
  17. data/docs/V1EntitiesInvestorProfileFieldsSigningOfficer.md +30 -0
  18. data/lib/DealMakerAPI/api/company_api.rb +1 -1
  19. data/lib/DealMakerAPI/api/deal_api.rb +1 -1
  20. data/lib/DealMakerAPI/api/deal_setup_api.rb +1 -1
  21. data/lib/DealMakerAPI/api/deals_api.rb +1 -1
  22. data/lib/DealMakerAPI/api/default_api.rb +1 -1
  23. data/lib/DealMakerAPI/api/investor_api.rb +1 -1
  24. data/lib/DealMakerAPI/api/investor_profile_api.rb +76 -64
  25. data/lib/DealMakerAPI/api/shareholder_api.rb +1 -1
  26. data/lib/DealMakerAPI/api/upload_api.rb +1 -1
  27. data/lib/DealMakerAPI/api_client.rb +1 -1
  28. data/lib/DealMakerAPI/api_error.rb +1 -1
  29. data/lib/DealMakerAPI/configuration.rb +3 -3
  30. data/lib/DealMakerAPI/models/add506c_document_request.rb +1 -1
  31. data/lib/DealMakerAPI/models/add_document_request.rb +1 -1
  32. data/lib/DealMakerAPI/models/bulk_upload_investors_request.rb +1 -1
  33. data/lib/DealMakerAPI/models/create_bulk_upload_detail_request.rb +1 -1
  34. data/lib/DealMakerAPI/models/create_bulk_upload_request.rb +1 -1
  35. data/lib/DealMakerAPI/models/create_company_request.rb +1 -1
  36. data/lib/DealMakerAPI/models/create_deal_setup_request.rb +1 -1
  37. data/lib/DealMakerAPI/models/create_investor_request.rb +1 -1
  38. data/lib/DealMakerAPI/models/create_shareholder_action_request.rb +1 -1
  39. data/lib/DealMakerAPI/models/edit_investor_tags_request.rb +1 -1
  40. data/lib/DealMakerAPI/models/generate_url_request.rb +1 -1
  41. data/lib/DealMakerAPI/models/patch_investor_profiles_corporations.rb +503 -0
  42. data/lib/DealMakerAPI/models/patch_investor_profiles_corporations_beneficial_owners_inner.rb +342 -0
  43. data/lib/DealMakerAPI/models/{patch_individual_profile_request.rb → patch_investor_profiles_individuals.rb} +6 -15
  44. data/lib/DealMakerAPI/models/{patch_joint_profile_request.rb → patch_investor_profiles_joints.rb} +6 -25
  45. data/lib/DealMakerAPI/models/{patch_trust_profile_request.rb → patch_investor_profiles_trusts.rb} +6 -25
  46. data/lib/DealMakerAPI/models/patch_investor_request.rb +1 -1
  47. data/lib/DealMakerAPI/models/{create_corporation_profile_request.rb → post_investor_profiles_corporations.rb} +22 -152
  48. data/lib/DealMakerAPI/models/post_investor_profiles_corporations_beneficial_owners_inner.rb +315 -0
  49. data/lib/DealMakerAPI/models/{create_individual_profile_request.rb → post_investor_profiles_individuals.rb} +6 -15
  50. data/lib/DealMakerAPI/models/{create_joint_profile_request.rb → post_investor_profiles_joints.rb} +6 -25
  51. data/lib/DealMakerAPI/models/{create_trust_profile_request.rb → post_investor_profiles_trusts.rb} +13 -143
  52. data/lib/DealMakerAPI/models/post_investor_profiles_trusts_trustees_inner.rb +305 -0
  53. data/lib/DealMakerAPI/models/post_webhooks_request.rb +1 -1
  54. data/lib/DealMakerAPI/models/put_deals_id_script_tag_environment_request.rb +1 -1
  55. data/lib/DealMakerAPI/models/put_webhooks_id_request.rb +1 -1
  56. data/lib/DealMakerAPI/models/update_investor_request.rb +1 -1
  57. data/lib/DealMakerAPI/models/v1_entities_address.rb +1 -1
  58. data/lib/DealMakerAPI/models/v1_entities_addresses.rb +1 -1
  59. data/lib/DealMakerAPI/models/v1_entities_attachment.rb +1 -1
  60. data/lib/DealMakerAPI/models/v1_entities_background_check_search.rb +1 -1
  61. data/lib/DealMakerAPI/models/v1_entities_bulk_upload.rb +1 -1
  62. data/lib/DealMakerAPI/models/v1_entities_bulk_upload_detail.rb +1 -1
  63. data/lib/DealMakerAPI/models/v1_entities_bulk_upload_details.rb +1 -1
  64. data/lib/DealMakerAPI/models/v1_entities_bulk_uploads.rb +1 -1
  65. data/lib/DealMakerAPI/models/v1_entities_company.rb +1 -1
  66. data/lib/DealMakerAPI/models/v1_entities_company_deal.rb +1 -1
  67. data/lib/DealMakerAPI/models/v1_entities_company_deals.rb +1 -1
  68. data/lib/DealMakerAPI/models/v1_entities_deal.rb +1 -1
  69. data/lib/DealMakerAPI/models/v1_entities_deal_enterprise.rb +1 -1
  70. data/lib/DealMakerAPI/models/v1_entities_deal_funding_metrics.rb +1 -1
  71. data/lib/DealMakerAPI/models/v1_entities_deal_investor_metrics.rb +1 -1
  72. data/lib/DealMakerAPI/models/v1_entities_deal_issuer.rb +1 -1
  73. data/lib/DealMakerAPI/models/v1_entities_deal_setup.rb +1 -1
  74. data/lib/DealMakerAPI/models/v1_entities_deal_setup_user.rb +1 -1
  75. data/lib/DealMakerAPI/models/v1_entities_deals.rb +1 -1
  76. data/lib/DealMakerAPI/models/v1_entities_express_wire_instruction.rb +1 -1
  77. data/lib/DealMakerAPI/models/v1_entities_express_wire_instructions.rb +1 -1
  78. data/lib/DealMakerAPI/models/v1_entities_generic_response.rb +1 -1
  79. data/lib/DealMakerAPI/models/v1_entities_investor.rb +1 -1
  80. data/lib/DealMakerAPI/models/v1_entities_investor_otp_access_link.rb +1 -1
  81. data/lib/DealMakerAPI/models/v1_entities_investor_profile_address.rb +1 -1
  82. data/lib/DealMakerAPI/models/v1_entities_investor_profile_corporation.rb +3 -3
  83. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_account_holder.rb +1 -1
  84. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_corporation.rb +1 -1
  85. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_primary_holder.rb +1 -1
  86. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_signing_officer.rb +274 -0
  87. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_trust.rb +1 -1
  88. data/lib/DealMakerAPI/models/v1_entities_investor_profile_individual.rb +1 -1
  89. data/lib/DealMakerAPI/models/v1_entities_investor_profile_item.rb +1 -1
  90. data/lib/DealMakerAPI/models/v1_entities_investor_profile_joint.rb +1 -1
  91. data/lib/DealMakerAPI/models/v1_entities_investor_profile_owner.rb +1 -1
  92. data/lib/DealMakerAPI/models/v1_entities_investor_profile_trust.rb +1 -1
  93. data/lib/DealMakerAPI/models/v1_entities_investor_profiles.rb +1 -1
  94. data/lib/DealMakerAPI/models/v1_entities_investor_user.rb +1 -1
  95. data/lib/DealMakerAPI/models/v1_entities_investors.rb +1 -1
  96. data/lib/DealMakerAPI/models/v1_entities_presigned_url_result.rb +1 -1
  97. data/lib/DealMakerAPI/models/v1_entities_shareholder.rb +1 -1
  98. data/lib/DealMakerAPI/models/v1_entities_shareholders.rb +1 -1
  99. data/lib/DealMakerAPI/models/v1_entities_shareholders_tags.rb +1 -1
  100. data/lib/DealMakerAPI/models/v1_entities_subscription_agreement.rb +1 -1
  101. data/lib/DealMakerAPI/models/v1_entities_webhooks_deal.rb +1 -1
  102. data/lib/DealMakerAPI/models/v1_entities_webhooks_security_token.rb +1 -1
  103. data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription.rb +1 -1
  104. data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription_deal.rb +1 -1
  105. data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription_deals.rb +1 -1
  106. data/lib/DealMakerAPI/version.rb +2 -2
  107. data/lib/DealMakerAPI.rb +13 -9
  108. data/spec/api/company_api_spec.rb +1 -1
  109. data/spec/api/deal_api_spec.rb +1 -1
  110. data/spec/api/deal_setup_api_spec.rb +1 -1
  111. data/spec/api/deals_api_spec.rb +1 -1
  112. data/spec/api/default_api_spec.rb +1 -1
  113. data/spec/api/investor_api_spec.rb +1 -1
  114. data/spec/api/investor_profile_api_spec.rb +9 -9
  115. data/spec/api/shareholder_api_spec.rb +1 -1
  116. data/spec/api/upload_api_spec.rb +1 -1
  117. data/spec/api_client_spec.rb +1 -1
  118. data/spec/configuration_spec.rb +1 -1
  119. data/spec/models/add506c_document_request_spec.rb +1 -1
  120. data/spec/models/add_document_request_spec.rb +1 -1
  121. data/spec/models/bulk_upload_investors_request_spec.rb +1 -1
  122. data/spec/models/create_bulk_upload_detail_request_spec.rb +1 -1
  123. data/spec/models/create_bulk_upload_request_spec.rb +1 -1
  124. data/spec/models/create_company_request_spec.rb +1 -1
  125. data/spec/models/create_deal_setup_request_spec.rb +1 -1
  126. data/spec/models/create_investor_request_spec.rb +1 -1
  127. data/spec/models/create_shareholder_action_request_spec.rb +1 -1
  128. data/spec/models/edit_investor_tags_request_spec.rb +1 -1
  129. data/spec/models/generate_url_request_spec.rb +1 -1
  130. data/spec/models/patch_investor_profiles_corporations_beneficial_owners_inner_spec.rb +106 -0
  131. data/spec/models/patch_investor_profiles_corporations_spec.rb +186 -0
  132. data/spec/models/{create_individual_profile_request_spec.rb → patch_investor_profiles_individuals_spec.rb} +7 -19
  133. data/spec/models/{create_joint_profile_request_spec.rb → patch_investor_profiles_joints_spec.rb} +7 -25
  134. data/spec/models/{patch_trust_profile_request_spec.rb → patch_investor_profiles_trusts_spec.rb} +7 -19
  135. data/spec/models/patch_investor_request_spec.rb +1 -1
  136. data/spec/models/post_investor_profiles_corporations_beneficial_owners_inner_spec.rb +94 -0
  137. data/spec/models/{create_trust_profile_request_spec.rb → post_investor_profiles_corporations_spec.rb} +31 -31
  138. data/spec/models/{patch_individual_profile_request_spec.rb → post_investor_profiles_individuals_spec.rb} +13 -13
  139. data/spec/models/{patch_joint_profile_request_spec.rb → post_investor_profiles_joints_spec.rb} +13 -19
  140. data/spec/models/post_investor_profiles_trusts_spec.rb +126 -0
  141. data/spec/models/post_investor_profiles_trusts_trustees_inner_spec.rb +88 -0
  142. data/spec/models/post_webhooks_request_spec.rb +1 -1
  143. data/spec/models/put_deals_id_script_tag_environment_request_spec.rb +1 -1
  144. data/spec/models/put_webhooks_id_request_spec.rb +1 -1
  145. data/spec/models/update_investor_request_spec.rb +1 -1
  146. data/spec/models/v1_entities_address_spec.rb +1 -1
  147. data/spec/models/v1_entities_addresses_spec.rb +1 -1
  148. data/spec/models/v1_entities_attachment_spec.rb +1 -1
  149. data/spec/models/v1_entities_background_check_search_spec.rb +1 -1
  150. data/spec/models/v1_entities_bulk_upload_detail_spec.rb +1 -1
  151. data/spec/models/v1_entities_bulk_upload_details_spec.rb +1 -1
  152. data/spec/models/v1_entities_bulk_upload_spec.rb +1 -1
  153. data/spec/models/v1_entities_bulk_uploads_spec.rb +1 -1
  154. data/spec/models/v1_entities_company_deal_spec.rb +1 -1
  155. data/spec/models/v1_entities_company_deals_spec.rb +1 -1
  156. data/spec/models/v1_entities_company_spec.rb +1 -1
  157. data/spec/models/v1_entities_deal_enterprise_spec.rb +1 -1
  158. data/spec/models/v1_entities_deal_funding_metrics_spec.rb +1 -1
  159. data/spec/models/v1_entities_deal_investor_metrics_spec.rb +1 -1
  160. data/spec/models/v1_entities_deal_issuer_spec.rb +1 -1
  161. data/spec/models/v1_entities_deal_setup_spec.rb +1 -1
  162. data/spec/models/v1_entities_deal_setup_user_spec.rb +1 -1
  163. data/spec/models/v1_entities_deal_spec.rb +1 -1
  164. data/spec/models/v1_entities_deals_spec.rb +1 -1
  165. data/spec/models/v1_entities_express_wire_instruction_spec.rb +1 -1
  166. data/spec/models/v1_entities_express_wire_instructions_spec.rb +1 -1
  167. data/spec/models/v1_entities_generic_response_spec.rb +1 -1
  168. data/spec/models/v1_entities_investor_otp_access_link_spec.rb +1 -1
  169. data/spec/models/v1_entities_investor_profile_address_spec.rb +1 -1
  170. data/spec/models/v1_entities_investor_profile_corporation_spec.rb +1 -1
  171. data/spec/models/v1_entities_investor_profile_fields_account_holder_spec.rb +1 -1
  172. data/spec/models/v1_entities_investor_profile_fields_corporation_spec.rb +1 -1
  173. data/spec/models/v1_entities_investor_profile_fields_primary_holder_spec.rb +1 -1
  174. data/spec/models/v1_entities_investor_profile_fields_signing_officer_spec.rb +70 -0
  175. data/spec/models/v1_entities_investor_profile_fields_trust_spec.rb +1 -1
  176. data/spec/models/v1_entities_investor_profile_individual_spec.rb +1 -1
  177. data/spec/models/v1_entities_investor_profile_item_spec.rb +1 -1
  178. data/spec/models/v1_entities_investor_profile_joint_spec.rb +1 -1
  179. data/spec/models/v1_entities_investor_profile_owner_spec.rb +1 -1
  180. data/spec/models/v1_entities_investor_profile_trust_spec.rb +1 -1
  181. data/spec/models/v1_entities_investor_profiles_spec.rb +1 -1
  182. data/spec/models/v1_entities_investor_spec.rb +1 -1
  183. data/spec/models/v1_entities_investor_user_spec.rb +1 -1
  184. data/spec/models/v1_entities_investors_spec.rb +1 -1
  185. data/spec/models/v1_entities_presigned_url_result_spec.rb +1 -1
  186. data/spec/models/v1_entities_shareholder_spec.rb +1 -1
  187. data/spec/models/v1_entities_shareholders_spec.rb +1 -1
  188. data/spec/models/v1_entities_shareholders_tags_spec.rb +1 -1
  189. data/spec/models/v1_entities_subscription_agreement_spec.rb +1 -1
  190. data/spec/models/v1_entities_webhooks_deal_spec.rb +1 -1
  191. data/spec/models/v1_entities_webhooks_security_token_spec.rb +1 -1
  192. data/spec/models/v1_entities_webhooks_subscription_deal_spec.rb +1 -1
  193. data/spec/models/v1_entities_webhooks_subscription_deals_spec.rb +1 -1
  194. data/spec/models/v1_entities_webhooks_subscription_spec.rb +1 -1
  195. data/spec/spec_helper.rb +1 -1
  196. metadata +50 -34
  197. data/docs/CreateTrustProfileRequest.md +0 -68
  198. data/lib/DealMakerAPI/models/patch_corporation_profile_request.rb +0 -664
  199. data/spec/models/create_corporation_profile_request_spec.rb +0 -258
  200. data/spec/models/patch_corporation_profile_request_spec.rb +0 -264
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.75.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.0.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -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
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.75.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.0.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.75.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.0.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -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
 
@@ -93,38 +88,10 @@ module DealMakerAPI
93
88
  # The taxpayer identification number of the signing officer (required).
94
89
  attr_accessor :signing_officer_taxpayer_id
95
90
 
96
- # The list of first names for the beneficial owners (required for beneficial owner 1).
97
- attr_accessor :beneficial_owners_first_name
98
-
99
- # The list of last names for the beneficial owners (required for beneficial owner 1).
100
- attr_accessor :beneficial_owners_last_name
101
-
102
- # The list of suffixes for the beneficial owners.
103
- attr_accessor :beneficial_owners_suffix
104
-
105
- # The list of countries for the beneficial owners (required for beneficial owner 1).
106
- attr_accessor :beneficial_owners_country
107
-
108
- # The list of street addresses for the beneficial owners (required for beneficial owner 1).
109
- attr_accessor :beneficial_owners_street_address
110
-
111
- # The list of street address line 2 for the beneficial owners.
112
- attr_accessor :beneficial_owners_unit2
113
-
114
- # The list of cities for the beneficial owners (required for beneficial owner 1).
115
- attr_accessor :beneficial_owners_city
116
-
117
- # The list of region or states for the beneficial owners (required for beneficial owner 1).
118
- attr_accessor :beneficial_owners_region
119
-
120
- # The list of postal codes or zipcodes for the beneficial owners (required for beneficial owner 1).
121
- attr_accessor :beneficial_owners_postal_code
122
-
123
- # The list of dates of birth for the beneficial owners (required for beneficial owner 1).
124
- attr_accessor :beneficial_owners_date_of_birth
91
+ # The phone number of the signing officer (required).
92
+ attr_accessor :signing_officer_phone_number
125
93
 
126
- # The list of taxpayer identification numbers for the beneficial owners (required for beneficial owner 1).
127
- attr_accessor :beneficial_owners_taxpayer_id
94
+ attr_accessor :beneficial_owners
128
95
 
129
96
  class EnumAttributeValidator
130
97
  attr_reader :datatype
@@ -155,7 +122,6 @@ module DealMakerAPI
155
122
  :'us_accredited_category' => :'us_accredited_category',
156
123
  :'ca_accredited_investor' => :'ca_accredited_investor',
157
124
  :'name' => :'name',
158
- :'country' => :'country',
159
125
  :'street_address' => :'street_address',
160
126
  :'unit2' => :'unit2',
161
127
  :'city' => :'city',
@@ -169,7 +135,6 @@ module DealMakerAPI
169
135
  :'signing_officer_first_name' => :'signing_officer_first_name',
170
136
  :'signing_officer_last_name' => :'signing_officer_last_name',
171
137
  :'signing_officer_suffix' => :'signing_officer_suffix',
172
- :'signing_officer_country' => :'signing_officer_country',
173
138
  :'signing_officer_street_address' => :'signing_officer_street_address',
174
139
  :'signing_officer_unit2' => :'signing_officer_unit2',
175
140
  :'signing_officer_city' => :'signing_officer_city',
@@ -177,17 +142,8 @@ module DealMakerAPI
177
142
  :'signing_officer_postal_code' => :'signing_officer_postal_code',
178
143
  :'signing_officer_date_of_birth' => :'signing_officer_date_of_birth',
179
144
  :'signing_officer_taxpayer_id' => :'signing_officer_taxpayer_id',
180
- :'beneficial_owners_first_name' => :'beneficial_owners[first_name]',
181
- :'beneficial_owners_last_name' => :'beneficial_owners[last_name]',
182
- :'beneficial_owners_suffix' => :'beneficial_owners[suffix]',
183
- :'beneficial_owners_country' => :'beneficial_owners[country]',
184
- :'beneficial_owners_street_address' => :'beneficial_owners[street_address]',
185
- :'beneficial_owners_unit2' => :'beneficial_owners[unit2]',
186
- :'beneficial_owners_city' => :'beneficial_owners[city]',
187
- :'beneficial_owners_region' => :'beneficial_owners[region]',
188
- :'beneficial_owners_postal_code' => :'beneficial_owners[postal_code]',
189
- :'beneficial_owners_date_of_birth' => :'beneficial_owners[date_of_birth]',
190
- :'beneficial_owners_taxpayer_id' => :'beneficial_owners[taxpayer_id]'
145
+ :'signing_officer_phone_number' => :'signing_officer_phone_number',
146
+ :'beneficial_owners' => :'beneficial_owners'
191
147
  }
192
148
  end
193
149
 
@@ -203,7 +159,6 @@ module DealMakerAPI
203
159
  :'us_accredited_category' => :'String',
204
160
  :'ca_accredited_investor' => :'String',
205
161
  :'name' => :'String',
206
- :'country' => :'String',
207
162
  :'street_address' => :'String',
208
163
  :'unit2' => :'String',
209
164
  :'city' => :'String',
@@ -217,7 +172,6 @@ module DealMakerAPI
217
172
  :'signing_officer_first_name' => :'String',
218
173
  :'signing_officer_last_name' => :'String',
219
174
  :'signing_officer_suffix' => :'String',
220
- :'signing_officer_country' => :'String',
221
175
  :'signing_officer_street_address' => :'String',
222
176
  :'signing_officer_unit2' => :'String',
223
177
  :'signing_officer_city' => :'String',
@@ -225,17 +179,8 @@ module DealMakerAPI
225
179
  :'signing_officer_postal_code' => :'String',
226
180
  :'signing_officer_date_of_birth' => :'String',
227
181
  :'signing_officer_taxpayer_id' => :'String',
228
- :'beneficial_owners_first_name' => :'Array<String>',
229
- :'beneficial_owners_last_name' => :'Array<String>',
230
- :'beneficial_owners_suffix' => :'Array<String>',
231
- :'beneficial_owners_country' => :'Array<String>',
232
- :'beneficial_owners_street_address' => :'Array<String>',
233
- :'beneficial_owners_unit2' => :'Array<String>',
234
- :'beneficial_owners_city' => :'Array<String>',
235
- :'beneficial_owners_region' => :'Array<String>',
236
- :'beneficial_owners_postal_code' => :'Array<String>',
237
- :'beneficial_owners_date_of_birth' => :'Array<String>',
238
- :'beneficial_owners_taxpayer_id' => :'Array<String>'
182
+ :'signing_officer_phone_number' => :'String',
183
+ :'beneficial_owners' => :'Array<PostInvestorProfilesCorporationsBeneficialOwnersInner>'
239
184
  }
240
185
  end
241
186
 
@@ -249,13 +194,13 @@ module DealMakerAPI
249
194
  # @param [Hash] attributes Model attributes in the form of hash
250
195
  def initialize(attributes = {})
251
196
  if (!attributes.is_a?(Hash))
252
- 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"
253
198
  end
254
199
 
255
200
  # check to see if the attribute exists and convert string to symbol for hash key
256
201
  attributes = attributes.each_with_object({}) { |(k, v), h|
257
202
  if (!self.class.attribute_map.key?(k.to_sym))
258
- 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
259
204
  end
260
205
  h[k.to_sym] = v
261
206
  }
@@ -278,10 +223,6 @@ module DealMakerAPI
278
223
  self.name = attributes[:'name']
279
224
  end
280
225
 
281
- if attributes.key?(:'country')
282
- self.country = attributes[:'country']
283
- end
284
-
285
226
  if attributes.key?(:'street_address')
286
227
  self.street_address = attributes[:'street_address']
287
228
  end
@@ -334,10 +275,6 @@ module DealMakerAPI
334
275
  self.signing_officer_suffix = attributes[:'signing_officer_suffix']
335
276
  end
336
277
 
337
- if attributes.key?(:'signing_officer_country')
338
- self.signing_officer_country = attributes[:'signing_officer_country']
339
- end
340
-
341
278
  if attributes.key?(:'signing_officer_street_address')
342
279
  self.signing_officer_street_address = attributes[:'signing_officer_street_address']
343
280
  end
@@ -366,69 +303,13 @@ module DealMakerAPI
366
303
  self.signing_officer_taxpayer_id = attributes[:'signing_officer_taxpayer_id']
367
304
  end
368
305
 
369
- if attributes.key?(:'beneficial_owners_first_name')
370
- if (value = attributes[:'beneficial_owners_first_name']).is_a?(Array)
371
- self.beneficial_owners_first_name = value
372
- end
373
- end
374
-
375
- if attributes.key?(:'beneficial_owners_last_name')
376
- if (value = attributes[:'beneficial_owners_last_name']).is_a?(Array)
377
- self.beneficial_owners_last_name = value
378
- end
379
- end
380
-
381
- if attributes.key?(:'beneficial_owners_suffix')
382
- if (value = attributes[:'beneficial_owners_suffix']).is_a?(Array)
383
- self.beneficial_owners_suffix = value
384
- end
385
- end
386
-
387
- if attributes.key?(:'beneficial_owners_country')
388
- if (value = attributes[:'beneficial_owners_country']).is_a?(Array)
389
- self.beneficial_owners_country = value
390
- end
391
- end
392
-
393
- if attributes.key?(:'beneficial_owners_street_address')
394
- if (value = attributes[:'beneficial_owners_street_address']).is_a?(Array)
395
- self.beneficial_owners_street_address = value
396
- end
397
- end
398
-
399
- if attributes.key?(:'beneficial_owners_unit2')
400
- if (value = attributes[:'beneficial_owners_unit2']).is_a?(Array)
401
- self.beneficial_owners_unit2 = value
402
- end
403
- end
404
-
405
- if attributes.key?(:'beneficial_owners_city')
406
- if (value = attributes[:'beneficial_owners_city']).is_a?(Array)
407
- self.beneficial_owners_city = value
408
- end
409
- end
410
-
411
- if attributes.key?(:'beneficial_owners_region')
412
- if (value = attributes[:'beneficial_owners_region']).is_a?(Array)
413
- self.beneficial_owners_region = value
414
- end
415
- end
416
-
417
- if attributes.key?(:'beneficial_owners_postal_code')
418
- if (value = attributes[:'beneficial_owners_postal_code']).is_a?(Array)
419
- self.beneficial_owners_postal_code = value
420
- end
421
- end
422
-
423
- if attributes.key?(:'beneficial_owners_date_of_birth')
424
- if (value = attributes[:'beneficial_owners_date_of_birth']).is_a?(Array)
425
- self.beneficial_owners_date_of_birth = value
426
- end
306
+ if attributes.key?(:'signing_officer_phone_number')
307
+ self.signing_officer_phone_number = attributes[:'signing_officer_phone_number']
427
308
  end
428
309
 
429
- if attributes.key?(:'beneficial_owners_taxpayer_id')
430
- if (value = attributes[:'beneficial_owners_taxpayer_id']).is_a?(Array)
431
- self.beneficial_owners_taxpayer_id = value
310
+ if attributes.key?(:'beneficial_owners')
311
+ if (value = attributes[:'beneficial_owners']).is_a?(Array)
312
+ self.beneficial_owners = value
432
313
  end
433
314
  end
434
315
  end
@@ -450,7 +331,7 @@ module DealMakerAPI
450
331
  def valid?
451
332
  warn '[DEPRECATED] the `valid?` method is obsolete'
452
333
  return false if @email.nil?
453
- 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"])
454
335
  return false unless us_accredited_category_validator.valid?(@us_accredited_category)
455
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"])
456
337
  return false unless ca_accredited_investor_validator.valid?(@ca_accredited_investor)
@@ -460,7 +341,7 @@ module DealMakerAPI
460
341
  # Custom attribute writer method checking allowed values (enum).
461
342
  # @param [Object] us_accredited_category Object to be assigned
462
343
  def us_accredited_category=(us_accredited_category)
463
- 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"])
464
345
  unless validator.valid?(us_accredited_category)
465
346
  fail ArgumentError, "invalid value for \"us_accredited_category\", must be one of #{validator.allowable_values}."
466
347
  end
@@ -486,7 +367,6 @@ module DealMakerAPI
486
367
  us_accredited_category == o.us_accredited_category &&
487
368
  ca_accredited_investor == o.ca_accredited_investor &&
488
369
  name == o.name &&
489
- country == o.country &&
490
370
  street_address == o.street_address &&
491
371
  unit2 == o.unit2 &&
492
372
  city == o.city &&
@@ -500,7 +380,6 @@ module DealMakerAPI
500
380
  signing_officer_first_name == o.signing_officer_first_name &&
501
381
  signing_officer_last_name == o.signing_officer_last_name &&
502
382
  signing_officer_suffix == o.signing_officer_suffix &&
503
- signing_officer_country == o.signing_officer_country &&
504
383
  signing_officer_street_address == o.signing_officer_street_address &&
505
384
  signing_officer_unit2 == o.signing_officer_unit2 &&
506
385
  signing_officer_city == o.signing_officer_city &&
@@ -508,17 +387,8 @@ module DealMakerAPI
508
387
  signing_officer_postal_code == o.signing_officer_postal_code &&
509
388
  signing_officer_date_of_birth == o.signing_officer_date_of_birth &&
510
389
  signing_officer_taxpayer_id == o.signing_officer_taxpayer_id &&
511
- beneficial_owners_first_name == o.beneficial_owners_first_name &&
512
- beneficial_owners_last_name == o.beneficial_owners_last_name &&
513
- beneficial_owners_suffix == o.beneficial_owners_suffix &&
514
- beneficial_owners_country == o.beneficial_owners_country &&
515
- beneficial_owners_street_address == o.beneficial_owners_street_address &&
516
- beneficial_owners_unit2 == o.beneficial_owners_unit2 &&
517
- beneficial_owners_city == o.beneficial_owners_city &&
518
- beneficial_owners_region == o.beneficial_owners_region &&
519
- beneficial_owners_postal_code == o.beneficial_owners_postal_code &&
520
- beneficial_owners_date_of_birth == o.beneficial_owners_date_of_birth &&
521
- beneficial_owners_taxpayer_id == o.beneficial_owners_taxpayer_id
390
+ signing_officer_phone_number == o.signing_officer_phone_number &&
391
+ beneficial_owners == o.beneficial_owners
522
392
  end
523
393
 
524
394
  # @see the `==` method
@@ -530,7 +400,7 @@ module DealMakerAPI
530
400
  # Calculates hash code according to all attributes.
531
401
  # @return [Integer] Hash code
532
402
  def hash
533
- [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, 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].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
534
404
  end
535
405
 
536
406
  # Builds the object from hash