DealMakerAPI 0.107.2 → 0.107.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/docs/DefaultApi.md +66 -0
- data/docs/V1EntitiesTtwReservationGetResponse.md +3 -1
- data/lib/DealMakerAPI/api/default_api.rb +61 -0
- data/lib/DealMakerAPI/models/v1_entities_ttw_reservation_get_response.rb +14 -4
- data/lib/DealMakerAPI/version.rb +1 -1
- data/spec/api/default_api_spec.rb +12 -0
- data/spec/models/v1_entities_ttw_reservation_get_response_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34b9925eaf34b265ce731c165726ddc4f8481f1b8ed7ad845ecdba9f093fd64f
|
4
|
+
data.tar.gz: 8a895cf0361f1c9845fcaf4b17a5c4f351f55ab8dc10dbcfc180cb8bbcac0017
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed56b378ec1ee8a408eedefd0d6e2bd26f56375aa50c25b8668a8f2b91d3fab691d63c6ed31810973a1b7349b0bd80d700f1486621ec654acc650cdaf748bd72
|
7
|
+
data.tar.gz: 9a0abdf6508e5b347e2302c1d12710975f38fb78fc70c14635202307fe0a6980673aecfcb8c89dd78f01f8098888c94bcbc6526372f56a65eb4c4d23d64f6e01
|
data/README.md
CHANGED
@@ -338,7 +338,7 @@ Given the high number of updates our platform performs on any investor, we’ve
|
|
338
338
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
339
339
|
|
340
340
|
- API version: 1.75.0
|
341
|
-
- Package version: 0.107.
|
341
|
+
- Package version: 0.107.4
|
342
342
|
- Generator version: 7.8.0-SNAPSHOT
|
343
343
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
344
344
|
|
@@ -355,16 +355,16 @@ gem build DealMakerAPI.gemspec
|
|
355
355
|
Then either install the gem locally:
|
356
356
|
|
357
357
|
```shell
|
358
|
-
gem install ./DealMakerAPI-0.107.
|
358
|
+
gem install ./DealMakerAPI-0.107.4.gem
|
359
359
|
```
|
360
360
|
|
361
|
-
(for development, run `gem install --dev ./DealMakerAPI-0.107.
|
361
|
+
(for development, run `gem install --dev ./DealMakerAPI-0.107.4.gem` to install the development dependencies)
|
362
362
|
|
363
363
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
364
364
|
|
365
365
|
Finally add this to the Gemfile:
|
366
366
|
|
367
|
-
gem 'DealMakerAPI', '~> 0.107.
|
367
|
+
gem 'DealMakerAPI', '~> 0.107.4'
|
368
368
|
|
369
369
|
### Install from Git
|
370
370
|
|
@@ -466,6 +466,7 @@ Class | Method | HTTP request | Description
|
|
466
466
|
*DealMakerAPI::DefaultApi* | [**post_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_submit**](docs/DefaultApi.md#post_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_submit) | **POST** /deals/{deal_id}/payment_onboarding/questionnaire/payout_account_details/submit | Submit a payout account details form
|
467
467
|
*DealMakerAPI::DefaultApi* | [**post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_response_submit**](docs/DefaultApi.md#post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_response_submit) | **POST** /deals/{deal_id}/payment_onboarding/questionnaire/qualification_questionnaire/response/submit | Submit a qualification questionnaire response
|
468
468
|
*DealMakerAPI::DefaultApi* | [**post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_submit**](docs/DefaultApi.md#post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_submit) | **POST** /deals/{deal_id}/payment_onboarding/questionnaire/qualification_questionnaire/submit | Submit a qualification questionnaire form
|
469
|
+
*DealMakerAPI::DefaultApi* | [**post_investors_investor_id_delete_investment_process**](docs/DefaultApi.md#post_investors_investor_id_delete_investment_process) | **POST** /investors/{investor_id}/delete_investment/process | Delete investment
|
469
470
|
*DealMakerAPI::DefaultApi* | [**post_investors_investor_id_transactions_request_refund_process**](docs/DefaultApi.md#post_investors_investor_id_transactions_request_refund_process) | **POST** /investors/{investor_id}/transactions/request_refund/process | Request refund for investor transactions
|
470
471
|
*DealMakerAPI::DefaultApi* | [**post_webhooks**](docs/DefaultApi.md#post_webhooks) | **POST** /webhooks | Creates a webhook subscription which is associated to the user
|
471
472
|
*DealMakerAPI::DefaultApi* | [**put_webhooks_id**](docs/DefaultApi.md#put_webhooks_id) | **PUT** /webhooks/{id} | Updates webhook subscription and webhooks subcription deals
|
data/docs/DefaultApi.md
CHANGED
@@ -21,6 +21,7 @@ All URIs are relative to *http://api.dealmaker.tech*
|
|
21
21
|
| [**post_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_submit**](DefaultApi.md#post_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_submit) | **POST** /deals/{deal_id}/payment_onboarding/questionnaire/payout_account_details/submit | Submit a payout account details form |
|
22
22
|
| [**post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_response_submit**](DefaultApi.md#post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_response_submit) | **POST** /deals/{deal_id}/payment_onboarding/questionnaire/qualification_questionnaire/response/submit | Submit a qualification questionnaire response |
|
23
23
|
| [**post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_submit**](DefaultApi.md#post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_submit) | **POST** /deals/{deal_id}/payment_onboarding/questionnaire/qualification_questionnaire/submit | Submit a qualification questionnaire form |
|
24
|
+
| [**post_investors_investor_id_delete_investment_process**](DefaultApi.md#post_investors_investor_id_delete_investment_process) | **POST** /investors/{investor_id}/delete_investment/process | Delete investment |
|
24
25
|
| [**post_investors_investor_id_transactions_request_refund_process**](DefaultApi.md#post_investors_investor_id_transactions_request_refund_process) | **POST** /investors/{investor_id}/transactions/request_refund/process | Request refund for investor transactions |
|
25
26
|
| [**post_webhooks**](DefaultApi.md#post_webhooks) | **POST** /webhooks | Creates a webhook subscription which is associated to the user |
|
26
27
|
| [**put_webhooks_id**](DefaultApi.md#put_webhooks_id) | **PUT** /webhooks/{id} | Updates webhook subscription and webhooks subcription deals |
|
@@ -1143,6 +1144,71 @@ No authorization required
|
|
1143
1144
|
- **Accept**: application/json
|
1144
1145
|
|
1145
1146
|
|
1147
|
+
## post_investors_investor_id_delete_investment_process
|
1148
|
+
|
1149
|
+
> post_investors_investor_id_delete_investment_process(investor_id)
|
1150
|
+
|
1151
|
+
Delete investment
|
1152
|
+
|
1153
|
+
Delete investment
|
1154
|
+
|
1155
|
+
### Examples
|
1156
|
+
|
1157
|
+
```ruby
|
1158
|
+
require 'time'
|
1159
|
+
require 'DealMakerAPI'
|
1160
|
+
# setup authorization
|
1161
|
+
DealMakerAPI.configure do |config|end
|
1162
|
+
|
1163
|
+
api_instance = DealMakerAPI::DefaultApi.new
|
1164
|
+
investor_id = 56 # Integer |
|
1165
|
+
|
1166
|
+
begin
|
1167
|
+
# Delete investment
|
1168
|
+
api_instance.post_investors_investor_id_delete_investment_process(investor_id)
|
1169
|
+
rescue DealMakerAPI::ApiError => e
|
1170
|
+
puts "Error when calling DefaultApi->post_investors_investor_id_delete_investment_process: #{e}"
|
1171
|
+
end
|
1172
|
+
```
|
1173
|
+
|
1174
|
+
#### Using the post_investors_investor_id_delete_investment_process_with_http_info variant
|
1175
|
+
|
1176
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
1177
|
+
|
1178
|
+
> <Array(nil, Integer, Hash)> post_investors_investor_id_delete_investment_process_with_http_info(investor_id)
|
1179
|
+
|
1180
|
+
```ruby
|
1181
|
+
begin
|
1182
|
+
# Delete investment
|
1183
|
+
data, status_code, headers = api_instance.post_investors_investor_id_delete_investment_process_with_http_info(investor_id)
|
1184
|
+
p status_code # => 2xx
|
1185
|
+
p headers # => { ... }
|
1186
|
+
p data # => nil
|
1187
|
+
rescue DealMakerAPI::ApiError => e
|
1188
|
+
puts "Error when calling DefaultApi->post_investors_investor_id_delete_investment_process_with_http_info: #{e}"
|
1189
|
+
end
|
1190
|
+
```
|
1191
|
+
|
1192
|
+
### Parameters
|
1193
|
+
|
1194
|
+
| Name | Type | Description | Notes |
|
1195
|
+
| ---- | ---- | ----------- | ----- |
|
1196
|
+
| **investor_id** | **Integer** | | |
|
1197
|
+
|
1198
|
+
### Return type
|
1199
|
+
|
1200
|
+
nil (empty response body)
|
1201
|
+
|
1202
|
+
### Authorization
|
1203
|
+
|
1204
|
+
No authorization required
|
1205
|
+
|
1206
|
+
### HTTP request headers
|
1207
|
+
|
1208
|
+
- **Content-Type**: Not defined
|
1209
|
+
- **Accept**: Not defined
|
1210
|
+
|
1211
|
+
|
1146
1212
|
## post_investors_investor_id_transactions_request_refund_process
|
1147
1213
|
|
1148
1214
|
> post_investors_investor_id_transactions_request_refund_process(investor_id)
|
@@ -6,6 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **token** | **String** | The token for the user. | [optional] |
|
8
8
|
| **reservation_id** | **Integer** | The ID of the reservation. | [optional] |
|
9
|
+
| **complete** | **Boolean** | Whether the reservation is complete. | [optional] |
|
9
10
|
|
10
11
|
## Example
|
11
12
|
|
@@ -14,7 +15,8 @@ require 'DealMakerAPI'
|
|
14
15
|
|
15
16
|
instance = DealMakerAPI::V1EntitiesTtwReservationGetResponse.new(
|
16
17
|
token: null,
|
17
|
-
reservation_id: null
|
18
|
+
reservation_id: null,
|
19
|
+
complete: null
|
18
20
|
)
|
19
21
|
```
|
20
22
|
|
@@ -1084,6 +1084,67 @@ module DealMakerAPI
|
|
1084
1084
|
return data, status_code, headers
|
1085
1085
|
end
|
1086
1086
|
|
1087
|
+
# Delete investment
|
1088
|
+
# Delete investment
|
1089
|
+
# @param investor_id [Integer]
|
1090
|
+
# @param [Hash] opts the optional parameters
|
1091
|
+
# @return [nil]
|
1092
|
+
def post_investors_investor_id_delete_investment_process(investor_id, opts = {})
|
1093
|
+
post_investors_investor_id_delete_investment_process_with_http_info(investor_id, opts)
|
1094
|
+
nil
|
1095
|
+
end
|
1096
|
+
|
1097
|
+
# Delete investment
|
1098
|
+
# Delete investment
|
1099
|
+
# @param investor_id [Integer]
|
1100
|
+
# @param [Hash] opts the optional parameters
|
1101
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1102
|
+
def post_investors_investor_id_delete_investment_process_with_http_info(investor_id, opts = {})
|
1103
|
+
if @api_client.config.debugging
|
1104
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.post_investors_investor_id_delete_investment_process ...'
|
1105
|
+
end
|
1106
|
+
# verify the required parameter 'investor_id' is set
|
1107
|
+
if @api_client.config.client_side_validation && investor_id.nil?
|
1108
|
+
fail ArgumentError, "Missing the required parameter 'investor_id' when calling DefaultApi.post_investors_investor_id_delete_investment_process"
|
1109
|
+
end
|
1110
|
+
# resource path
|
1111
|
+
local_var_path = '/investors/{investor_id}/delete_investment/process'.sub('{' + 'investor_id' + '}', CGI.escape(investor_id.to_s))
|
1112
|
+
|
1113
|
+
# query parameters
|
1114
|
+
query_params = opts[:query_params] || {}
|
1115
|
+
|
1116
|
+
# header parameters
|
1117
|
+
header_params = opts[:header_params] || {}
|
1118
|
+
|
1119
|
+
# form parameters
|
1120
|
+
form_params = opts[:form_params] || {}
|
1121
|
+
|
1122
|
+
# http body (model)
|
1123
|
+
post_body = opts[:debug_body]
|
1124
|
+
|
1125
|
+
# return_type
|
1126
|
+
return_type = opts[:debug_return_type]
|
1127
|
+
|
1128
|
+
# auth_names
|
1129
|
+
auth_names = opts[:debug_auth_names] || []
|
1130
|
+
|
1131
|
+
new_options = opts.merge(
|
1132
|
+
:operation => :"DefaultApi.post_investors_investor_id_delete_investment_process",
|
1133
|
+
:header_params => header_params,
|
1134
|
+
:query_params => query_params,
|
1135
|
+
:form_params => form_params,
|
1136
|
+
:body => post_body,
|
1137
|
+
:auth_names => auth_names,
|
1138
|
+
:return_type => return_type
|
1139
|
+
)
|
1140
|
+
|
1141
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1142
|
+
if @api_client.config.debugging
|
1143
|
+
@api_client.config.logger.debug "API called: DefaultApi#post_investors_investor_id_delete_investment_process\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1144
|
+
end
|
1145
|
+
return data, status_code, headers
|
1146
|
+
end
|
1147
|
+
|
1087
1148
|
# Request refund for investor transactions
|
1088
1149
|
# Request refund for investor transactions
|
1089
1150
|
# @param investor_id [Integer]
|
@@ -22,11 +22,15 @@ module DealMakerAPI
|
|
22
22
|
# The ID of the reservation.
|
23
23
|
attr_accessor :reservation_id
|
24
24
|
|
25
|
+
# Whether the reservation is complete.
|
26
|
+
attr_accessor :complete
|
27
|
+
|
25
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
29
|
def self.attribute_map
|
27
30
|
{
|
28
31
|
:'token' => :'token',
|
29
|
-
:'reservation_id' => :'reservation_id'
|
32
|
+
:'reservation_id' => :'reservation_id',
|
33
|
+
:'complete' => :'complete'
|
30
34
|
}
|
31
35
|
end
|
32
36
|
|
@@ -39,7 +43,8 @@ module DealMakerAPI
|
|
39
43
|
def self.openapi_types
|
40
44
|
{
|
41
45
|
:'token' => :'String',
|
42
|
-
:'reservation_id' => :'Integer'
|
46
|
+
:'reservation_id' => :'Integer',
|
47
|
+
:'complete' => :'Boolean'
|
43
48
|
}
|
44
49
|
end
|
45
50
|
|
@@ -71,6 +76,10 @@ module DealMakerAPI
|
|
71
76
|
if attributes.key?(:'reservation_id')
|
72
77
|
self.reservation_id = attributes[:'reservation_id']
|
73
78
|
end
|
79
|
+
|
80
|
+
if attributes.key?(:'complete')
|
81
|
+
self.complete = attributes[:'complete']
|
82
|
+
end
|
74
83
|
end
|
75
84
|
|
76
85
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -94,7 +103,8 @@ module DealMakerAPI
|
|
94
103
|
return true if self.equal?(o)
|
95
104
|
self.class == o.class &&
|
96
105
|
token == o.token &&
|
97
|
-
reservation_id == o.reservation_id
|
106
|
+
reservation_id == o.reservation_id &&
|
107
|
+
complete == o.complete
|
98
108
|
end
|
99
109
|
|
100
110
|
# @see the `==` method
|
@@ -106,7 +116,7 @@ module DealMakerAPI
|
|
106
116
|
# Calculates hash code according to all attributes.
|
107
117
|
# @return [Integer] Hash code
|
108
118
|
def hash
|
109
|
-
[token, reservation_id].hash
|
119
|
+
[token, reservation_id, complete].hash
|
110
120
|
end
|
111
121
|
|
112
122
|
# Builds the object from hash
|
data/lib/DealMakerAPI/version.rb
CHANGED
@@ -237,6 +237,18 @@ describe 'DefaultApi' do
|
|
237
237
|
end
|
238
238
|
end
|
239
239
|
|
240
|
+
# unit tests for post_investors_investor_id_delete_investment_process
|
241
|
+
# Delete investment
|
242
|
+
# Delete investment
|
243
|
+
# @param investor_id
|
244
|
+
# @param [Hash] opts the optional parameters
|
245
|
+
# @return [nil]
|
246
|
+
describe 'post_investors_investor_id_delete_investment_process test' do
|
247
|
+
it 'should work' do
|
248
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
240
252
|
# unit tests for post_investors_investor_id_transactions_request_refund_process
|
241
253
|
# Request refund for investor transactions
|
242
254
|
# Request refund for investor transactions
|
@@ -39,4 +39,10 @@ describe DealMakerAPI::V1EntitiesTtwReservationGetResponse do
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
+
describe 'test attribute "complete"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
42
48
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: DealMakerAPI
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.107.
|
4
|
+
version: 0.107.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DealMaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|