fountain_partner_api_client 0.0.1 → 0.0.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.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/DefaultApi.md +1 -1
- data/docs/V1PartnersIdApplicantsApplicantIdDetailsPostRequest.md +3 -1
- data/docs/V1PartnersIdApplicantsApplicantIdPutRequest.md +3 -1
- data/docs/V1PartnersIdApplicantsApplicantIdPutRequestApplicantLabelsInner.md +3 -1
- data/docs/V1PartnersIdApplicantsApplicantIdStatusPostRequest.md +3 -1
- data/docs/V1PartnersIdGet200Response1DataAttributes.md +2 -2
- data/docs/V1PartnersIdGet200ResponseDataAttributes.md +2 -2
- data/docs/V1PartnersIdGetRequest.md +2 -0
- data/docs/V1PartnersIdGetRequestPartner.md +1 -1
- data/docs/V1PartnersIdPut200Response.md +18 -0
- data/docs/V1PartnersIdPut200ResponseData.md +22 -0
- data/docs/V1PartnersIdPut200ResponseDataAttributes.md +38 -0
- data/docs/V1PartnersIdPutRequest.md +20 -0
- data/docs/V1PartnersIdPutRequestPartner.md +36 -0
- data/fountain_partner_api_client-0.0.2.gem +0 -0
- data/fountain_partner_api_client-0.0.3.gem +0 -0
- data/fountain_partner_api_client.gemspec +1 -1
- data/lib/fountain_partner_api_client/configuration.rb +3 -3
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_details_post_request.rb +13 -4
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_put_request.rb +13 -4
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner.rb +13 -4
- data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_status_post_request.rb +13 -4
- data/lib/fountain_partner_api_client/models/v1_partners_id_get200_response1_data_attributes.rb +8 -4
- data/lib/fountain_partner_api_client/models/v1_partners_id_get200_response_data_attributes.rb +8 -4
- data/lib/fountain_partner_api_client/models/v1_partners_id_get_request.rb +10 -1
- data/lib/fountain_partner_api_client/models/v1_partners_id_get_request_partner.rb +4 -2
- data/lib/{openapi_client/models/v1_partners_id_get200_response1.rb → fountain_partner_api_client/models/v1_partners_id_put200_response.rb} +6 -6
- data/lib/{openapi_client/models/v1_partners_id_get200_response_data.rb → fountain_partner_api_client/models/v1_partners_id_put200_response_data.rb} +6 -6
- data/lib/{openapi_client/models/v1_partners_id_get200_response1_data_attributes.rb → fountain_partner_api_client/models/v1_partners_id_put200_response_data_attributes.rb} +6 -24
- data/lib/{openapi_client/models/v1_partners_id_get_request.rb → fountain_partner_api_client/models/v1_partners_id_put_request.rb} +16 -7
- data/lib/{openapi_client/models/v1_partners_id_get_request_partner.rb → fountain_partner_api_client/models/v1_partners_id_put_request_partner.rb} +6 -15
- data/lib/fountain_partner_api_client/version.rb +1 -1
- data/spec/api/default_api_spec.rb +5 -57
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_partner_details_spec.rb +4 -4
- data/spec/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_spec.rb +4 -4
- data/spec/models/v1_partners_id_applicants_applicant_id_details_post_request_spec.rb +10 -4
- data/spec/models/v1_partners_id_applicants_applicant_id_put200_response_spec.rb +4 -4
- data/spec/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner_spec.rb +10 -4
- data/spec/models/v1_partners_id_applicants_applicant_id_put_request_applicant_spec.rb +4 -4
- data/spec/models/v1_partners_id_applicants_applicant_id_put_request_spec.rb +10 -4
- data/spec/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_partner_status_spec.rb +4 -4
- data/spec/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_spec.rb +4 -4
- data/spec/models/v1_partners_id_applicants_applicant_id_status_post_request_spec.rb +10 -4
- data/spec/models/v1_partners_id_get200_response1_data_attributes_spec.rb +4 -4
- data/spec/models/v1_partners_id_get200_response1_data_spec.rb +4 -4
- data/spec/models/v1_partners_id_get200_response1_spec.rb +4 -4
- data/spec/models/v1_partners_id_get200_response_data_attributes_spec.rb +4 -4
- data/spec/models/v1_partners_id_get200_response_data_spec.rb +4 -4
- data/spec/models/v1_partners_id_get200_response_spec.rb +4 -4
- data/spec/models/v1_partners_id_get_request_partner_spec.rb +4 -4
- data/spec/models/v1_partners_id_get_request_spec.rb +10 -4
- data/spec/models/v1_partners_id_put200_response_data_attributes_spec.rb +94 -0
- data/spec/models/v1_partners_id_put200_response_data_spec.rb +46 -0
- data/spec/models/v1_partners_id_put200_response_spec.rb +34 -0
- data/spec/models/v1_partners_id_put_request_partner_spec.rb +88 -0
- data/spec/models/v1_partners_id_put_request_spec.rb +40 -0
- metadata +25 -28
- data/lib/openapi_client/api/default_api.rb +0 -379
- data/lib/openapi_client/api_client.rb +0 -392
- data/lib/openapi_client/api_error.rb +0 -57
- data/lib/openapi_client/configuration.rb +0 -279
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request.rb +0 -219
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant.rb +0 -219
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_partner_details.rb +0 -255
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put200_response.rb +0 -230
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put_request.rb +0 -219
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant.rb +0 -221
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner.rb +0 -219
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request.rb +0 -219
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant.rb +0 -219
- data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_partner_status.rb +0 -255
- data/lib/openapi_client/models/v1_partners_id_get200_response.rb +0 -219
- data/lib/openapi_client/models/v1_partners_id_get200_response1_data.rb +0 -237
- data/lib/openapi_client/models/v1_partners_id_get200_response_data_attributes.rb +0 -309
- data/lib/openapi_client/version.rb +0 -15
- data/lib/openapi_client.rb +0 -58
- data/openapi_client.gemspec +0 -38
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fountain_partner_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Fountain Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -79,6 +79,13 @@ files:
|
|
79
79
|
- docs/V1PartnersIdGet200ResponseDataAttributes.md
|
80
80
|
- docs/V1PartnersIdGetRequest.md
|
81
81
|
- docs/V1PartnersIdGetRequestPartner.md
|
82
|
+
- docs/V1PartnersIdPut200Response.md
|
83
|
+
- docs/V1PartnersIdPut200ResponseData.md
|
84
|
+
- docs/V1PartnersIdPut200ResponseDataAttributes.md
|
85
|
+
- docs/V1PartnersIdPutRequest.md
|
86
|
+
- docs/V1PartnersIdPutRequestPartner.md
|
87
|
+
- fountain_partner_api_client-0.0.2.gem
|
88
|
+
- fountain_partner_api_client-0.0.3.gem
|
82
89
|
- fountain_partner_api_client.gemspec
|
83
90
|
- git_push.sh
|
84
91
|
- lib/fountain_partner_api_client.rb
|
@@ -104,32 +111,12 @@ files:
|
|
104
111
|
- lib/fountain_partner_api_client/models/v1_partners_id_get200_response_data_attributes.rb
|
105
112
|
- lib/fountain_partner_api_client/models/v1_partners_id_get_request.rb
|
106
113
|
- lib/fountain_partner_api_client/models/v1_partners_id_get_request_partner.rb
|
114
|
+
- lib/fountain_partner_api_client/models/v1_partners_id_put200_response.rb
|
115
|
+
- lib/fountain_partner_api_client/models/v1_partners_id_put200_response_data.rb
|
116
|
+
- lib/fountain_partner_api_client/models/v1_partners_id_put200_response_data_attributes.rb
|
117
|
+
- lib/fountain_partner_api_client/models/v1_partners_id_put_request.rb
|
118
|
+
- lib/fountain_partner_api_client/models/v1_partners_id_put_request_partner.rb
|
107
119
|
- lib/fountain_partner_api_client/version.rb
|
108
|
-
- lib/openapi_client.rb
|
109
|
-
- lib/openapi_client/api/default_api.rb
|
110
|
-
- lib/openapi_client/api_client.rb
|
111
|
-
- lib/openapi_client/api_error.rb
|
112
|
-
- lib/openapi_client/configuration.rb
|
113
|
-
- lib/openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request.rb
|
114
|
-
- lib/openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant.rb
|
115
|
-
- lib/openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_partner_details.rb
|
116
|
-
- lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put200_response.rb
|
117
|
-
- lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put_request.rb
|
118
|
-
- lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant.rb
|
119
|
-
- lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner.rb
|
120
|
-
- lib/openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request.rb
|
121
|
-
- lib/openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant.rb
|
122
|
-
- lib/openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_partner_status.rb
|
123
|
-
- lib/openapi_client/models/v1_partners_id_get200_response.rb
|
124
|
-
- lib/openapi_client/models/v1_partners_id_get200_response1.rb
|
125
|
-
- lib/openapi_client/models/v1_partners_id_get200_response1_data.rb
|
126
|
-
- lib/openapi_client/models/v1_partners_id_get200_response1_data_attributes.rb
|
127
|
-
- lib/openapi_client/models/v1_partners_id_get200_response_data.rb
|
128
|
-
- lib/openapi_client/models/v1_partners_id_get200_response_data_attributes.rb
|
129
|
-
- lib/openapi_client/models/v1_partners_id_get_request.rb
|
130
|
-
- lib/openapi_client/models/v1_partners_id_get_request_partner.rb
|
131
|
-
- lib/openapi_client/version.rb
|
132
|
-
- openapi_client.gemspec
|
133
120
|
- spec/api/default_api_spec.rb
|
134
121
|
- spec/api_client_spec.rb
|
135
122
|
- spec/configuration_spec.rb
|
@@ -151,6 +138,11 @@ files:
|
|
151
138
|
- spec/models/v1_partners_id_get200_response_spec.rb
|
152
139
|
- spec/models/v1_partners_id_get_request_partner_spec.rb
|
153
140
|
- spec/models/v1_partners_id_get_request_spec.rb
|
141
|
+
- spec/models/v1_partners_id_put200_response_data_attributes_spec.rb
|
142
|
+
- spec/models/v1_partners_id_put200_response_data_spec.rb
|
143
|
+
- spec/models/v1_partners_id_put200_response_spec.rb
|
144
|
+
- spec/models/v1_partners_id_put_request_partner_spec.rb
|
145
|
+
- spec/models/v1_partners_id_put_request_spec.rb
|
154
146
|
- spec/spec_helper.rb
|
155
147
|
homepage: https://partners.fountain.com/
|
156
148
|
licenses:
|
@@ -179,6 +171,7 @@ test_files:
|
|
179
171
|
- spec/api/default_api_spec.rb
|
180
172
|
- spec/api_client_spec.rb
|
181
173
|
- spec/configuration_spec.rb
|
174
|
+
- spec/models/v1_partners_id_put200_response_spec.rb
|
182
175
|
- spec/models/v1_partners_id_get200_response_spec.rb
|
183
176
|
- spec/models/v1_partners_id_applicants_applicant_id_put_request_spec.rb
|
184
177
|
- spec/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_partner_details_spec.rb
|
@@ -191,10 +184,14 @@ test_files:
|
|
191
184
|
- spec/models/v1_partners_id_get200_response1_data_spec.rb
|
192
185
|
- spec/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner_spec.rb
|
193
186
|
- spec/models/v1_partners_id_applicants_applicant_id_put200_response_spec.rb
|
187
|
+
- spec/models/v1_partners_id_put_request_partner_spec.rb
|
194
188
|
- spec/models/v1_partners_id_get200_response1_spec.rb
|
195
189
|
- spec/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_partner_status_spec.rb
|
196
190
|
- spec/models/v1_partners_id_applicants_applicant_id_status_post_request_spec.rb
|
191
|
+
- spec/models/v1_partners_id_put_request_spec.rb
|
197
192
|
- spec/models/v1_partners_id_applicants_applicant_id_put_request_applicant_spec.rb
|
198
193
|
- spec/models/v1_partners_id_get_request_partner_spec.rb
|
194
|
+
- spec/models/v1_partners_id_put200_response_data_attributes_spec.rb
|
199
195
|
- spec/models/v1_partners_id_applicants_applicant_id_details_post_request_spec.rb
|
196
|
+
- spec/models/v1_partners_id_put200_response_data_spec.rb
|
200
197
|
- spec/spec_helper.rb
|
@@ -1,379 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Fountain Partner Docs
|
3
|
-
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
-
|
6
|
-
The version of the OpenAPI document: v1
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.2.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'cgi'
|
14
|
-
|
15
|
-
module OpenapiClient
|
16
|
-
class DefaultApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
# Create Applicant Details
|
23
|
-
# @param applicant_id [String]
|
24
|
-
# @param id [String]
|
25
|
-
# @param [Hash] opts the optional parameters
|
26
|
-
# @option opts [V1PartnersIdApplicantsApplicantIdDetailsPostRequest] :v1_partners_id_applicants_applicant_id_details_post_request
|
27
|
-
# @return [Object]
|
28
|
-
def v1_partners_id_applicants_applicant_id_details_post(applicant_id, id, opts = {})
|
29
|
-
data, _status_code, _headers = v1_partners_id_applicants_applicant_id_details_post_with_http_info(applicant_id, id, opts)
|
30
|
-
data
|
31
|
-
end
|
32
|
-
|
33
|
-
# Create Applicant Details
|
34
|
-
# @param applicant_id [String]
|
35
|
-
# @param id [String]
|
36
|
-
# @param [Hash] opts the optional parameters
|
37
|
-
# @option opts [V1PartnersIdApplicantsApplicantIdDetailsPostRequest] :v1_partners_id_applicants_applicant_id_details_post_request
|
38
|
-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
39
|
-
def v1_partners_id_applicants_applicant_id_details_post_with_http_info(applicant_id, id, opts = {})
|
40
|
-
if @api_client.config.debugging
|
41
|
-
@api_client.config.logger.debug 'Calling API: DefaultApi.v1_partners_id_applicants_applicant_id_details_post ...'
|
42
|
-
end
|
43
|
-
# verify the required parameter 'applicant_id' is set
|
44
|
-
if @api_client.config.client_side_validation && applicant_id.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'applicant_id' when calling DefaultApi.v1_partners_id_applicants_applicant_id_details_post"
|
46
|
-
end
|
47
|
-
# verify the required parameter 'id' is set
|
48
|
-
if @api_client.config.client_side_validation && id.nil?
|
49
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.v1_partners_id_applicants_applicant_id_details_post"
|
50
|
-
end
|
51
|
-
# resource path
|
52
|
-
local_var_path = '/v1/partners/{id}/applicants/{applicant_id}/details'.sub('{' + 'applicant_id' + '}', CGI.escape(applicant_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
53
|
-
|
54
|
-
# query parameters
|
55
|
-
query_params = opts[:query_params] || {}
|
56
|
-
|
57
|
-
# header parameters
|
58
|
-
header_params = opts[:header_params] || {}
|
59
|
-
# HTTP header 'Accept' (if needed)
|
60
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
|
-
# HTTP header 'Content-Type'
|
62
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
63
|
-
if !content_type.nil?
|
64
|
-
header_params['Content-Type'] = content_type
|
65
|
-
end
|
66
|
-
|
67
|
-
# form parameters
|
68
|
-
form_params = opts[:form_params] || {}
|
69
|
-
|
70
|
-
# http body (model)
|
71
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'v1_partners_id_applicants_applicant_id_details_post_request'])
|
72
|
-
|
73
|
-
# return_type
|
74
|
-
return_type = opts[:debug_return_type] || 'Object'
|
75
|
-
|
76
|
-
# auth_names
|
77
|
-
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
78
|
-
|
79
|
-
new_options = opts.merge(
|
80
|
-
:operation => :"DefaultApi.v1_partners_id_applicants_applicant_id_details_post",
|
81
|
-
:header_params => header_params,
|
82
|
-
:query_params => query_params,
|
83
|
-
:form_params => form_params,
|
84
|
-
:body => post_body,
|
85
|
-
:auth_names => auth_names,
|
86
|
-
:return_type => return_type
|
87
|
-
)
|
88
|
-
|
89
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
90
|
-
if @api_client.config.debugging
|
91
|
-
@api_client.config.logger.debug "API called: DefaultApi#v1_partners_id_applicants_applicant_id_details_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
92
|
-
end
|
93
|
-
return data, status_code, headers
|
94
|
-
end
|
95
|
-
|
96
|
-
# Update Applicant
|
97
|
-
# @param applicant_id [String]
|
98
|
-
# @param id [String]
|
99
|
-
# @param [Hash] opts the optional parameters
|
100
|
-
# @option opts [V1PartnersIdApplicantsApplicantIdPutRequest] :v1_partners_id_applicants_applicant_id_put_request
|
101
|
-
# @return [V1PartnersIdApplicantsApplicantIdPut200Response]
|
102
|
-
def v1_partners_id_applicants_applicant_id_put(applicant_id, id, opts = {})
|
103
|
-
data, _status_code, _headers = v1_partners_id_applicants_applicant_id_put_with_http_info(applicant_id, id, opts)
|
104
|
-
data
|
105
|
-
end
|
106
|
-
|
107
|
-
# Update Applicant
|
108
|
-
# @param applicant_id [String]
|
109
|
-
# @param id [String]
|
110
|
-
# @param [Hash] opts the optional parameters
|
111
|
-
# @option opts [V1PartnersIdApplicantsApplicantIdPutRequest] :v1_partners_id_applicants_applicant_id_put_request
|
112
|
-
# @return [Array<(V1PartnersIdApplicantsApplicantIdPut200Response, Integer, Hash)>] V1PartnersIdApplicantsApplicantIdPut200Response data, response status code and response headers
|
113
|
-
def v1_partners_id_applicants_applicant_id_put_with_http_info(applicant_id, id, opts = {})
|
114
|
-
if @api_client.config.debugging
|
115
|
-
@api_client.config.logger.debug 'Calling API: DefaultApi.v1_partners_id_applicants_applicant_id_put ...'
|
116
|
-
end
|
117
|
-
# verify the required parameter 'applicant_id' is set
|
118
|
-
if @api_client.config.client_side_validation && applicant_id.nil?
|
119
|
-
fail ArgumentError, "Missing the required parameter 'applicant_id' when calling DefaultApi.v1_partners_id_applicants_applicant_id_put"
|
120
|
-
end
|
121
|
-
# verify the required parameter 'id' is set
|
122
|
-
if @api_client.config.client_side_validation && id.nil?
|
123
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.v1_partners_id_applicants_applicant_id_put"
|
124
|
-
end
|
125
|
-
# resource path
|
126
|
-
local_var_path = '/v1/partners/{id}/applicants/{applicant_id}'.sub('{' + 'applicant_id' + '}', CGI.escape(applicant_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
127
|
-
|
128
|
-
# query parameters
|
129
|
-
query_params = opts[:query_params] || {}
|
130
|
-
|
131
|
-
# header parameters
|
132
|
-
header_params = opts[:header_params] || {}
|
133
|
-
# HTTP header 'Accept' (if needed)
|
134
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
135
|
-
# HTTP header 'Content-Type'
|
136
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
137
|
-
if !content_type.nil?
|
138
|
-
header_params['Content-Type'] = content_type
|
139
|
-
end
|
140
|
-
|
141
|
-
# form parameters
|
142
|
-
form_params = opts[:form_params] || {}
|
143
|
-
|
144
|
-
# http body (model)
|
145
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'v1_partners_id_applicants_applicant_id_put_request'])
|
146
|
-
|
147
|
-
# return_type
|
148
|
-
return_type = opts[:debug_return_type] || 'V1PartnersIdApplicantsApplicantIdPut200Response'
|
149
|
-
|
150
|
-
# auth_names
|
151
|
-
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
152
|
-
|
153
|
-
new_options = opts.merge(
|
154
|
-
:operation => :"DefaultApi.v1_partners_id_applicants_applicant_id_put",
|
155
|
-
:header_params => header_params,
|
156
|
-
:query_params => query_params,
|
157
|
-
:form_params => form_params,
|
158
|
-
:body => post_body,
|
159
|
-
:auth_names => auth_names,
|
160
|
-
:return_type => return_type
|
161
|
-
)
|
162
|
-
|
163
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
164
|
-
if @api_client.config.debugging
|
165
|
-
@api_client.config.logger.debug "API called: DefaultApi#v1_partners_id_applicants_applicant_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
166
|
-
end
|
167
|
-
return data, status_code, headers
|
168
|
-
end
|
169
|
-
|
170
|
-
# Create Applicant Status
|
171
|
-
# @param applicant_id [String]
|
172
|
-
# @param id [String]
|
173
|
-
# @param [Hash] opts the optional parameters
|
174
|
-
# @option opts [V1PartnersIdApplicantsApplicantIdStatusPostRequest] :v1_partners_id_applicants_applicant_id_status_post_request
|
175
|
-
# @return [Object]
|
176
|
-
def v1_partners_id_applicants_applicant_id_status_post(applicant_id, id, opts = {})
|
177
|
-
data, _status_code, _headers = v1_partners_id_applicants_applicant_id_status_post_with_http_info(applicant_id, id, opts)
|
178
|
-
data
|
179
|
-
end
|
180
|
-
|
181
|
-
# Create Applicant Status
|
182
|
-
# @param applicant_id [String]
|
183
|
-
# @param id [String]
|
184
|
-
# @param [Hash] opts the optional parameters
|
185
|
-
# @option opts [V1PartnersIdApplicantsApplicantIdStatusPostRequest] :v1_partners_id_applicants_applicant_id_status_post_request
|
186
|
-
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
187
|
-
def v1_partners_id_applicants_applicant_id_status_post_with_http_info(applicant_id, id, opts = {})
|
188
|
-
if @api_client.config.debugging
|
189
|
-
@api_client.config.logger.debug 'Calling API: DefaultApi.v1_partners_id_applicants_applicant_id_status_post ...'
|
190
|
-
end
|
191
|
-
# verify the required parameter 'applicant_id' is set
|
192
|
-
if @api_client.config.client_side_validation && applicant_id.nil?
|
193
|
-
fail ArgumentError, "Missing the required parameter 'applicant_id' when calling DefaultApi.v1_partners_id_applicants_applicant_id_status_post"
|
194
|
-
end
|
195
|
-
# verify the required parameter 'id' is set
|
196
|
-
if @api_client.config.client_side_validation && id.nil?
|
197
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.v1_partners_id_applicants_applicant_id_status_post"
|
198
|
-
end
|
199
|
-
# resource path
|
200
|
-
local_var_path = '/v1/partners/{id}/applicants/{applicant_id}/status'.sub('{' + 'applicant_id' + '}', CGI.escape(applicant_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
201
|
-
|
202
|
-
# query parameters
|
203
|
-
query_params = opts[:query_params] || {}
|
204
|
-
|
205
|
-
# header parameters
|
206
|
-
header_params = opts[:header_params] || {}
|
207
|
-
# HTTP header 'Accept' (if needed)
|
208
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
209
|
-
# HTTP header 'Content-Type'
|
210
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
211
|
-
if !content_type.nil?
|
212
|
-
header_params['Content-Type'] = content_type
|
213
|
-
end
|
214
|
-
|
215
|
-
# form parameters
|
216
|
-
form_params = opts[:form_params] || {}
|
217
|
-
|
218
|
-
# http body (model)
|
219
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'v1_partners_id_applicants_applicant_id_status_post_request'])
|
220
|
-
|
221
|
-
# return_type
|
222
|
-
return_type = opts[:debug_return_type] || 'Object'
|
223
|
-
|
224
|
-
# auth_names
|
225
|
-
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
226
|
-
|
227
|
-
new_options = opts.merge(
|
228
|
-
:operation => :"DefaultApi.v1_partners_id_applicants_applicant_id_status_post",
|
229
|
-
:header_params => header_params,
|
230
|
-
:query_params => query_params,
|
231
|
-
:form_params => form_params,
|
232
|
-
:body => post_body,
|
233
|
-
:auth_names => auth_names,
|
234
|
-
:return_type => return_type
|
235
|
-
)
|
236
|
-
|
237
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
238
|
-
if @api_client.config.debugging
|
239
|
-
@api_client.config.logger.debug "API called: DefaultApi#v1_partners_id_applicants_applicant_id_status_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
240
|
-
end
|
241
|
-
return data, status_code, headers
|
242
|
-
end
|
243
|
-
|
244
|
-
# Show Partner
|
245
|
-
# @param id [String]
|
246
|
-
# @param [Hash] opts the optional parameters
|
247
|
-
# @option opts [Object] :format
|
248
|
-
# @option opts [Object] :partner
|
249
|
-
# @return [V1PartnersIdGet200Response]
|
250
|
-
def v1_partners_id_get(id, opts = {})
|
251
|
-
data, _status_code, _headers = v1_partners_id_get_with_http_info(id, opts)
|
252
|
-
data
|
253
|
-
end
|
254
|
-
|
255
|
-
# Show Partner
|
256
|
-
# @param id [String]
|
257
|
-
# @param [Hash] opts the optional parameters
|
258
|
-
# @option opts [Object] :format
|
259
|
-
# @option opts [Object] :partner
|
260
|
-
# @return [Array<(V1PartnersIdGet200Response, Integer, Hash)>] V1PartnersIdGet200Response data, response status code and response headers
|
261
|
-
def v1_partners_id_get_with_http_info(id, opts = {})
|
262
|
-
if @api_client.config.debugging
|
263
|
-
@api_client.config.logger.debug 'Calling API: DefaultApi.v1_partners_id_get ...'
|
264
|
-
end
|
265
|
-
# verify the required parameter 'id' is set
|
266
|
-
if @api_client.config.client_side_validation && id.nil?
|
267
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.v1_partners_id_get"
|
268
|
-
end
|
269
|
-
# resource path
|
270
|
-
local_var_path = '/v1/partners/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
271
|
-
|
272
|
-
# query parameters
|
273
|
-
query_params = opts[:query_params] || {}
|
274
|
-
query_params[:'format'] = opts[:'format'] if !opts[:'format'].nil?
|
275
|
-
query_params[:'partner'] = opts[:'partner'] if !opts[:'partner'].nil?
|
276
|
-
|
277
|
-
# header parameters
|
278
|
-
header_params = opts[:header_params] || {}
|
279
|
-
# HTTP header 'Accept' (if needed)
|
280
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
281
|
-
|
282
|
-
# form parameters
|
283
|
-
form_params = opts[:form_params] || {}
|
284
|
-
|
285
|
-
# http body (model)
|
286
|
-
post_body = opts[:debug_body]
|
287
|
-
|
288
|
-
# return_type
|
289
|
-
return_type = opts[:debug_return_type] || 'V1PartnersIdGet200Response'
|
290
|
-
|
291
|
-
# auth_names
|
292
|
-
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
293
|
-
|
294
|
-
new_options = opts.merge(
|
295
|
-
:operation => :"DefaultApi.v1_partners_id_get",
|
296
|
-
:header_params => header_params,
|
297
|
-
:query_params => query_params,
|
298
|
-
:form_params => form_params,
|
299
|
-
:body => post_body,
|
300
|
-
:auth_names => auth_names,
|
301
|
-
:return_type => return_type
|
302
|
-
)
|
303
|
-
|
304
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
305
|
-
if @api_client.config.debugging
|
306
|
-
@api_client.config.logger.debug "API called: DefaultApi#v1_partners_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
307
|
-
end
|
308
|
-
return data, status_code, headers
|
309
|
-
end
|
310
|
-
|
311
|
-
# Update Partner
|
312
|
-
# @param id [String]
|
313
|
-
# @param [Hash] opts the optional parameters
|
314
|
-
# @option opts [V1PartnersIdGetRequest] :v1_partners_id_get_request
|
315
|
-
# @return [V1PartnersIdGet200Response1]
|
316
|
-
def v1_partners_id_put(id, opts = {})
|
317
|
-
data, _status_code, _headers = v1_partners_id_put_with_http_info(id, opts)
|
318
|
-
data
|
319
|
-
end
|
320
|
-
|
321
|
-
# Update Partner
|
322
|
-
# @param id [String]
|
323
|
-
# @param [Hash] opts the optional parameters
|
324
|
-
# @option opts [V1PartnersIdGetRequest] :v1_partners_id_get_request
|
325
|
-
# @return [Array<(V1PartnersIdGet200Response1, Integer, Hash)>] V1PartnersIdGet200Response1 data, response status code and response headers
|
326
|
-
def v1_partners_id_put_with_http_info(id, opts = {})
|
327
|
-
if @api_client.config.debugging
|
328
|
-
@api_client.config.logger.debug 'Calling API: DefaultApi.v1_partners_id_put ...'
|
329
|
-
end
|
330
|
-
# verify the required parameter 'id' is set
|
331
|
-
if @api_client.config.client_side_validation && id.nil?
|
332
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.v1_partners_id_put"
|
333
|
-
end
|
334
|
-
# resource path
|
335
|
-
local_var_path = '/v1/partners/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
336
|
-
|
337
|
-
# query parameters
|
338
|
-
query_params = opts[:query_params] || {}
|
339
|
-
|
340
|
-
# header parameters
|
341
|
-
header_params = opts[:header_params] || {}
|
342
|
-
# HTTP header 'Accept' (if needed)
|
343
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/html'])
|
344
|
-
# HTTP header 'Content-Type'
|
345
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
346
|
-
if !content_type.nil?
|
347
|
-
header_params['Content-Type'] = content_type
|
348
|
-
end
|
349
|
-
|
350
|
-
# form parameters
|
351
|
-
form_params = opts[:form_params] || {}
|
352
|
-
|
353
|
-
# http body (model)
|
354
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'v1_partners_id_get_request'])
|
355
|
-
|
356
|
-
# return_type
|
357
|
-
return_type = opts[:debug_return_type] || 'V1PartnersIdGet200Response1'
|
358
|
-
|
359
|
-
# auth_names
|
360
|
-
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
361
|
-
|
362
|
-
new_options = opts.merge(
|
363
|
-
:operation => :"DefaultApi.v1_partners_id_put",
|
364
|
-
:header_params => header_params,
|
365
|
-
:query_params => query_params,
|
366
|
-
:form_params => form_params,
|
367
|
-
:body => post_body,
|
368
|
-
:auth_names => auth_names,
|
369
|
-
:return_type => return_type
|
370
|
-
)
|
371
|
-
|
372
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
373
|
-
if @api_client.config.debugging
|
374
|
-
@api_client.config.logger.debug "API called: DefaultApi#v1_partners_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
375
|
-
end
|
376
|
-
return data, status_code, headers
|
377
|
-
end
|
378
|
-
end
|
379
|
-
end
|