DealMakerAPI 0.86.1 → 0.88.1
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.
- checksums.yaml +4 -4
- data/DealMakerAPI.gemspec +1 -1
- data/README.md +10 -7
- data/docs/CompanyApi.md +67 -0
- data/docs/CreateShareholderActionRequest.md +3 -1
- data/docs/DealApi.md +0 -71
- data/docs/InvestorApi.md +83 -14
- data/docs/{CreateInvestorRequest.md → PostDealsIdInvestors.md} +2 -4
- data/docs/{UpdateInvestorRequest.md → PutDealsIdInvestors.md} +2 -4
- data/docs/V1EntitiesBulkUpload.md +1 -1
- data/docs/V1EntitiesDividend.md +24 -0
- data/docs/V1EntitiesDividends.md +18 -0
- data/lib/DealMakerAPI/api/company_api.rb +64 -1
- data/lib/DealMakerAPI/api/country_api.rb +1 -1
- data/lib/DealMakerAPI/api/deal_api.rb +1 -67
- data/lib/DealMakerAPI/api/deal_setup_api.rb +1 -1
- data/lib/DealMakerAPI/api/deals_api.rb +1 -1
- data/lib/DealMakerAPI/api/default_api.rb +1 -1
- data/lib/DealMakerAPI/api/investor_api.rb +95 -16
- data/lib/DealMakerAPI/api/investor_profile_api.rb +1 -1
- data/lib/DealMakerAPI/api/shareholder_api.rb +1 -1
- data/lib/DealMakerAPI/api/upload_api.rb +1 -1
- data/lib/DealMakerAPI/api/users_api.rb +1 -1
- data/lib/DealMakerAPI/api_client.rb +1 -1
- data/lib/DealMakerAPI/api_error.rb +1 -1
- data/lib/DealMakerAPI/configuration.rb +1 -1
- data/lib/DealMakerAPI/models/add506c_document_request.rb +1 -1
- data/lib/DealMakerAPI/models/add_document_request.rb +1 -1
- data/lib/DealMakerAPI/models/bulk_upload_investors_request.rb +1 -1
- data/lib/DealMakerAPI/models/create_bulk_upload_detail_request.rb +1 -1
- data/lib/DealMakerAPI/models/create_bulk_upload_request.rb +1 -1
- data/lib/DealMakerAPI/models/create_company_request.rb +1 -1
- data/lib/DealMakerAPI/models/create_deal_setup_request.rb +1 -1
- data/lib/DealMakerAPI/models/create_shareholder_action_request.rb +17 -5
- data/lib/DealMakerAPI/models/edit_investor_tags_request.rb +1 -1
- data/lib/DealMakerAPI/models/generate_url_request.rb +1 -1
- data/lib/DealMakerAPI/models/patch_investor_profiles_corporations.rb +1 -1
- data/lib/DealMakerAPI/models/patch_investor_profiles_corporations_beneficial_owners_inner.rb +1 -1
- data/lib/DealMakerAPI/models/patch_investor_profiles_individuals.rb +1 -1
- data/lib/DealMakerAPI/models/patch_investor_profiles_joints.rb +1 -1
- data/lib/DealMakerAPI/models/patch_investor_profiles_trusts.rb +1 -1
- data/lib/DealMakerAPI/models/patch_investor_request.rb +1 -1
- data/lib/DealMakerAPI/models/{create_investor_request.rb → post_deals_id_investors.rb} +6 -15
- data/lib/DealMakerAPI/models/post_investor_profiles_corporations.rb +1 -1
- data/lib/DealMakerAPI/models/post_investor_profiles_corporations_beneficial_owners_inner.rb +1 -1
- data/lib/DealMakerAPI/models/post_investor_profiles_individuals.rb +1 -1
- data/lib/DealMakerAPI/models/post_investor_profiles_joints.rb +1 -1
- data/lib/DealMakerAPI/models/post_investor_profiles_trusts.rb +1 -1
- data/lib/DealMakerAPI/models/post_investor_profiles_trusts_trustees_inner.rb +1 -1
- data/lib/DealMakerAPI/models/post_webhooks_request.rb +1 -1
- data/lib/DealMakerAPI/models/{update_investor_request.rb → put_deals_id_investors.rb} +6 -15
- data/lib/DealMakerAPI/models/put_deals_id_script_tag_environment_request.rb +1 -1
- data/lib/DealMakerAPI/models/put_webhooks_id_request.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_address.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_addresses.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_attachment.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_background_check_search.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_bulk_upload.rb +36 -2
- data/lib/DealMakerAPI/models/v1_entities_bulk_upload_detail.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_bulk_upload_details.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_bulk_uploads.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_company.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_company_deal.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_company_deals.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_countries.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_country.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_deal.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_deal_enterprise.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_deal_funding_metrics.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_deal_investor_metrics.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_deal_issuer.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_deal_setup.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_deal_setup_user.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_deals.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_dividend.rb +245 -0
- data/lib/DealMakerAPI/models/v1_entities_dividends.rb +215 -0
- data/lib/DealMakerAPI/models/v1_entities_express_wire_instruction.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_express_wire_instructions.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_generic_response.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_otp_access_link.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_address.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_corporation.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_account_holder.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_beneficial_owner.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_corporation.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_primary_holder.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_signing_officer.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_trust.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_individual.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_item.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_joint.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_owner.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_trust.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profiles.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_user.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_investors.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_presigned_url_result.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_shareholder.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_shareholders.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_shareholders_tags.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_state.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_subscription_agreement.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_webhooks_deal.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_webhooks_security_token.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription_deal.rb +1 -1
- data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription_deals.rb +1 -1
- data/lib/DealMakerAPI/version.rb +2 -2
- data/lib/DealMakerAPI.rb +5 -3
- data/spec/api/company_api_spec.rb +13 -1
- data/spec/api/country_api_spec.rb +1 -1
- data/spec/api/deal_api_spec.rb +1 -14
- data/spec/api/deal_setup_api_spec.rb +1 -1
- data/spec/api/deals_api_spec.rb +1 -1
- data/spec/api/default_api_spec.rb +1 -1
- data/spec/api/investor_api_spec.rb +17 -3
- data/spec/api/investor_profile_api_spec.rb +1 -1
- data/spec/api/shareholder_api_spec.rb +1 -1
- data/spec/api/upload_api_spec.rb +1 -1
- data/spec/api/users_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/add506c_document_request_spec.rb +4 -2
- data/spec/models/add_document_request_spec.rb +4 -2
- data/spec/models/bulk_upload_investors_request_spec.rb +4 -2
- data/spec/models/create_bulk_upload_detail_request_spec.rb +4 -2
- data/spec/models/create_bulk_upload_request_spec.rb +4 -2
- data/spec/models/create_company_request_spec.rb +4 -2
- data/spec/models/create_deal_setup_request_spec.rb +4 -2
- data/spec/models/create_shareholder_action_request_spec.rb +10 -2
- data/spec/models/edit_investor_tags_request_spec.rb +4 -2
- data/spec/models/generate_url_request_spec.rb +4 -2
- data/spec/models/patch_investor_profiles_corporations_beneficial_owners_inner_spec.rb +4 -2
- data/spec/models/patch_investor_profiles_corporations_spec.rb +4 -2
- data/spec/models/patch_investor_profiles_individuals_spec.rb +4 -2
- data/spec/models/patch_investor_profiles_joints_spec.rb +4 -2
- data/spec/models/patch_investor_profiles_trusts_spec.rb +4 -2
- data/spec/models/patch_investor_request_spec.rb +4 -2
- data/spec/models/{create_investor_request_spec.rb → post_deals_id_investors_spec.rb} +9 -13
- data/spec/models/post_investor_profiles_corporations_beneficial_owners_inner_spec.rb +4 -2
- data/spec/models/post_investor_profiles_corporations_spec.rb +4 -2
- data/spec/models/post_investor_profiles_individuals_spec.rb +4 -2
- data/spec/models/post_investor_profiles_joints_spec.rb +4 -2
- data/spec/models/post_investor_profiles_trusts_spec.rb +4 -2
- data/spec/models/post_investor_profiles_trusts_trustees_inner_spec.rb +4 -2
- data/spec/models/post_webhooks_request_spec.rb +4 -2
- data/spec/models/{update_investor_request_spec.rb → put_deals_id_investors_spec.rb} +9 -13
- data/spec/models/put_deals_id_script_tag_environment_request_spec.rb +4 -2
- data/spec/models/put_webhooks_id_request_spec.rb +4 -2
- data/spec/models/v1_entities_address_spec.rb +4 -2
- data/spec/models/v1_entities_addresses_spec.rb +4 -2
- data/spec/models/v1_entities_attachment_spec.rb +4 -2
- data/spec/models/v1_entities_background_check_search_spec.rb +4 -2
- data/spec/models/v1_entities_bulk_upload_detail_spec.rb +4 -2
- data/spec/models/v1_entities_bulk_upload_details_spec.rb +4 -2
- data/spec/models/v1_entities_bulk_upload_spec.rb +8 -2
- data/spec/models/v1_entities_bulk_uploads_spec.rb +4 -2
- data/spec/models/v1_entities_company_deal_spec.rb +4 -2
- data/spec/models/v1_entities_company_deals_spec.rb +4 -2
- data/spec/models/v1_entities_company_spec.rb +4 -2
- data/spec/models/v1_entities_countries_spec.rb +4 -2
- data/spec/models/v1_entities_country_spec.rb +4 -2
- data/spec/models/v1_entities_deal_enterprise_spec.rb +4 -2
- data/spec/models/v1_entities_deal_funding_metrics_spec.rb +4 -2
- data/spec/models/v1_entities_deal_investor_metrics_spec.rb +4 -2
- data/spec/models/v1_entities_deal_issuer_spec.rb +4 -2
- data/spec/models/v1_entities_deal_setup_spec.rb +4 -2
- data/spec/models/v1_entities_deal_setup_user_spec.rb +4 -2
- data/spec/models/v1_entities_deal_spec.rb +4 -2
- data/spec/models/v1_entities_deals_spec.rb +4 -2
- data/spec/models/v1_entities_dividend_spec.rb +54 -0
- data/spec/models/v1_entities_dividends_spec.rb +36 -0
- data/spec/models/v1_entities_express_wire_instruction_spec.rb +4 -2
- data/spec/models/v1_entities_express_wire_instructions_spec.rb +4 -2
- data/spec/models/v1_entities_generic_response_spec.rb +4 -2
- data/spec/models/v1_entities_investor_otp_access_link_spec.rb +4 -2
- data/spec/models/v1_entities_investor_profile_address_spec.rb +4 -2
- data/spec/models/v1_entities_investor_profile_corporation_spec.rb +4 -2
- data/spec/models/v1_entities_investor_profile_fields_account_holder_spec.rb +4 -2
- data/spec/models/v1_entities_investor_profile_fields_beneficial_owner_spec.rb +4 -2
- data/spec/models/v1_entities_investor_profile_fields_corporation_spec.rb +4 -2
- data/spec/models/v1_entities_investor_profile_fields_primary_holder_spec.rb +4 -2
- data/spec/models/v1_entities_investor_profile_fields_signing_officer_spec.rb +4 -2
- data/spec/models/v1_entities_investor_profile_fields_trust_spec.rb +4 -2
- data/spec/models/v1_entities_investor_profile_individual_spec.rb +4 -2
- data/spec/models/v1_entities_investor_profile_item_spec.rb +4 -2
- data/spec/models/v1_entities_investor_profile_joint_spec.rb +4 -2
- data/spec/models/v1_entities_investor_profile_owner_spec.rb +4 -2
- data/spec/models/v1_entities_investor_profile_trust_spec.rb +4 -2
- data/spec/models/v1_entities_investor_profiles_spec.rb +4 -2
- data/spec/models/v1_entities_investor_spec.rb +4 -2
- data/spec/models/v1_entities_investor_user_spec.rb +4 -2
- data/spec/models/v1_entities_investors_spec.rb +4 -2
- data/spec/models/v1_entities_presigned_url_result_spec.rb +4 -2
- data/spec/models/v1_entities_shareholder_spec.rb +4 -2
- data/spec/models/v1_entities_shareholders_spec.rb +4 -2
- data/spec/models/v1_entities_shareholders_tags_spec.rb +4 -2
- data/spec/models/v1_entities_state_spec.rb +4 -2
- data/spec/models/v1_entities_subscription_agreement_spec.rb +4 -2
- data/spec/models/v1_entities_webhooks_deal_spec.rb +4 -2
- data/spec/models/v1_entities_webhooks_security_token_spec.rb +4 -2
- data/spec/models/v1_entities_webhooks_subscription_deal_spec.rb +4 -2
- data/spec/models/v1_entities_webhooks_subscription_deals_spec.rb +4 -2
- data/spec/models/v1_entities_webhooks_subscription_spec.rb +4 -2
- data/spec/spec_helper.rb +1 -1
- 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
|
|
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
|
-
|
|
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::
|
|
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::
|
|
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,
|
|
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
|
|
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
|
-
|
|
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::
|
|
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::
|
|
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,
|
|
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
|
|
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
|
|
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)
|