DealMakerAPI 0.86.1 → 0.88.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (207) hide show
  1. checksums.yaml +4 -4
  2. data/DealMakerAPI.gemspec +1 -1
  3. data/README.md +10 -7
  4. data/docs/CompanyApi.md +67 -0
  5. data/docs/CreateShareholderActionRequest.md +3 -1
  6. data/docs/DealApi.md +0 -71
  7. data/docs/InvestorApi.md +83 -14
  8. data/docs/{CreateInvestorRequest.md → PostDealsIdInvestors.md} +2 -4
  9. data/docs/{UpdateInvestorRequest.md → PutDealsIdInvestors.md} +2 -4
  10. data/docs/V1EntitiesBulkUpload.md +1 -1
  11. data/docs/V1EntitiesDividend.md +24 -0
  12. data/docs/V1EntitiesDividends.md +18 -0
  13. data/lib/DealMakerAPI/api/company_api.rb +64 -1
  14. data/lib/DealMakerAPI/api/country_api.rb +1 -1
  15. data/lib/DealMakerAPI/api/deal_api.rb +1 -67
  16. data/lib/DealMakerAPI/api/deal_setup_api.rb +1 -1
  17. data/lib/DealMakerAPI/api/deals_api.rb +1 -1
  18. data/lib/DealMakerAPI/api/default_api.rb +1 -1
  19. data/lib/DealMakerAPI/api/investor_api.rb +95 -16
  20. data/lib/DealMakerAPI/api/investor_profile_api.rb +1 -1
  21. data/lib/DealMakerAPI/api/shareholder_api.rb +1 -1
  22. data/lib/DealMakerAPI/api/upload_api.rb +1 -1
  23. data/lib/DealMakerAPI/api/users_api.rb +1 -1
  24. data/lib/DealMakerAPI/api_client.rb +1 -1
  25. data/lib/DealMakerAPI/api_error.rb +1 -1
  26. data/lib/DealMakerAPI/configuration.rb +1 -1
  27. data/lib/DealMakerAPI/models/add506c_document_request.rb +1 -1
  28. data/lib/DealMakerAPI/models/add_document_request.rb +1 -1
  29. data/lib/DealMakerAPI/models/bulk_upload_investors_request.rb +1 -1
  30. data/lib/DealMakerAPI/models/create_bulk_upload_detail_request.rb +1 -1
  31. data/lib/DealMakerAPI/models/create_bulk_upload_request.rb +1 -1
  32. data/lib/DealMakerAPI/models/create_company_request.rb +1 -1
  33. data/lib/DealMakerAPI/models/create_deal_setup_request.rb +1 -1
  34. data/lib/DealMakerAPI/models/create_shareholder_action_request.rb +17 -5
  35. data/lib/DealMakerAPI/models/edit_investor_tags_request.rb +1 -1
  36. data/lib/DealMakerAPI/models/generate_url_request.rb +1 -1
  37. data/lib/DealMakerAPI/models/patch_investor_profiles_corporations.rb +1 -1
  38. data/lib/DealMakerAPI/models/patch_investor_profiles_corporations_beneficial_owners_inner.rb +1 -1
  39. data/lib/DealMakerAPI/models/patch_investor_profiles_individuals.rb +1 -1
  40. data/lib/DealMakerAPI/models/patch_investor_profiles_joints.rb +1 -1
  41. data/lib/DealMakerAPI/models/patch_investor_profiles_trusts.rb +1 -1
  42. data/lib/DealMakerAPI/models/patch_investor_request.rb +1 -1
  43. data/lib/DealMakerAPI/models/{create_investor_request.rb → post_deals_id_investors.rb} +6 -15
  44. data/lib/DealMakerAPI/models/post_investor_profiles_corporations.rb +1 -1
  45. data/lib/DealMakerAPI/models/post_investor_profiles_corporations_beneficial_owners_inner.rb +1 -1
  46. data/lib/DealMakerAPI/models/post_investor_profiles_individuals.rb +1 -1
  47. data/lib/DealMakerAPI/models/post_investor_profiles_joints.rb +1 -1
  48. data/lib/DealMakerAPI/models/post_investor_profiles_trusts.rb +1 -1
  49. data/lib/DealMakerAPI/models/post_investor_profiles_trusts_trustees_inner.rb +1 -1
  50. data/lib/DealMakerAPI/models/post_webhooks_request.rb +1 -1
  51. data/lib/DealMakerAPI/models/{update_investor_request.rb → put_deals_id_investors.rb} +6 -15
  52. data/lib/DealMakerAPI/models/put_deals_id_script_tag_environment_request.rb +1 -1
  53. data/lib/DealMakerAPI/models/put_webhooks_id_request.rb +1 -1
  54. data/lib/DealMakerAPI/models/v1_entities_address.rb +1 -1
  55. data/lib/DealMakerAPI/models/v1_entities_addresses.rb +1 -1
  56. data/lib/DealMakerAPI/models/v1_entities_attachment.rb +1 -1
  57. data/lib/DealMakerAPI/models/v1_entities_background_check_search.rb +1 -1
  58. data/lib/DealMakerAPI/models/v1_entities_bulk_upload.rb +36 -2
  59. data/lib/DealMakerAPI/models/v1_entities_bulk_upload_detail.rb +1 -1
  60. data/lib/DealMakerAPI/models/v1_entities_bulk_upload_details.rb +1 -1
  61. data/lib/DealMakerAPI/models/v1_entities_bulk_uploads.rb +1 -1
  62. data/lib/DealMakerAPI/models/v1_entities_company.rb +1 -1
  63. data/lib/DealMakerAPI/models/v1_entities_company_deal.rb +1 -1
  64. data/lib/DealMakerAPI/models/v1_entities_company_deals.rb +1 -1
  65. data/lib/DealMakerAPI/models/v1_entities_countries.rb +1 -1
  66. data/lib/DealMakerAPI/models/v1_entities_country.rb +1 -1
  67. data/lib/DealMakerAPI/models/v1_entities_deal.rb +1 -1
  68. data/lib/DealMakerAPI/models/v1_entities_deal_enterprise.rb +1 -1
  69. data/lib/DealMakerAPI/models/v1_entities_deal_funding_metrics.rb +1 -1
  70. data/lib/DealMakerAPI/models/v1_entities_deal_investor_metrics.rb +1 -1
  71. data/lib/DealMakerAPI/models/v1_entities_deal_issuer.rb +1 -1
  72. data/lib/DealMakerAPI/models/v1_entities_deal_setup.rb +1 -1
  73. data/lib/DealMakerAPI/models/v1_entities_deal_setup_user.rb +1 -1
  74. data/lib/DealMakerAPI/models/v1_entities_deals.rb +1 -1
  75. data/lib/DealMakerAPI/models/v1_entities_dividend.rb +245 -0
  76. data/lib/DealMakerAPI/models/v1_entities_dividends.rb +215 -0
  77. data/lib/DealMakerAPI/models/v1_entities_express_wire_instruction.rb +1 -1
  78. data/lib/DealMakerAPI/models/v1_entities_express_wire_instructions.rb +1 -1
  79. data/lib/DealMakerAPI/models/v1_entities_generic_response.rb +1 -1
  80. data/lib/DealMakerAPI/models/v1_entities_investor.rb +1 -1
  81. data/lib/DealMakerAPI/models/v1_entities_investor_otp_access_link.rb +1 -1
  82. data/lib/DealMakerAPI/models/v1_entities_investor_profile_address.rb +1 -1
  83. data/lib/DealMakerAPI/models/v1_entities_investor_profile_corporation.rb +1 -1
  84. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_account_holder.rb +1 -1
  85. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_beneficial_owner.rb +1 -1
  86. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_corporation.rb +1 -1
  87. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_primary_holder.rb +1 -1
  88. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_signing_officer.rb +1 -1
  89. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_trust.rb +1 -1
  90. data/lib/DealMakerAPI/models/v1_entities_investor_profile_individual.rb +1 -1
  91. data/lib/DealMakerAPI/models/v1_entities_investor_profile_item.rb +1 -1
  92. data/lib/DealMakerAPI/models/v1_entities_investor_profile_joint.rb +1 -1
  93. data/lib/DealMakerAPI/models/v1_entities_investor_profile_owner.rb +1 -1
  94. data/lib/DealMakerAPI/models/v1_entities_investor_profile_trust.rb +1 -1
  95. data/lib/DealMakerAPI/models/v1_entities_investor_profiles.rb +1 -1
  96. data/lib/DealMakerAPI/models/v1_entities_investor_user.rb +1 -1
  97. data/lib/DealMakerAPI/models/v1_entities_investors.rb +1 -1
  98. data/lib/DealMakerAPI/models/v1_entities_presigned_url_result.rb +1 -1
  99. data/lib/DealMakerAPI/models/v1_entities_shareholder.rb +1 -1
  100. data/lib/DealMakerAPI/models/v1_entities_shareholders.rb +1 -1
  101. data/lib/DealMakerAPI/models/v1_entities_shareholders_tags.rb +1 -1
  102. data/lib/DealMakerAPI/models/v1_entities_state.rb +1 -1
  103. data/lib/DealMakerAPI/models/v1_entities_subscription_agreement.rb +1 -1
  104. data/lib/DealMakerAPI/models/v1_entities_webhooks_deal.rb +1 -1
  105. data/lib/DealMakerAPI/models/v1_entities_webhooks_security_token.rb +1 -1
  106. data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription.rb +1 -1
  107. data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription_deal.rb +1 -1
  108. data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription_deals.rb +1 -1
  109. data/lib/DealMakerAPI/version.rb +2 -2
  110. data/lib/DealMakerAPI.rb +5 -3
  111. data/spec/api/company_api_spec.rb +13 -1
  112. data/spec/api/country_api_spec.rb +1 -1
  113. data/spec/api/deal_api_spec.rb +1 -14
  114. data/spec/api/deal_setup_api_spec.rb +1 -1
  115. data/spec/api/deals_api_spec.rb +1 -1
  116. data/spec/api/default_api_spec.rb +1 -1
  117. data/spec/api/investor_api_spec.rb +17 -3
  118. data/spec/api/investor_profile_api_spec.rb +1 -1
  119. data/spec/api/shareholder_api_spec.rb +1 -1
  120. data/spec/api/upload_api_spec.rb +1 -1
  121. data/spec/api/users_api_spec.rb +1 -1
  122. data/spec/api_client_spec.rb +1 -1
  123. data/spec/configuration_spec.rb +1 -1
  124. data/spec/models/add506c_document_request_spec.rb +4 -2
  125. data/spec/models/add_document_request_spec.rb +4 -2
  126. data/spec/models/bulk_upload_investors_request_spec.rb +4 -2
  127. data/spec/models/create_bulk_upload_detail_request_spec.rb +4 -2
  128. data/spec/models/create_bulk_upload_request_spec.rb +4 -2
  129. data/spec/models/create_company_request_spec.rb +4 -2
  130. data/spec/models/create_deal_setup_request_spec.rb +4 -2
  131. data/spec/models/create_shareholder_action_request_spec.rb +10 -2
  132. data/spec/models/edit_investor_tags_request_spec.rb +4 -2
  133. data/spec/models/generate_url_request_spec.rb +4 -2
  134. data/spec/models/patch_investor_profiles_corporations_beneficial_owners_inner_spec.rb +4 -2
  135. data/spec/models/patch_investor_profiles_corporations_spec.rb +4 -2
  136. data/spec/models/patch_investor_profiles_individuals_spec.rb +4 -2
  137. data/spec/models/patch_investor_profiles_joints_spec.rb +4 -2
  138. data/spec/models/patch_investor_profiles_trusts_spec.rb +4 -2
  139. data/spec/models/patch_investor_request_spec.rb +4 -2
  140. data/spec/models/{create_investor_request_spec.rb → post_deals_id_investors_spec.rb} +9 -13
  141. data/spec/models/post_investor_profiles_corporations_beneficial_owners_inner_spec.rb +4 -2
  142. data/spec/models/post_investor_profiles_corporations_spec.rb +4 -2
  143. data/spec/models/post_investor_profiles_individuals_spec.rb +4 -2
  144. data/spec/models/post_investor_profiles_joints_spec.rb +4 -2
  145. data/spec/models/post_investor_profiles_trusts_spec.rb +4 -2
  146. data/spec/models/post_investor_profiles_trusts_trustees_inner_spec.rb +4 -2
  147. data/spec/models/post_webhooks_request_spec.rb +4 -2
  148. data/spec/models/{update_investor_request_spec.rb → put_deals_id_investors_spec.rb} +9 -13
  149. data/spec/models/put_deals_id_script_tag_environment_request_spec.rb +4 -2
  150. data/spec/models/put_webhooks_id_request_spec.rb +4 -2
  151. data/spec/models/v1_entities_address_spec.rb +4 -2
  152. data/spec/models/v1_entities_addresses_spec.rb +4 -2
  153. data/spec/models/v1_entities_attachment_spec.rb +4 -2
  154. data/spec/models/v1_entities_background_check_search_spec.rb +4 -2
  155. data/spec/models/v1_entities_bulk_upload_detail_spec.rb +4 -2
  156. data/spec/models/v1_entities_bulk_upload_details_spec.rb +4 -2
  157. data/spec/models/v1_entities_bulk_upload_spec.rb +8 -2
  158. data/spec/models/v1_entities_bulk_uploads_spec.rb +4 -2
  159. data/spec/models/v1_entities_company_deal_spec.rb +4 -2
  160. data/spec/models/v1_entities_company_deals_spec.rb +4 -2
  161. data/spec/models/v1_entities_company_spec.rb +4 -2
  162. data/spec/models/v1_entities_countries_spec.rb +4 -2
  163. data/spec/models/v1_entities_country_spec.rb +4 -2
  164. data/spec/models/v1_entities_deal_enterprise_spec.rb +4 -2
  165. data/spec/models/v1_entities_deal_funding_metrics_spec.rb +4 -2
  166. data/spec/models/v1_entities_deal_investor_metrics_spec.rb +4 -2
  167. data/spec/models/v1_entities_deal_issuer_spec.rb +4 -2
  168. data/spec/models/v1_entities_deal_setup_spec.rb +4 -2
  169. data/spec/models/v1_entities_deal_setup_user_spec.rb +4 -2
  170. data/spec/models/v1_entities_deal_spec.rb +4 -2
  171. data/spec/models/v1_entities_deals_spec.rb +4 -2
  172. data/spec/models/v1_entities_dividend_spec.rb +54 -0
  173. data/spec/models/v1_entities_dividends_spec.rb +36 -0
  174. data/spec/models/v1_entities_express_wire_instruction_spec.rb +4 -2
  175. data/spec/models/v1_entities_express_wire_instructions_spec.rb +4 -2
  176. data/spec/models/v1_entities_generic_response_spec.rb +4 -2
  177. data/spec/models/v1_entities_investor_otp_access_link_spec.rb +4 -2
  178. data/spec/models/v1_entities_investor_profile_address_spec.rb +4 -2
  179. data/spec/models/v1_entities_investor_profile_corporation_spec.rb +4 -2
  180. data/spec/models/v1_entities_investor_profile_fields_account_holder_spec.rb +4 -2
  181. data/spec/models/v1_entities_investor_profile_fields_beneficial_owner_spec.rb +4 -2
  182. data/spec/models/v1_entities_investor_profile_fields_corporation_spec.rb +4 -2
  183. data/spec/models/v1_entities_investor_profile_fields_primary_holder_spec.rb +4 -2
  184. data/spec/models/v1_entities_investor_profile_fields_signing_officer_spec.rb +4 -2
  185. data/spec/models/v1_entities_investor_profile_fields_trust_spec.rb +4 -2
  186. data/spec/models/v1_entities_investor_profile_individual_spec.rb +4 -2
  187. data/spec/models/v1_entities_investor_profile_item_spec.rb +4 -2
  188. data/spec/models/v1_entities_investor_profile_joint_spec.rb +4 -2
  189. data/spec/models/v1_entities_investor_profile_owner_spec.rb +4 -2
  190. data/spec/models/v1_entities_investor_profile_trust_spec.rb +4 -2
  191. data/spec/models/v1_entities_investor_profiles_spec.rb +4 -2
  192. data/spec/models/v1_entities_investor_spec.rb +4 -2
  193. data/spec/models/v1_entities_investor_user_spec.rb +4 -2
  194. data/spec/models/v1_entities_investors_spec.rb +4 -2
  195. data/spec/models/v1_entities_presigned_url_result_spec.rb +4 -2
  196. data/spec/models/v1_entities_shareholder_spec.rb +4 -2
  197. data/spec/models/v1_entities_shareholders_spec.rb +4 -2
  198. data/spec/models/v1_entities_shareholders_tags_spec.rb +4 -2
  199. data/spec/models/v1_entities_state_spec.rb +4 -2
  200. data/spec/models/v1_entities_subscription_agreement_spec.rb +4 -2
  201. data/spec/models/v1_entities_webhooks_deal_spec.rb +4 -2
  202. data/spec/models/v1_entities_webhooks_security_token_spec.rb +4 -2
  203. data/spec/models/v1_entities_webhooks_subscription_deal_spec.rb +4 -2
  204. data/spec/models/v1_entities_webhooks_subscription_deals_spec.rb +4 -2
  205. data/spec/models/v1_entities_webhooks_subscription_spec.rb +4 -2
  206. data/spec/spec_helper.rb +1 -1
  207. metadata +85 -77
@@ -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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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 CreateInvestorRequest
17
+ # Create deal investor
18
+ class PostDealsIdInvestors
18
19
  # The investor email address.
19
20
  attr_accessor :email
20
21
 
@@ -44,9 +45,6 @@ module DealMakerAPI
44
45
  # The allocation amount of the investor.
45
46
  attr_accessor :allocated_amount
46
47
 
47
- # The investment value of the investor.
48
- attr_accessor :investment_value
49
-
50
48
  # The allocation unit of the investor.
51
49
  attr_accessor :allocation_unit
52
50
 
@@ -88,7 +86,6 @@ module DealMakerAPI
88
86
  :'warrant_expiry_date' => :'warrant_expiry_date',
89
87
  :'warrant_certificate_number' => :'warrant_certificate_number',
90
88
  :'allocated_amount' => :'allocated_amount',
91
- :'investment_value' => :'investment_value',
92
89
  :'allocation_unit' => :'allocation_unit',
93
90
  :'state' => :'state'
94
91
  }
@@ -112,7 +109,6 @@ module DealMakerAPI
112
109
  :'warrant_expiry_date' => :'Date',
113
110
  :'warrant_certificate_number' => :'Integer',
114
111
  :'allocated_amount' => :'Float',
115
- :'investment_value' => :'Float',
116
112
  :'allocation_unit' => :'String',
117
113
  :'state' => :'String'
118
114
  }
@@ -128,13 +124,13 @@ module DealMakerAPI
128
124
  # @param [Hash] attributes Model attributes in the form of hash
129
125
  def initialize(attributes = {})
130
126
  if (!attributes.is_a?(Hash))
131
- fail ArgumentError, "The input argument (attributes) must be a hash in `DealMakerAPI::CreateInvestorRequest` initialize method"
127
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DealMakerAPI::PostDealsIdInvestors` initialize method"
132
128
  end
133
129
 
134
130
  # check to see if the attribute exists and convert string to symbol for hash key
135
131
  attributes = attributes.each_with_object({}) { |(k, v), h|
136
132
  if (!self.class.attribute_map.key?(k.to_sym))
137
- fail ArgumentError, "`#{k}` is not a valid attribute in `DealMakerAPI::CreateInvestorRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
133
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DealMakerAPI::PostDealsIdInvestors`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
138
134
  end
139
135
  h[k.to_sym] = v
140
136
  }
@@ -183,10 +179,6 @@ module DealMakerAPI
183
179
  self.allocated_amount = attributes[:'allocated_amount']
184
180
  end
185
181
 
186
- if attributes.key?(:'investment_value')
187
- self.investment_value = attributes[:'investment_value']
188
- end
189
-
190
182
  if attributes.key?(:'allocation_unit')
191
183
  self.allocation_unit = attributes[:'allocation_unit']
192
184
  else
@@ -259,7 +251,6 @@ module DealMakerAPI
259
251
  warrant_expiry_date == o.warrant_expiry_date &&
260
252
  warrant_certificate_number == o.warrant_certificate_number &&
261
253
  allocated_amount == o.allocated_amount &&
262
- investment_value == o.investment_value &&
263
254
  allocation_unit == o.allocation_unit &&
264
255
  state == o.state
265
256
  end
@@ -273,7 +264,7 @@ module DealMakerAPI
273
264
  # Calculates hash code according to all attributes.
274
265
  # @return [Integer] Hash code
275
266
  def hash
276
- [email, investor_profile_id, tags, first_name, last_name, phone_number, message, warrant_expiry_date, warrant_certificate_number, allocated_amount, investment_value, allocation_unit, state].hash
267
+ [email, investor_profile_id, tags, first_name, last_name, phone_number, message, warrant_expiry_date, warrant_certificate_number, allocated_amount, allocation_unit, state].hash
277
268
  end
278
269
 
279
270
  # 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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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 UpdateInvestorRequest
17
+ # Update deal investor
18
+ class PutDealsIdInvestors
18
19
  # The warrant expiry date of the investor.
19
20
  attr_accessor :warrant_expiry_date
20
21
 
@@ -27,9 +28,6 @@ module DealMakerAPI
27
28
  # The allocation unit of the investor.
28
29
  attr_accessor :allocation_unit
29
30
 
30
- # The investment value of the investor.
31
- attr_accessor :investment_value
32
-
33
31
  # The notes of the investor.
34
32
  attr_accessor :notes
35
33
 
@@ -62,7 +60,6 @@ module DealMakerAPI
62
60
  :'warrant_certificate_number' => :'warrant_certificate_number',
63
61
  :'allocated_amount' => :'allocated_amount',
64
62
  :'allocation_unit' => :'allocation_unit',
65
- :'investment_value' => :'investment_value',
66
63
  :'notes' => :'notes'
67
64
  }
68
65
  end
@@ -79,7 +76,6 @@ module DealMakerAPI
79
76
  :'warrant_certificate_number' => :'Integer',
80
77
  :'allocated_amount' => :'Float',
81
78
  :'allocation_unit' => :'String',
82
- :'investment_value' => :'Float',
83
79
  :'notes' => :'String'
84
80
  }
85
81
  end
@@ -94,13 +90,13 @@ module DealMakerAPI
94
90
  # @param [Hash] attributes Model attributes in the form of hash
95
91
  def initialize(attributes = {})
96
92
  if (!attributes.is_a?(Hash))
97
- fail ArgumentError, "The input argument (attributes) must be a hash in `DealMakerAPI::UpdateInvestorRequest` initialize method"
93
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DealMakerAPI::PutDealsIdInvestors` initialize method"
98
94
  end
99
95
 
100
96
  # check to see if the attribute exists and convert string to symbol for hash key
101
97
  attributes = attributes.each_with_object({}) { |(k, v), h|
102
98
  if (!self.class.attribute_map.key?(k.to_sym))
103
- fail ArgumentError, "`#{k}` is not a valid attribute in `DealMakerAPI::UpdateInvestorRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
99
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DealMakerAPI::PutDealsIdInvestors`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
104
100
  end
105
101
  h[k.to_sym] = v
106
102
  }
@@ -123,10 +119,6 @@ module DealMakerAPI
123
119
  self.allocation_unit = 'securities'
124
120
  end
125
121
 
126
- if attributes.key?(:'investment_value')
127
- self.investment_value = attributes[:'investment_value']
128
- end
129
-
130
122
  if attributes.key?(:'notes')
131
123
  self.notes = attributes[:'notes']
132
124
  end
@@ -168,7 +160,6 @@ module DealMakerAPI
168
160
  warrant_certificate_number == o.warrant_certificate_number &&
169
161
  allocated_amount == o.allocated_amount &&
170
162
  allocation_unit == o.allocation_unit &&
171
- investment_value == o.investment_value &&
172
163
  notes == o.notes
173
164
  end
174
165
 
@@ -181,7 +172,7 @@ module DealMakerAPI
181
172
  # Calculates hash code according to all attributes.
182
173
  # @return [Integer] Hash code
183
174
  def hash
184
- [warrant_expiry_date, warrant_certificate_number, allocated_amount, allocation_unit, investment_value, notes].hash
175
+ [warrant_expiry_date, warrant_certificate_number, allocated_amount, allocation_unit, notes].hash
185
176
  end
186
177
 
187
178
  # 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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -25,7 +25,7 @@ module DealMakerAPI
25
25
  # The file identifier [shareholder, investor]
26
26
  attr_accessor :file_identifier
27
27
 
28
- # The document type [drs_statement, shareholder_statement, book_entry_statement]
28
+ # The document type
29
29
  attr_accessor :document_type
30
30
 
31
31
  # The bulk upload name
@@ -49,6 +49,28 @@ module DealMakerAPI
49
49
  # The updated at timestamp
50
50
  attr_accessor :updated_at
51
51
 
52
+ class EnumAttributeValidator
53
+ attr_reader :datatype
54
+ attr_reader :allowable_values
55
+
56
+ def initialize(datatype, allowable_values)
57
+ @allowable_values = allowable_values.map do |value|
58
+ case datatype.to_s
59
+ when /Integer/i
60
+ value.to_i
61
+ when /Float/i
62
+ value.to_f
63
+ else
64
+ value
65
+ end
66
+ end
67
+ end
68
+
69
+ def valid?(value)
70
+ !value || allowable_values.include?(value)
71
+ end
72
+ end
73
+
52
74
  # Attribute mapping from ruby-style variable name to JSON key.
53
75
  def self.attribute_map
54
76
  {
@@ -166,9 +188,21 @@ module DealMakerAPI
166
188
  # @return true if the model is valid
167
189
  def valid?
168
190
  warn '[DEPRECATED] the `valid?` method is obsolete'
191
+ document_type_validator = EnumAttributeValidator.new('String', ["drs_statement", "shareholder_statement", "book_entry_statement", "dividend_statement"])
192
+ return false unless document_type_validator.valid?(@document_type)
169
193
  true
170
194
  end
171
195
 
196
+ # Custom attribute writer method checking allowed values (enum).
197
+ # @param [Object] document_type Object to be assigned
198
+ def document_type=(document_type)
199
+ validator = EnumAttributeValidator.new('String', ["drs_statement", "shareholder_statement", "book_entry_statement", "dividend_statement"])
200
+ unless validator.valid?(document_type)
201
+ fail ArgumentError, "invalid value for \"document_type\", must be one of #{validator.allowable_values}."
202
+ end
203
+ @document_type = document_type
204
+ end
205
+
172
206
  # Checks equality by comparing each attribute.
173
207
  # @param [Object] Object to be compared
174
208
  def ==(o)
@@ -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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-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.1-SNAPSHOT
9
+ OpenAPI Generator version: 7.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12