DealMakerAPI 0.71.0 → 0.74.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/DealMakerAPI.gemspec +1 -1
- data/README.md +8 -4
- data/docs/InvestorApi.md +69 -0
- data/docs/InvestorProfileApi.md +144 -0
- data/docs/PatchInvestorRequest.md +3 -1
- data/docs/V1EntitiesInvestor.md +5 -1
- data/docs/V1EntitiesInvestorOtpAccessLink.md +18 -0
- data/lib/DealMakerAPI/api/company_api.rb +1 -1
- data/lib/DealMakerAPI/api/deal_api.rb +1 -1
- data/lib/DealMakerAPI/api/deal_setup_api.rb +1 -1
- data/lib/DealMakerAPI/api/default_api.rb +1 -1
- data/lib/DealMakerAPI/api/investor_api.rb +70 -1
- data/lib/DealMakerAPI/api/investor_profile_api.rb +139 -1
- data/lib/DealMakerAPI/api_client.rb +1 -1
- data/lib/DealMakerAPI/api_error.rb +1 -1
- data/lib/DealMakerAPI/configuration.rb +6 -1
- data/lib/DealMakerAPI/models/create_company_request.rb +1 -1
- data/lib/DealMakerAPI/models/create_corporation_profile_request.rb +1 -1
- data/lib/DealMakerAPI/models/create_deal_setup_request.rb +1 -1
- data/lib/DealMakerAPI/models/create_individual_profile_request.rb +1 -1
- data/lib/DealMakerAPI/models/create_investor_request.rb +1 -1
- data/lib/DealMakerAPI/models/create_joint_profile_request.rb +1 -1
- data/lib/DealMakerAPI/models/create_trust_profile_request.rb +1 -1
- data/lib/DealMakerAPI/models/patch_corporation_profile_request.rb +1 -1
- data/lib/DealMakerAPI/models/patch_individual_profile_request.rb +1 -1
- data/lib/DealMakerAPI/models/patch_investor_request.rb +51 -5
- data/lib/DealMakerAPI/models/patch_joint_profile_request.rb +1 -1
- data/lib/DealMakerAPI/models/patch_trust_profile_request.rb +1 -1
- data/lib/DealMakerAPI/models/post_webhooks_request.rb +1 -1
- data/lib/DealMakerAPI/models/put_webhooks_id_request.rb +1 -1
- data/lib/DealMakerAPI/models/update_investor_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_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_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_investor.rb +25 -5
- data/lib/DealMakerAPI/models/v1_entities_investor_otp_access_link.rb +221 -0
- 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_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_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 +2 -1
- data/lib/DealMakerAPI/models/v1_entities_investor_profile_joint.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_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 +2 -1
- data/spec/api/company_api_spec.rb +1 -1
- data/spec/api/deal_api_spec.rb +1 -1
- data/spec/api/deal_setup_api_spec.rb +1 -1
- data/spec/api/default_api_spec.rb +1 -1
- data/spec/api/investor_api_spec.rb +14 -1
- data/spec/api/investor_profile_api_spec.rb +29 -1
- data/spec/api_client_spec.rb +3 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/create_company_request_spec.rb +1 -1
- data/spec/models/create_corporation_profile_request_spec.rb +1 -1
- data/spec/models/create_deal_setup_request_spec.rb +1 -1
- data/spec/models/create_individual_profile_request_spec.rb +1 -1
- data/spec/models/create_investor_request_spec.rb +1 -1
- data/spec/models/create_joint_profile_request_spec.rb +1 -1
- data/spec/models/create_trust_profile_request_spec.rb +1 -1
- data/spec/models/patch_corporation_profile_request_spec.rb +1 -1
- data/spec/models/patch_individual_profile_request_spec.rb +1 -1
- data/spec/models/patch_investor_request_spec.rb +11 -1
- data/spec/models/patch_joint_profile_request_spec.rb +1 -1
- data/spec/models/patch_trust_profile_request_spec.rb +1 -1
- data/spec/models/post_webhooks_request_spec.rb +1 -1
- data/spec/models/put_webhooks_id_request_spec.rb +1 -1
- data/spec/models/update_investor_request_spec.rb +1 -1
- data/spec/models/v1_entities_address_spec.rb +1 -1
- data/spec/models/v1_entities_addresses_spec.rb +1 -1
- data/spec/models/v1_entities_attachment_spec.rb +1 -1
- data/spec/models/v1_entities_background_check_search_spec.rb +1 -1
- data/spec/models/v1_entities_company_deal_spec.rb +1 -1
- data/spec/models/v1_entities_company_deals_spec.rb +1 -1
- data/spec/models/v1_entities_company_spec.rb +1 -1
- data/spec/models/v1_entities_deal_enterprise_spec.rb +1 -1
- data/spec/models/v1_entities_deal_funding_metrics_spec.rb +1 -1
- data/spec/models/v1_entities_deal_investor_metrics_spec.rb +1 -1
- data/spec/models/v1_entities_deal_issuer_spec.rb +1 -1
- data/spec/models/v1_entities_deal_setup_spec.rb +1 -1
- data/spec/models/v1_entities_deal_setup_user_spec.rb +1 -1
- data/spec/models/v1_entities_deal_spec.rb +1 -1
- data/spec/models/v1_entities_deals_spec.rb +1 -1
- data/spec/models/v1_entities_investor_otp_access_link_spec.rb +34 -0
- data/spec/models/v1_entities_investor_profile_address_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_corporation_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_fields_account_holder_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_fields_corporation_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_fields_primary_holder_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_fields_trust_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_individual_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_item_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_joint_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profile_trust_spec.rb +1 -1
- data/spec/models/v1_entities_investor_profiles_spec.rb +1 -1
- data/spec/models/v1_entities_investor_spec.rb +13 -1
- data/spec/models/v1_entities_investor_user_spec.rb +1 -1
- data/spec/models/v1_entities_investors_spec.rb +1 -1
- data/spec/models/v1_entities_subscription_agreement_spec.rb +1 -1
- data/spec/models/v1_entities_webhooks_deal_spec.rb +1 -1
- data/spec/models/v1_entities_webhooks_security_token_spec.rb +1 -1
- data/spec/models/v1_entities_webhooks_subscription_deal_spec.rb +1 -1
- data/spec/models/v1_entities_webhooks_subscription_deals_spec.rb +1 -1
- data/spec/models/v1_entities_webhooks_subscription_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +48 -44
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.5.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -67,6 +67,11 @@ module DealMakerAPI
|
|
67
67
|
# @return [Proc]
|
68
68
|
attr_accessor :access_token_getter
|
69
69
|
|
70
|
+
# Set this to return data as binary instead of downloading a temp file. When enabled (set to true)
|
71
|
+
# HTTP responses with return type `File` will be returned as a stream of binary data.
|
72
|
+
# Default to false.
|
73
|
+
attr_accessor :return_binary_data
|
74
|
+
|
70
75
|
# Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
|
71
76
|
# details will be logged with `logger.debug` (see the `logger` attribute).
|
72
77
|
# Default to false.
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.5.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,10 +18,36 @@ module DealMakerAPI
|
|
18
18
|
# Investor profile id that needs to be set on investor
|
19
19
|
attr_accessor :investor_profile_id
|
20
20
|
|
21
|
+
# Step on checkout page.
|
22
|
+
attr_accessor :current_step
|
23
|
+
|
24
|
+
class EnumAttributeValidator
|
25
|
+
attr_reader :datatype
|
26
|
+
attr_reader :allowable_values
|
27
|
+
|
28
|
+
def initialize(datatype, allowable_values)
|
29
|
+
@allowable_values = allowable_values.map do |value|
|
30
|
+
case datatype.to_s
|
31
|
+
when /Integer/i
|
32
|
+
value.to_i
|
33
|
+
when /Float/i
|
34
|
+
value.to_f
|
35
|
+
else
|
36
|
+
value
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
def valid?(value)
|
42
|
+
!value || allowable_values.include?(value)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
21
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
47
|
def self.attribute_map
|
23
48
|
{
|
24
|
-
:'investor_profile_id' => :'investor_profile_id'
|
49
|
+
:'investor_profile_id' => :'investor_profile_id',
|
50
|
+
:'current_step' => :'current_step'
|
25
51
|
}
|
26
52
|
end
|
27
53
|
|
@@ -33,7 +59,8 @@ module DealMakerAPI
|
|
33
59
|
# Attribute type mapping.
|
34
60
|
def self.openapi_types
|
35
61
|
{
|
36
|
-
:'investor_profile_id' => :'Integer'
|
62
|
+
:'investor_profile_id' => :'Integer',
|
63
|
+
:'current_step' => :'String'
|
37
64
|
}
|
38
65
|
end
|
39
66
|
|
@@ -61,6 +88,12 @@ module DealMakerAPI
|
|
61
88
|
if attributes.key?(:'investor_profile_id')
|
62
89
|
self.investor_profile_id = attributes[:'investor_profile_id']
|
63
90
|
end
|
91
|
+
|
92
|
+
if attributes.key?(:'current_step')
|
93
|
+
self.current_step = attributes[:'current_step']
|
94
|
+
else
|
95
|
+
self.current_step = 'contact-information'
|
96
|
+
end
|
64
97
|
end
|
65
98
|
|
66
99
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -78,15 +111,28 @@ module DealMakerAPI
|
|
78
111
|
# @return true if the model is valid
|
79
112
|
def valid?
|
80
113
|
return false if @investor_profile_id.nil?
|
114
|
+
current_step_validator = EnumAttributeValidator.new('String', ["contact-information", "investor-confirmation"])
|
115
|
+
return false unless current_step_validator.valid?(@current_step)
|
81
116
|
true
|
82
117
|
end
|
83
118
|
|
119
|
+
# Custom attribute writer method checking allowed values (enum).
|
120
|
+
# @param [Object] current_step Object to be assigned
|
121
|
+
def current_step=(current_step)
|
122
|
+
validator = EnumAttributeValidator.new('String', ["contact-information", "investor-confirmation"])
|
123
|
+
unless validator.valid?(current_step)
|
124
|
+
fail ArgumentError, "invalid value for \"current_step\", must be one of #{validator.allowable_values}."
|
125
|
+
end
|
126
|
+
@current_step = current_step
|
127
|
+
end
|
128
|
+
|
84
129
|
# Checks equality by comparing each attribute.
|
85
130
|
# @param [Object] Object to be compared
|
86
131
|
def ==(o)
|
87
132
|
return true if self.equal?(o)
|
88
133
|
self.class == o.class &&
|
89
|
-
investor_profile_id == o.investor_profile_id
|
134
|
+
investor_profile_id == o.investor_profile_id &&
|
135
|
+
current_step == o.current_step
|
90
136
|
end
|
91
137
|
|
92
138
|
# @see the `==` method
|
@@ -98,7 +144,7 @@ module DealMakerAPI
|
|
98
144
|
# Calculates hash code according to all attributes.
|
99
145
|
# @return [Integer] Hash code
|
100
146
|
def hash
|
101
|
-
[investor_profile_id].hash
|
147
|
+
[investor_profile_id, current_step].hash
|
102
148
|
end
|
103
149
|
|
104
150
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.5.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -86,6 +86,12 @@ module DealMakerAPI
|
|
86
86
|
|
87
87
|
attr_accessor :investor_profile
|
88
88
|
|
89
|
+
# The investor profile id.
|
90
|
+
attr_accessor :investor_profile_id
|
91
|
+
|
92
|
+
# Current state on checkout page.
|
93
|
+
attr_accessor :checkout_state
|
94
|
+
|
89
95
|
class EnumAttributeValidator
|
90
96
|
attr_reader :datatype
|
91
97
|
attr_reader :allowable_values
|
@@ -135,7 +141,9 @@ module DealMakerAPI
|
|
135
141
|
:'warrant_expiry_date' => :'warrant_expiry_date',
|
136
142
|
:'warrant_certificate_number' => :'warrant_certificate_number',
|
137
143
|
:'ranking_score' => :'ranking_score',
|
138
|
-
:'investor_profile' => :'investor_profile'
|
144
|
+
:'investor_profile' => :'investor_profile',
|
145
|
+
:'investor_profile_id' => :'investor_profile_id',
|
146
|
+
:'checkout_state' => :'checkout_state'
|
139
147
|
}
|
140
148
|
end
|
141
149
|
|
@@ -171,7 +179,9 @@ module DealMakerAPI
|
|
171
179
|
:'warrant_expiry_date' => :'Date',
|
172
180
|
:'warrant_certificate_number' => :'Integer',
|
173
181
|
:'ranking_score' => :'Float',
|
174
|
-
:'investor_profile' => :'String'
|
182
|
+
:'investor_profile' => :'String',
|
183
|
+
:'investor_profile_id' => :'Integer',
|
184
|
+
:'checkout_state' => :'String'
|
175
185
|
}
|
176
186
|
end
|
177
187
|
|
@@ -295,6 +305,14 @@ module DealMakerAPI
|
|
295
305
|
if attributes.key?(:'investor_profile')
|
296
306
|
self.investor_profile = attributes[:'investor_profile']
|
297
307
|
end
|
308
|
+
|
309
|
+
if attributes.key?(:'investor_profile_id')
|
310
|
+
self.investor_profile_id = attributes[:'investor_profile_id']
|
311
|
+
end
|
312
|
+
|
313
|
+
if attributes.key?(:'checkout_state')
|
314
|
+
self.checkout_state = attributes[:'checkout_state']
|
315
|
+
end
|
298
316
|
end
|
299
317
|
|
300
318
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -387,7 +405,9 @@ module DealMakerAPI
|
|
387
405
|
warrant_expiry_date == o.warrant_expiry_date &&
|
388
406
|
warrant_certificate_number == o.warrant_certificate_number &&
|
389
407
|
ranking_score == o.ranking_score &&
|
390
|
-
investor_profile == o.investor_profile
|
408
|
+
investor_profile == o.investor_profile &&
|
409
|
+
investor_profile_id == o.investor_profile_id &&
|
410
|
+
checkout_state == o.checkout_state
|
391
411
|
end
|
392
412
|
|
393
413
|
# @see the `==` method
|
@@ -399,7 +419,7 @@ module DealMakerAPI
|
|
399
419
|
# Calculates hash code according to all attributes.
|
400
420
|
# @return [Integer] Hash code
|
401
421
|
def hash
|
402
|
-
[id, user, created_at, updated_at, name, allocation_unit, state, funding_state, funds_pending, beneficial_address, phone_number, investor_currency, investment_value, number_of_securities, allocated_amount, funds_value, access_link, subscription_agreement, attachments, background_check_searches, verification_status, warrant_expiry_date, warrant_certificate_number, ranking_score, investor_profile].hash
|
422
|
+
[id, user, created_at, updated_at, name, allocation_unit, state, funding_state, funds_pending, beneficial_address, phone_number, investor_currency, investment_value, number_of_securities, allocated_amount, funds_value, access_link, subscription_agreement, attachments, background_check_searches, verification_status, warrant_expiry_date, warrant_certificate_number, ranking_score, investor_profile, investor_profile_id, checkout_state].hash
|
403
423
|
end
|
404
424
|
|
405
425
|
# Builds the object from hash
|