fountain_partner_api_client 0.0.1 → 0.0.3

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.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -23
  3. data/docs/DefaultApi.md +1 -229
  4. data/docs/V1PartnersIdGet200Response1DataAttributes.md +2 -2
  5. data/docs/V1PartnersIdGet200ResponseDataAttributes.md +2 -2
  6. data/docs/V1PartnersIdGetRequest.md +2 -0
  7. data/docs/V1PartnersIdGetRequestPartner.md +1 -1
  8. data/docs/V1PartnersIdPut200Response.md +18 -0
  9. data/docs/V1PartnersIdPut200ResponseData.md +22 -0
  10. data/docs/V1PartnersIdPut200ResponseDataAttributes.md +38 -0
  11. data/docs/V1PartnersIdPutRequest.md +20 -0
  12. data/docs/V1PartnersIdPutRequestPartner.md +36 -0
  13. data/fountain_partner_api_client-0.0.2.gem +0 -0
  14. data/fountain_partner_api_client.gemspec +1 -1
  15. data/lib/fountain_partner_api_client/api/default_api.rb +0 -222
  16. data/lib/fountain_partner_api_client/configuration.rb +3 -3
  17. data/lib/fountain_partner_api_client/models/v1_partners_id_get200_response1_data_attributes.rb +8 -4
  18. data/lib/fountain_partner_api_client/models/v1_partners_id_get200_response_data_attributes.rb +8 -4
  19. data/lib/fountain_partner_api_client/models/v1_partners_id_get_request.rb +10 -1
  20. data/lib/fountain_partner_api_client/models/v1_partners_id_get_request_partner.rb +4 -2
  21. data/lib/{openapi_client/models/v1_partners_id_get200_response1.rb → fountain_partner_api_client/models/v1_partners_id_put200_response.rb} +6 -6
  22. 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
  23. 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
  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
  25. 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
  26. data/lib/fountain_partner_api_client/version.rb +1 -1
  27. data/lib/fountain_partner_api_client.rb +0 -10
  28. data/spec/api/default_api_spec.rb +5 -57
  29. data/spec/configuration_spec.rb +3 -3
  30. data/spec/models/v1_partners_id_get200_response1_data_attributes_spec.rb +4 -4
  31. data/spec/models/v1_partners_id_get200_response1_data_spec.rb +4 -4
  32. data/spec/models/v1_partners_id_get200_response1_spec.rb +4 -4
  33. data/spec/models/v1_partners_id_get200_response_data_attributes_spec.rb +4 -4
  34. data/spec/models/v1_partners_id_get200_response_data_spec.rb +4 -4
  35. data/spec/models/v1_partners_id_get200_response_spec.rb +4 -4
  36. data/spec/models/v1_partners_id_get_request_partner_spec.rb +4 -4
  37. data/spec/models/v1_partners_id_get_request_spec.rb +10 -4
  38. data/spec/models/v1_partners_id_put200_response_data_attributes_spec.rb +94 -0
  39. data/spec/models/v1_partners_id_put200_response_data_spec.rb +46 -0
  40. data/spec/models/{v1_partners_id_applicants_applicant_id_put_request_spec.rb → v1_partners_id_put200_response_spec.rb} +7 -7
  41. data/spec/models/v1_partners_id_put_request_partner_spec.rb +88 -0
  42. data/spec/models/{v1_partners_id_applicants_applicant_id_put200_response_spec.rb → v1_partners_id_put_request_spec.rb} +8 -8
  43. metadata +24 -68
  44. data/docs/V1PartnersIdApplicantsApplicantIdDetailsPostRequest.md +0 -18
  45. data/docs/V1PartnersIdApplicantsApplicantIdDetailsPostRequestApplicant.md +0 -18
  46. data/docs/V1PartnersIdApplicantsApplicantIdDetailsPostRequestApplicantPartnerDetails.md +0 -26
  47. data/docs/V1PartnersIdApplicantsApplicantIdPut200Response.md +0 -20
  48. data/docs/V1PartnersIdApplicantsApplicantIdPutRequest.md +0 -18
  49. data/docs/V1PartnersIdApplicantsApplicantIdPutRequestApplicant.md +0 -18
  50. data/docs/V1PartnersIdApplicantsApplicantIdPutRequestApplicantLabelsInner.md +0 -18
  51. data/docs/V1PartnersIdApplicantsApplicantIdStatusPostRequest.md +0 -18
  52. data/docs/V1PartnersIdApplicantsApplicantIdStatusPostRequestApplicant.md +0 -18
  53. data/docs/V1PartnersIdApplicantsApplicantIdStatusPostRequestApplicantPartnerStatus.md +0 -26
  54. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_details_post_request.rb +0 -219
  55. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant.rb +0 -219
  56. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_partner_details.rb +0 -255
  57. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_put200_response.rb +0 -230
  58. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_put_request.rb +0 -219
  59. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant.rb +0 -221
  60. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner.rb +0 -219
  61. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_status_post_request.rb +0 -219
  62. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant.rb +0 -219
  63. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_partner_status.rb +0 -255
  64. data/lib/openapi_client/api/default_api.rb +0 -379
  65. data/lib/openapi_client/api_client.rb +0 -392
  66. data/lib/openapi_client/api_error.rb +0 -57
  67. data/lib/openapi_client/configuration.rb +0 -279
  68. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request.rb +0 -219
  69. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant.rb +0 -219
  70. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_partner_details.rb +0 -255
  71. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put200_response.rb +0 -230
  72. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put_request.rb +0 -219
  73. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant.rb +0 -221
  74. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner.rb +0 -219
  75. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request.rb +0 -219
  76. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant.rb +0 -219
  77. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_partner_status.rb +0 -255
  78. data/lib/openapi_client/models/v1_partners_id_get200_response.rb +0 -219
  79. data/lib/openapi_client/models/v1_partners_id_get200_response1_data.rb +0 -237
  80. data/lib/openapi_client/models/v1_partners_id_get200_response_data_attributes.rb +0 -309
  81. data/lib/openapi_client/version.rb +0 -15
  82. data/lib/openapi_client.rb +0 -58
  83. data/openapi_client.gemspec +0 -38
  84. data/spec/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_partner_details_spec.rb +0 -58
  85. data/spec/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_spec.rb +0 -34
  86. data/spec/models/v1_partners_id_applicants_applicant_id_details_post_request_spec.rb +0 -34
  87. data/spec/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner_spec.rb +0 -34
  88. data/spec/models/v1_partners_id_applicants_applicant_id_put_request_applicant_spec.rb +0 -34
  89. data/spec/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_partner_status_spec.rb +0 -58
  90. data/spec/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_spec.rb +0 -34
  91. data/spec/models/v1_partners_id_applicants_applicant_id_status_post_request_spec.rb +0 -34
@@ -19,228 +19,6 @@ module FountainPartnerApiClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
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
22
  # Show Partner
245
23
  # @param id [String]
246
24
  # @param [Hash] opts the optional parameters
@@ -139,8 +139,8 @@ module FountainPartnerApiClient
139
139
  attr_accessor :force_ending_format
140
140
 
141
141
  def initialize
142
- @scheme = 'https'
143
- @host = 'partners-sandbox.fountain.com'
142
+ @scheme = 'http'
143
+ @host = 'localhost:3009'
144
144
  @base_path = ''
145
145
  @server_index = 0
146
146
  @server_operation_index = {}
@@ -230,7 +230,7 @@ module FountainPartnerApiClient
230
230
  def server_settings
231
231
  [
232
232
  {
233
- url: "https://partners-sandbox.fountain.com",
233
+ url: "localhost:3009",
234
234
  description: "Our production partners url.",
235
235
  }
236
236
  ]
@@ -72,9 +72,9 @@ module FountainPartnerApiClient
72
72
  :'applicant_redirect_url' => :'String',
73
73
  :'applicant_webhook' => :'String',
74
74
  :'install_webhook' => :'String',
75
- :'label_keys' => :'Array',
75
+ :'label_keys' => :'Array<String>',
76
76
  :'name' => :'String',
77
- :'requested_attributes' => :'Array',
77
+ :'requested_attributes' => :'Array<Object>',
78
78
  :'settings_auth_header' => :'String',
79
79
  :'settings_auth_method' => :'String',
80
80
  :'settings_password' => :'String',
@@ -122,7 +122,9 @@ module FountainPartnerApiClient
122
122
  end
123
123
 
124
124
  if attributes.key?(:'label_keys')
125
- self.label_keys = attributes[:'label_keys']
125
+ if (value = attributes[:'label_keys']).is_a?(Array)
126
+ self.label_keys = value
127
+ end
126
128
  end
127
129
 
128
130
  if attributes.key?(:'name')
@@ -130,7 +132,9 @@ module FountainPartnerApiClient
130
132
  end
131
133
 
132
134
  if attributes.key?(:'requested_attributes')
133
- self.requested_attributes = attributes[:'requested_attributes']
135
+ if (value = attributes[:'requested_attributes']).is_a?(Array)
136
+ self.requested_attributes = value
137
+ end
134
138
  end
135
139
 
136
140
  if attributes.key?(:'settings_auth_header')
@@ -66,9 +66,9 @@ module FountainPartnerApiClient
66
66
  :'applicant_redirect_url' => :'String',
67
67
  :'applicant_webhook' => :'String',
68
68
  :'install_webhook' => :'String',
69
- :'label_keys' => :'Array',
69
+ :'label_keys' => :'Array<Object>',
70
70
  :'name' => :'String',
71
- :'requested_attributes' => :'Array',
71
+ :'requested_attributes' => :'Array<Object>',
72
72
  :'settings_auth_header' => :'String',
73
73
  :'settings_auth_method' => :'String',
74
74
  :'settings_webhook' => :'String',
@@ -114,7 +114,9 @@ module FountainPartnerApiClient
114
114
  end
115
115
 
116
116
  if attributes.key?(:'label_keys')
117
- self.label_keys = attributes[:'label_keys']
117
+ if (value = attributes[:'label_keys']).is_a?(Array)
118
+ self.label_keys = value
119
+ end
118
120
  end
119
121
 
120
122
  if attributes.key?(:'name')
@@ -122,7 +124,9 @@ module FountainPartnerApiClient
122
124
  end
123
125
 
124
126
  if attributes.key?(:'requested_attributes')
125
- self.requested_attributes = attributes[:'requested_attributes']
127
+ if (value = attributes[:'requested_attributes']).is_a?(Array)
128
+ self.requested_attributes = value
129
+ end
126
130
  end
127
131
 
128
132
  if attributes.key?(:'settings_auth_header')
@@ -15,11 +15,14 @@ require 'time'
15
15
 
16
16
  module FountainPartnerApiClient
17
17
  class V1PartnersIdGetRequest
18
+ attr_accessor :format
19
+
18
20
  attr_accessor :partner
19
21
 
20
22
  # Attribute mapping from ruby-style variable name to JSON key.
21
23
  def self.attribute_map
22
24
  {
25
+ :'format' => :'format',
23
26
  :'partner' => :'partner'
24
27
  }
25
28
  end
@@ -32,6 +35,7 @@ module FountainPartnerApiClient
32
35
  # Attribute type mapping.
33
36
  def self.openapi_types
34
37
  {
38
+ :'format' => :'Object',
35
39
  :'partner' => :'V1PartnersIdGetRequestPartner'
36
40
  }
37
41
  end
@@ -57,6 +61,10 @@ module FountainPartnerApiClient
57
61
  h[k.to_sym] = v
58
62
  }
59
63
 
64
+ if attributes.key?(:'format')
65
+ self.format = attributes[:'format']
66
+ end
67
+
60
68
  if attributes.key?(:'partner')
61
69
  self.partner = attributes[:'partner']
62
70
  end
@@ -80,6 +88,7 @@ module FountainPartnerApiClient
80
88
  def ==(o)
81
89
  return true if self.equal?(o)
82
90
  self.class == o.class &&
91
+ format == o.format &&
83
92
  partner == o.partner
84
93
  end
85
94
 
@@ -92,7 +101,7 @@ module FountainPartnerApiClient
92
101
  # Calculates hash code according to all attributes.
93
102
  # @return [Integer] Hash code
94
103
  def hash
95
- [partner].hash
104
+ [format, partner].hash
96
105
  end
97
106
 
98
107
  # Builds the object from hash
@@ -65,7 +65,7 @@ module FountainPartnerApiClient
65
65
  :'applicant_redirect_url' => :'String',
66
66
  :'applicant_webhook' => :'String',
67
67
  :'install_webhook' => :'String',
68
- :'label_keys' => :'Array',
68
+ :'label_keys' => :'Array<String>',
69
69
  :'partner_hmac_key' => :'String',
70
70
  :'settings_auth_header' => :'String',
71
71
  :'settings_auth_method' => :'String',
@@ -110,7 +110,9 @@ module FountainPartnerApiClient
110
110
  end
111
111
 
112
112
  if attributes.key?(:'label_keys')
113
- self.label_keys = attributes[:'label_keys']
113
+ if (value = attributes[:'label_keys']).is_a?(Array)
114
+ self.label_keys = value
115
+ end
114
116
  end
115
117
 
116
118
  if attributes.key?(:'partner_hmac_key')
@@ -13,8 +13,8 @@ OpenAPI Generator version: 6.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
17
- class V1PartnersIdGet200Response1
16
+ module FountainPartnerApiClient
17
+ class V1PartnersIdPut200Response
18
18
  attr_accessor :data
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -32,7 +32,7 @@ module OpenapiClient
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'data' => :'V1PartnersIdGet200Response1Data'
35
+ :'data' => :'V1PartnersIdPut200ResponseData'
36
36
  }
37
37
  end
38
38
 
@@ -46,13 +46,13 @@ module OpenapiClient
46
46
  # @param [Hash] attributes Model attributes in the form of hash
47
47
  def initialize(attributes = {})
48
48
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::V1PartnersIdGet200Response1` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FountainPartnerApiClient::V1PartnersIdPut200Response` initialize method"
50
50
  end
51
51
 
52
52
  # check to see if the attribute exists and convert string to symbol for hash key
53
53
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
54
  if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::V1PartnersIdGet200Response1`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FountainPartnerApiClient::V1PartnersIdPut200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
56
  end
57
57
  h[k.to_sym] = v
58
58
  }
@@ -163,7 +163,7 @@ module OpenapiClient
163
163
  end
164
164
  else # model
165
165
  # models (e.g. Pet) or oneOf
166
- klass = OpenapiClient.const_get(type)
166
+ klass = FountainPartnerApiClient.const_get(type)
167
167
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
168
168
  end
169
169
  end
@@ -13,8 +13,8 @@ OpenAPI Generator version: 6.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
17
- class V1PartnersIdGet200ResponseData
16
+ module FountainPartnerApiClient
17
+ class V1PartnersIdPut200ResponseData
18
18
  attr_accessor :attributes
19
19
 
20
20
  attr_accessor :id
@@ -38,7 +38,7 @@ module OpenapiClient
38
38
  # Attribute type mapping.
39
39
  def self.openapi_types
40
40
  {
41
- :'attributes' => :'V1PartnersIdGet200ResponseDataAttributes',
41
+ :'attributes' => :'V1PartnersIdPut200ResponseDataAttributes',
42
42
  :'id' => :'String',
43
43
  :'type' => :'String'
44
44
  }
@@ -54,13 +54,13 @@ module OpenapiClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::V1PartnersIdGet200ResponseData` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FountainPartnerApiClient::V1PartnersIdPut200ResponseData` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::V1PartnersIdGet200ResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FountainPartnerApiClient::V1PartnersIdPut200ResponseData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -181,7 +181,7 @@ module OpenapiClient
181
181
  end
182
182
  else # model
183
183
  # models (e.g. Pet) or oneOf
184
- klass = OpenapiClient.const_get(type)
184
+ klass = FountainPartnerApiClient.const_get(type)
185
185
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
186
186
  end
187
187
  end
@@ -13,8 +13,8 @@ OpenAPI Generator version: 6.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
17
- class V1PartnersIdGet200Response1DataAttributes
16
+ module FountainPartnerApiClient
17
+ class V1PartnersIdPut200ResponseDataAttributes
18
18
  attr_accessor :api_key
19
19
 
20
20
  attr_accessor :applicant_redirect_url
@@ -23,12 +23,8 @@ module OpenapiClient
23
23
 
24
24
  attr_accessor :install_webhook
25
25
 
26
- attr_accessor :label_keys
27
-
28
26
  attr_accessor :name
29
27
 
30
- attr_accessor :requested_attributes
31
-
32
28
  attr_accessor :settings_auth_header
33
29
 
34
30
  attr_accessor :settings_auth_method
@@ -48,9 +44,7 @@ module OpenapiClient
48
44
  :'applicant_redirect_url' => :'applicant_redirect_url',
49
45
  :'applicant_webhook' => :'applicant_webhook',
50
46
  :'install_webhook' => :'install_webhook',
51
- :'label_keys' => :'label_keys',
52
47
  :'name' => :'name',
53
- :'requested_attributes' => :'requested_attributes',
54
48
  :'settings_auth_header' => :'settings_auth_header',
55
49
  :'settings_auth_method' => :'settings_auth_method',
56
50
  :'settings_password' => :'settings_password',
@@ -72,9 +66,7 @@ module OpenapiClient
72
66
  :'applicant_redirect_url' => :'String',
73
67
  :'applicant_webhook' => :'String',
74
68
  :'install_webhook' => :'String',
75
- :'label_keys' => :'Array',
76
69
  :'name' => :'String',
77
- :'requested_attributes' => :'Array',
78
70
  :'settings_auth_header' => :'String',
79
71
  :'settings_auth_method' => :'String',
80
72
  :'settings_password' => :'String',
@@ -94,13 +86,13 @@ module OpenapiClient
94
86
  # @param [Hash] attributes Model attributes in the form of hash
95
87
  def initialize(attributes = {})
96
88
  if (!attributes.is_a?(Hash))
97
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::V1PartnersIdGet200Response1DataAttributes` initialize method"
89
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FountainPartnerApiClient::V1PartnersIdPut200ResponseDataAttributes` initialize method"
98
90
  end
99
91
 
100
92
  # check to see if the attribute exists and convert string to symbol for hash key
101
93
  attributes = attributes.each_with_object({}) { |(k, v), h|
102
94
  if (!self.class.attribute_map.key?(k.to_sym))
103
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::V1PartnersIdGet200Response1DataAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
95
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FountainPartnerApiClient::V1PartnersIdPut200ResponseDataAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
104
96
  end
105
97
  h[k.to_sym] = v
106
98
  }
@@ -121,18 +113,10 @@ module OpenapiClient
121
113
  self.install_webhook = attributes[:'install_webhook']
122
114
  end
123
115
 
124
- if attributes.key?(:'label_keys')
125
- self.label_keys = attributes[:'label_keys']
126
- end
127
-
128
116
  if attributes.key?(:'name')
129
117
  self.name = attributes[:'name']
130
118
  end
131
119
 
132
- if attributes.key?(:'requested_attributes')
133
- self.requested_attributes = attributes[:'requested_attributes']
134
- end
135
-
136
120
  if attributes.key?(:'settings_auth_header')
137
121
  self.settings_auth_header = attributes[:'settings_auth_header']
138
122
  end
@@ -180,9 +164,7 @@ module OpenapiClient
180
164
  applicant_redirect_url == o.applicant_redirect_url &&
181
165
  applicant_webhook == o.applicant_webhook &&
182
166
  install_webhook == o.install_webhook &&
183
- label_keys == o.label_keys &&
184
167
  name == o.name &&
185
- requested_attributes == o.requested_attributes &&
186
168
  settings_auth_header == o.settings_auth_header &&
187
169
  settings_auth_method == o.settings_auth_method &&
188
170
  settings_password == o.settings_password &&
@@ -200,7 +182,7 @@ module OpenapiClient
200
182
  # Calculates hash code according to all attributes.
201
183
  # @return [Integer] Hash code
202
184
  def hash
203
- [api_key, applicant_redirect_url, applicant_webhook, install_webhook, label_keys, name, requested_attributes, settings_auth_header, settings_auth_method, settings_password, settings_username, settings_webhook, uninstall_webhook].hash
185
+ [api_key, applicant_redirect_url, applicant_webhook, install_webhook, name, settings_auth_header, settings_auth_method, settings_password, settings_username, settings_webhook, uninstall_webhook].hash
204
186
  end
205
187
 
206
188
  # Builds the object from hash
@@ -271,7 +253,7 @@ module OpenapiClient
271
253
  end
272
254
  else # model
273
255
  # models (e.g. Pet) or oneOf
274
- klass = OpenapiClient.const_get(type)
256
+ klass = FountainPartnerApiClient.const_get(type)
275
257
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
276
258
  end
277
259
  end
@@ -13,13 +13,16 @@ OpenAPI Generator version: 6.2.1
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
- module OpenapiClient
17
- class V1PartnersIdGetRequest
16
+ module FountainPartnerApiClient
17
+ class V1PartnersIdPutRequest
18
+ attr_accessor :format
19
+
18
20
  attr_accessor :partner
19
21
 
20
22
  # Attribute mapping from ruby-style variable name to JSON key.
21
23
  def self.attribute_map
22
24
  {
25
+ :'format' => :'format',
23
26
  :'partner' => :'partner'
24
27
  }
25
28
  end
@@ -32,7 +35,8 @@ module OpenapiClient
32
35
  # Attribute type mapping.
33
36
  def self.openapi_types
34
37
  {
35
- :'partner' => :'V1PartnersIdGetRequestPartner'
38
+ :'format' => :'Object',
39
+ :'partner' => :'V1PartnersIdPutRequestPartner'
36
40
  }
37
41
  end
38
42
 
@@ -46,17 +50,21 @@ module OpenapiClient
46
50
  # @param [Hash] attributes Model attributes in the form of hash
47
51
  def initialize(attributes = {})
48
52
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::V1PartnersIdGetRequest` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FountainPartnerApiClient::V1PartnersIdPutRequest` initialize method"
50
54
  end
51
55
 
52
56
  # check to see if the attribute exists and convert string to symbol for hash key
53
57
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
58
  if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::V1PartnersIdGetRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FountainPartnerApiClient::V1PartnersIdPutRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
60
  end
57
61
  h[k.to_sym] = v
58
62
  }
59
63
 
64
+ if attributes.key?(:'format')
65
+ self.format = attributes[:'format']
66
+ end
67
+
60
68
  if attributes.key?(:'partner')
61
69
  self.partner = attributes[:'partner']
62
70
  end
@@ -80,6 +88,7 @@ module OpenapiClient
80
88
  def ==(o)
81
89
  return true if self.equal?(o)
82
90
  self.class == o.class &&
91
+ format == o.format &&
83
92
  partner == o.partner
84
93
  end
85
94
 
@@ -92,7 +101,7 @@ module OpenapiClient
92
101
  # Calculates hash code according to all attributes.
93
102
  # @return [Integer] Hash code
94
103
  def hash
95
- [partner].hash
104
+ [format, partner].hash
96
105
  end
97
106
 
98
107
  # Builds the object from hash
@@ -163,7 +172,7 @@ module OpenapiClient
163
172
  end
164
173
  else # model
165
174
  # models (e.g. Pet) or oneOf
166
- klass = OpenapiClient.const_get(type)
175
+ klass = FountainPartnerApiClient.const_get(type)
167
176
  klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
168
177
  end
169
178
  end