gpd_debtposition_api 3.8.0

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 (73) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +141 -0
  4. data/Rakefile +10 -0
  5. data/docs/AppInfo.md +22 -0
  6. data/docs/DebtPositionActionsAPIApi.md +165 -0
  7. data/docs/DebtPositionsAPIApi.md +424 -0
  8. data/docs/HomeApi.md +82 -0
  9. data/docs/MultipleIUPDModel.md +18 -0
  10. data/docs/MultiplePaymentPositionModel.md +18 -0
  11. data/docs/PageInfo.md +24 -0
  12. data/docs/PaymentOptionMetadataModel.md +20 -0
  13. data/docs/PaymentOptionMetadataModelResponse.md +20 -0
  14. data/docs/PaymentOptionModel.md +38 -0
  15. data/docs/PaymentOptionModelResponse.md +58 -0
  16. data/docs/PaymentPositionModel.md +60 -0
  17. data/docs/PaymentPositionModelBaseResponse.md +44 -0
  18. data/docs/PaymentPositionsInfo.md +20 -0
  19. data/docs/ProblemJson.md +22 -0
  20. data/docs/Stamp.md +22 -0
  21. data/docs/TransferMetadataModel.md +20 -0
  22. data/docs/TransferMetadataModelResponse.md +20 -0
  23. data/docs/TransferModel.md +34 -0
  24. data/docs/TransferModelResponse.md +40 -0
  25. data/git_push.sh +57 -0
  26. data/gpd_debtposition_api.gemspec +39 -0
  27. data/lib/gpd_debtposition_api/api/debt_position_actions_api_api.rb +162 -0
  28. data/lib/gpd_debtposition_api/api/debt_positions_api_api.rb +439 -0
  29. data/lib/gpd_debtposition_api/api/home_api.rb +80 -0
  30. data/lib/gpd_debtposition_api/api_client.rb +394 -0
  31. data/lib/gpd_debtposition_api/api_error.rb +58 -0
  32. data/lib/gpd_debtposition_api/configuration.rb +320 -0
  33. data/lib/gpd_debtposition_api/models/app_info.rb +232 -0
  34. data/lib/gpd_debtposition_api/models/multiple_iupd_model.rb +251 -0
  35. data/lib/gpd_debtposition_api/models/multiple_payment_position_model.rb +223 -0
  36. data/lib/gpd_debtposition_api/models/page_info.rb +273 -0
  37. data/lib/gpd_debtposition_api/models/payment_option_metadata_model.rb +231 -0
  38. data/lib/gpd_debtposition_api/models/payment_option_metadata_model_response.rb +223 -0
  39. data/lib/gpd_debtposition_api/models/payment_option_model.rb +396 -0
  40. data/lib/gpd_debtposition_api/models/payment_option_model_response.rb +432 -0
  41. data/lib/gpd_debtposition_api/models/payment_position_model.rb +568 -0
  42. data/lib/gpd_debtposition_api/models/payment_position_model_base_response.rb +383 -0
  43. data/lib/gpd_debtposition_api/models/payment_positions_info.rb +239 -0
  44. data/lib/gpd_debtposition_api/models/problem_json.rb +259 -0
  45. data/lib/gpd_debtposition_api/models/stamp.rb +305 -0
  46. data/lib/gpd_debtposition_api/models/transfer_metadata_model.rb +231 -0
  47. data/lib/gpd_debtposition_api/models/transfer_metadata_model_response.rb +223 -0
  48. data/lib/gpd_debtposition_api/models/transfer_model.rb +378 -0
  49. data/lib/gpd_debtposition_api/models/transfer_model_response.rb +349 -0
  50. data/lib/gpd_debtposition_api/version.rb +15 -0
  51. data/lib/gpd_debtposition_api.rb +59 -0
  52. data/spec/api/debt_position_actions_api_api_spec.rb +61 -0
  53. data/spec/api/debt_positions_api_api_spec.rb +111 -0
  54. data/spec/api/home_api_spec.rb +46 -0
  55. data/spec/models/app_info_spec.rb +48 -0
  56. data/spec/models/multiple_iupd_model_spec.rb +36 -0
  57. data/spec/models/multiple_payment_position_model_spec.rb +36 -0
  58. data/spec/models/page_info_spec.rb +54 -0
  59. data/spec/models/payment_option_metadata_model_response_spec.rb +42 -0
  60. data/spec/models/payment_option_metadata_model_spec.rb +42 -0
  61. data/spec/models/payment_option_model_response_spec.rb +160 -0
  62. data/spec/models/payment_option_model_spec.rb +96 -0
  63. data/spec/models/payment_position_model_base_response_spec.rb +122 -0
  64. data/spec/models/payment_position_model_spec.rb +170 -0
  65. data/spec/models/payment_positions_info_spec.rb +42 -0
  66. data/spec/models/problem_json_spec.rb +48 -0
  67. data/spec/models/stamp_spec.rb +48 -0
  68. data/spec/models/transfer_metadata_model_response_spec.rb +42 -0
  69. data/spec/models/transfer_metadata_model_spec.rb +42 -0
  70. data/spec/models/transfer_model_response_spec.rb +106 -0
  71. data/spec/models/transfer_model_spec.rb +88 -0
  72. data/spec/spec_helper.rb +111 -0
  73. metadata +175 -0
@@ -0,0 +1,424 @@
1
+ # GPDDebtPositions::DebtPositionsAPIApi
2
+
3
+ All URIs are relative to *https://api.uat.platform.pagopa.it/gpd/debt-positions-service/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_position**](DebtPositionsAPIApi.md#create_position) | **POST** /organizations/{organizationfiscalcode}/debtpositions | The Organization creates a debt Position. |
8
+ | [**delete_position**](DebtPositionsAPIApi.md#delete_position) | **DELETE** /organizations/{organizationfiscalcode}/debtpositions/{iupd} | The Organization deletes a debt position |
9
+ | [**get_organization_debt_position_by_iupd**](DebtPositionsAPIApi.md#get_organization_debt_position_by_iupd) | **GET** /organizations/{organizationfiscalcode}/debtpositions/{iupd} | Return the details of a specific debt position. |
10
+ | [**get_organization_debt_positions**](DebtPositionsAPIApi.md#get_organization_debt_positions) | **GET** /organizations/{organizationfiscalcode}/debtpositions | Return the list of the organization debt positions. The due dates interval is mutually exclusive with the payment dates interval. |
11
+ | [**update_position**](DebtPositionsAPIApi.md#update_position) | **PUT** /organizations/{organizationfiscalcode}/debtpositions/{iupd} | The Organization updates a debt position |
12
+
13
+
14
+ ## create_position
15
+
16
+ > <PaymentPositionModel> create_position(organizationfiscalcode, payment_position_model, opts)
17
+
18
+ The Organization creates a debt Position.
19
+
20
+ ### Examples
21
+
22
+ ```ruby
23
+ require 'time'
24
+ require 'gpd_debtposition_api'
25
+ # setup authorization
26
+ GPDDebtPositions.configure do |config|
27
+ # Configure Bearer authorization (JWT): Authorization
28
+ config.access_token = 'YOUR_BEARER_TOKEN'
29
+
30
+ # Configure API key authorization: ApiKey
31
+ config.api_key['Ocp-Apim-Subscription-Key'] = 'YOUR API KEY'
32
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
33
+ # config.api_key_prefix['Ocp-Apim-Subscription-Key'] = 'Bearer'
34
+ end
35
+
36
+ api_instance = GPDDebtPositions::DebtPositionsAPIApi.new
37
+ organizationfiscalcode = 'organizationfiscalcode_example' # String | Organization fiscal code, the fiscal code of the Organization.
38
+ payment_position_model = GPDDebtPositions::PaymentPositionModel.new({iupd: 'iupd_example', type: 'F', fiscal_code: 'fiscal_code_example', full_name: 'full_name_example', switch_to_expired: false, company_name: 'company_name_example'}) # PaymentPositionModel |
39
+ opts = {
40
+ x_request_id: 'x_request_id_example', # String | This header identifies the call, if not passed it is self-generated. This ID is returned in the response.
41
+ to_publish: true # Boolean |
42
+ }
43
+
44
+ begin
45
+ # The Organization creates a debt Position.
46
+ result = api_instance.create_position(organizationfiscalcode, payment_position_model, opts)
47
+ p result
48
+ rescue GPDDebtPositions::ApiError => e
49
+ puts "Error when calling DebtPositionsAPIApi->create_position: #{e}"
50
+ end
51
+ ```
52
+
53
+ #### Using the create_position_with_http_info variant
54
+
55
+ This returns an Array which contains the response data, status code and headers.
56
+
57
+ > <Array(<PaymentPositionModel>, Integer, Hash)> create_position_with_http_info(organizationfiscalcode, payment_position_model, opts)
58
+
59
+ ```ruby
60
+ begin
61
+ # The Organization creates a debt Position.
62
+ data, status_code, headers = api_instance.create_position_with_http_info(organizationfiscalcode, payment_position_model, opts)
63
+ p status_code # => 2xx
64
+ p headers # => { ... }
65
+ p data # => <PaymentPositionModel>
66
+ rescue GPDDebtPositions::ApiError => e
67
+ puts "Error when calling DebtPositionsAPIApi->create_position_with_http_info: #{e}"
68
+ end
69
+ ```
70
+
71
+ ### Parameters
72
+
73
+ | Name | Type | Description | Notes |
74
+ | ---- | ---- | ----------- | ----- |
75
+ | **organizationfiscalcode** | **String** | Organization fiscal code, the fiscal code of the Organization. | |
76
+ | **payment_position_model** | [**PaymentPositionModel**](PaymentPositionModel.md) | | |
77
+ | **x_request_id** | **String** | This header identifies the call, if not passed it is self-generated. This ID is returned in the response. | [optional] |
78
+ | **to_publish** | **Boolean** | | [optional][default to false] |
79
+
80
+ ### Return type
81
+
82
+ [**PaymentPositionModel**](PaymentPositionModel.md)
83
+
84
+ ### Authorization
85
+
86
+ [Authorization](../README.md#Authorization), [ApiKey](../README.md#ApiKey)
87
+
88
+ ### HTTP request headers
89
+
90
+ - **Content-Type**: application/json
91
+ - **Accept**: application/json
92
+
93
+
94
+ ## delete_position
95
+
96
+ > String delete_position(organizationfiscalcode, iupd, opts)
97
+
98
+ The Organization deletes a debt position
99
+
100
+ ### Examples
101
+
102
+ ```ruby
103
+ require 'time'
104
+ require 'gpd_debtposition_api'
105
+ # setup authorization
106
+ GPDDebtPositions.configure do |config|
107
+ # Configure Bearer authorization (JWT): Authorization
108
+ config.access_token = 'YOUR_BEARER_TOKEN'
109
+
110
+ # Configure API key authorization: ApiKey
111
+ config.api_key['Ocp-Apim-Subscription-Key'] = 'YOUR API KEY'
112
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
113
+ # config.api_key_prefix['Ocp-Apim-Subscription-Key'] = 'Bearer'
114
+ end
115
+
116
+ api_instance = GPDDebtPositions::DebtPositionsAPIApi.new
117
+ organizationfiscalcode = 'organizationfiscalcode_example' # String | Organization fiscal code, the fiscal code of the Organization.
118
+ iupd = 'iupd_example' # String | IUPD (Unique identifier of the debt position). Format could be `<Organization fiscal code + UUID>` this would make it unique within the new PD management system. It's the responsibility of the EC to guarantee uniqueness. The pagoPa system shall verify that this is `true` and if not, notify the EC.
119
+ opts = {
120
+ x_request_id: 'x_request_id_example' # String | This header identifies the call, if not passed it is self-generated. This ID is returned in the response.
121
+ }
122
+
123
+ begin
124
+ # The Organization deletes a debt position
125
+ result = api_instance.delete_position(organizationfiscalcode, iupd, opts)
126
+ p result
127
+ rescue GPDDebtPositions::ApiError => e
128
+ puts "Error when calling DebtPositionsAPIApi->delete_position: #{e}"
129
+ end
130
+ ```
131
+
132
+ #### Using the delete_position_with_http_info variant
133
+
134
+ This returns an Array which contains the response data, status code and headers.
135
+
136
+ > <Array(String, Integer, Hash)> delete_position_with_http_info(organizationfiscalcode, iupd, opts)
137
+
138
+ ```ruby
139
+ begin
140
+ # The Organization deletes a debt position
141
+ data, status_code, headers = api_instance.delete_position_with_http_info(organizationfiscalcode, iupd, opts)
142
+ p status_code # => 2xx
143
+ p headers # => { ... }
144
+ p data # => String
145
+ rescue GPDDebtPositions::ApiError => e
146
+ puts "Error when calling DebtPositionsAPIApi->delete_position_with_http_info: #{e}"
147
+ end
148
+ ```
149
+
150
+ ### Parameters
151
+
152
+ | Name | Type | Description | Notes |
153
+ | ---- | ---- | ----------- | ----- |
154
+ | **organizationfiscalcode** | **String** | Organization fiscal code, the fiscal code of the Organization. | |
155
+ | **iupd** | **String** | IUPD (Unique identifier of the debt position). Format could be &#x60;&lt;Organization fiscal code + UUID&gt;&#x60; this would make it unique within the new PD management system. It&#39;s the responsibility of the EC to guarantee uniqueness. The pagoPa system shall verify that this is &#x60;true&#x60; and if not, notify the EC. | |
156
+ | **x_request_id** | **String** | This header identifies the call, if not passed it is self-generated. This ID is returned in the response. | [optional] |
157
+
158
+ ### Return type
159
+
160
+ **String**
161
+
162
+ ### Authorization
163
+
164
+ [Authorization](../README.md#Authorization), [ApiKey](../README.md#ApiKey)
165
+
166
+ ### HTTP request headers
167
+
168
+ - **Content-Type**: Not defined
169
+ - **Accept**: application/json
170
+
171
+
172
+ ## get_organization_debt_position_by_iupd
173
+
174
+ > <PaymentPositionModelBaseResponse> get_organization_debt_position_by_iupd(organizationfiscalcode, iupd, opts)
175
+
176
+ Return the details of a specific debt position.
177
+
178
+ ### Examples
179
+
180
+ ```ruby
181
+ require 'time'
182
+ require 'gpd_debtposition_api'
183
+ # setup authorization
184
+ GPDDebtPositions.configure do |config|
185
+ # Configure Bearer authorization (JWT): Authorization
186
+ config.access_token = 'YOUR_BEARER_TOKEN'
187
+
188
+ # Configure API key authorization: ApiKey
189
+ config.api_key['Ocp-Apim-Subscription-Key'] = 'YOUR API KEY'
190
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
191
+ # config.api_key_prefix['Ocp-Apim-Subscription-Key'] = 'Bearer'
192
+ end
193
+
194
+ api_instance = GPDDebtPositions::DebtPositionsAPIApi.new
195
+ organizationfiscalcode = 'organizationfiscalcode_example' # String | Organization fiscal code, the fiscal code of the Organization.
196
+ iupd = 'iupd_example' # String | IUPD (Unique identifier of the debt position). Format could be `<Organization fiscal code + UUID>` this would make it unique within the new PD management system. It's the responsibility of the EC to guarantee uniqueness. The pagoPa system shall verify that this is `true` and if not, notify the EC.
197
+ opts = {
198
+ x_request_id: 'x_request_id_example' # String | This header identifies the call, if not passed it is self-generated. This ID is returned in the response.
199
+ }
200
+
201
+ begin
202
+ # Return the details of a specific debt position.
203
+ result = api_instance.get_organization_debt_position_by_iupd(organizationfiscalcode, iupd, opts)
204
+ p result
205
+ rescue GPDDebtPositions::ApiError => e
206
+ puts "Error when calling DebtPositionsAPIApi->get_organization_debt_position_by_iupd: #{e}"
207
+ end
208
+ ```
209
+
210
+ #### Using the get_organization_debt_position_by_iupd_with_http_info variant
211
+
212
+ This returns an Array which contains the response data, status code and headers.
213
+
214
+ > <Array(<PaymentPositionModelBaseResponse>, Integer, Hash)> get_organization_debt_position_by_iupd_with_http_info(organizationfiscalcode, iupd, opts)
215
+
216
+ ```ruby
217
+ begin
218
+ # Return the details of a specific debt position.
219
+ data, status_code, headers = api_instance.get_organization_debt_position_by_iupd_with_http_info(organizationfiscalcode, iupd, opts)
220
+ p status_code # => 2xx
221
+ p headers # => { ... }
222
+ p data # => <PaymentPositionModelBaseResponse>
223
+ rescue GPDDebtPositions::ApiError => e
224
+ puts "Error when calling DebtPositionsAPIApi->get_organization_debt_position_by_iupd_with_http_info: #{e}"
225
+ end
226
+ ```
227
+
228
+ ### Parameters
229
+
230
+ | Name | Type | Description | Notes |
231
+ | ---- | ---- | ----------- | ----- |
232
+ | **organizationfiscalcode** | **String** | Organization fiscal code, the fiscal code of the Organization. | |
233
+ | **iupd** | **String** | IUPD (Unique identifier of the debt position). Format could be &#x60;&lt;Organization fiscal code + UUID&gt;&#x60; this would make it unique within the new PD management system. It&#39;s the responsibility of the EC to guarantee uniqueness. The pagoPa system shall verify that this is &#x60;true&#x60; and if not, notify the EC. | |
234
+ | **x_request_id** | **String** | This header identifies the call, if not passed it is self-generated. This ID is returned in the response. | [optional] |
235
+
236
+ ### Return type
237
+
238
+ [**PaymentPositionModelBaseResponse**](PaymentPositionModelBaseResponse.md)
239
+
240
+ ### Authorization
241
+
242
+ [Authorization](../README.md#Authorization), [ApiKey](../README.md#ApiKey)
243
+
244
+ ### HTTP request headers
245
+
246
+ - **Content-Type**: Not defined
247
+ - **Accept**: application/json
248
+
249
+
250
+ ## get_organization_debt_positions
251
+
252
+ > <PaymentPositionsInfo> get_organization_debt_positions(organizationfiscalcode, page, opts)
253
+
254
+ Return the list of the organization debt positions. The due dates interval is mutually exclusive with the payment dates interval.
255
+
256
+ ### Examples
257
+
258
+ ```ruby
259
+ require 'time'
260
+ require 'gpd_debtposition_api'
261
+ # setup authorization
262
+ GPDDebtPositions.configure do |config|
263
+ # Configure Bearer authorization (JWT): Authorization
264
+ config.access_token = 'YOUR_BEARER_TOKEN'
265
+
266
+ # Configure API key authorization: ApiKey
267
+ config.api_key['Ocp-Apim-Subscription-Key'] = 'YOUR API KEY'
268
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
269
+ # config.api_key_prefix['Ocp-Apim-Subscription-Key'] = 'Bearer'
270
+ end
271
+
272
+ api_instance = GPDDebtPositions::DebtPositionsAPIApi.new
273
+ organizationfiscalcode = 'organizationfiscalcode_example' # String | Organization fiscal code, the fiscal code of the Organization.
274
+ page = 56 # Integer | Page number. Page value starts from 0
275
+ opts = {
276
+ x_request_id: 'x_request_id_example', # String | This header identifies the call, if not passed it is self-generated. This ID is returned in the response.
277
+ limit: 56, # Integer | Number of elements on one page. Default = 50
278
+ due_date_from: Date.parse('2013-10-20'), # Date | Filter from due_date (if provided use the format yyyy-MM-dd). If not provided will be set to 30 days before the due_date_to.
279
+ due_date_to: Date.parse('2013-10-20'), # Date | Filter to due_date (if provided use the format yyyy-MM-dd). If not provided will be set to 30 days after the due_date_from.
280
+ payment_date_from: Date.parse('2013-10-20'), # Date | Filter from payment_date (if provided use the format yyyy-MM-dd). If not provided will be set to 30 days before the payment_date_to.
281
+ payment_date_to: Date.parse('2013-10-20'), # Date | Filter to payment_date (if provided use the format yyyy-MM-dd). If not provided will be set to 30 days after the payment_date_from
282
+ status: 'DRAFT', # String | Filter by debt position status
283
+ orderby: 'INSERTED_DATE', # String | Order by INSERTED_DATE, COMPANY_NAME, IUPD or STATUS
284
+ ordering: 'ASC' # String | Direction of ordering
285
+ }
286
+
287
+ begin
288
+ # Return the list of the organization debt positions. The due dates interval is mutually exclusive with the payment dates interval.
289
+ result = api_instance.get_organization_debt_positions(organizationfiscalcode, page, opts)
290
+ p result
291
+ rescue GPDDebtPositions::ApiError => e
292
+ puts "Error when calling DebtPositionsAPIApi->get_organization_debt_positions: #{e}"
293
+ end
294
+ ```
295
+
296
+ #### Using the get_organization_debt_positions_with_http_info variant
297
+
298
+ This returns an Array which contains the response data, status code and headers.
299
+
300
+ > <Array(<PaymentPositionsInfo>, Integer, Hash)> get_organization_debt_positions_with_http_info(organizationfiscalcode, page, opts)
301
+
302
+ ```ruby
303
+ begin
304
+ # Return the list of the organization debt positions. The due dates interval is mutually exclusive with the payment dates interval.
305
+ data, status_code, headers = api_instance.get_organization_debt_positions_with_http_info(organizationfiscalcode, page, opts)
306
+ p status_code # => 2xx
307
+ p headers # => { ... }
308
+ p data # => <PaymentPositionsInfo>
309
+ rescue GPDDebtPositions::ApiError => e
310
+ puts "Error when calling DebtPositionsAPIApi->get_organization_debt_positions_with_http_info: #{e}"
311
+ end
312
+ ```
313
+
314
+ ### Parameters
315
+
316
+ | Name | Type | Description | Notes |
317
+ | ---- | ---- | ----------- | ----- |
318
+ | **organizationfiscalcode** | **String** | Organization fiscal code, the fiscal code of the Organization. | |
319
+ | **page** | **Integer** | Page number. Page value starts from 0 | |
320
+ | **x_request_id** | **String** | This header identifies the call, if not passed it is self-generated. This ID is returned in the response. | [optional] |
321
+ | **limit** | **Integer** | Number of elements on one page. Default &#x3D; 50 | [optional][default to 50] |
322
+ | **due_date_from** | **Date** | Filter from due_date (if provided use the format yyyy-MM-dd). If not provided will be set to 30 days before the due_date_to. | [optional] |
323
+ | **due_date_to** | **Date** | Filter to due_date (if provided use the format yyyy-MM-dd). If not provided will be set to 30 days after the due_date_from. | [optional] |
324
+ | **payment_date_from** | **Date** | Filter from payment_date (if provided use the format yyyy-MM-dd). If not provided will be set to 30 days before the payment_date_to. | [optional] |
325
+ | **payment_date_to** | **Date** | Filter to payment_date (if provided use the format yyyy-MM-dd). If not provided will be set to 30 days after the payment_date_from | [optional] |
326
+ | **status** | **String** | Filter by debt position status | [optional] |
327
+ | **orderby** | **String** | Order by INSERTED_DATE, COMPANY_NAME, IUPD or STATUS | [optional][default to &#39;INSERTED_DATE&#39;] |
328
+ | **ordering** | **String** | Direction of ordering | [optional][default to &#39;DESC&#39;] |
329
+
330
+ ### Return type
331
+
332
+ [**PaymentPositionsInfo**](PaymentPositionsInfo.md)
333
+
334
+ ### Authorization
335
+
336
+ [Authorization](../README.md#Authorization), [ApiKey](../README.md#ApiKey)
337
+
338
+ ### HTTP request headers
339
+
340
+ - **Content-Type**: Not defined
341
+ - **Accept**: application/json
342
+
343
+
344
+ ## update_position
345
+
346
+ > <PaymentPositionModel> update_position(organizationfiscalcode, iupd, payment_position_model, opts)
347
+
348
+ The Organization updates a debt position
349
+
350
+ ### Examples
351
+
352
+ ```ruby
353
+ require 'time'
354
+ require 'gpd_debtposition_api'
355
+ # setup authorization
356
+ GPDDebtPositions.configure do |config|
357
+ # Configure Bearer authorization (JWT): Authorization
358
+ config.access_token = 'YOUR_BEARER_TOKEN'
359
+
360
+ # Configure API key authorization: ApiKey
361
+ config.api_key['Ocp-Apim-Subscription-Key'] = 'YOUR API KEY'
362
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
363
+ # config.api_key_prefix['Ocp-Apim-Subscription-Key'] = 'Bearer'
364
+ end
365
+
366
+ api_instance = GPDDebtPositions::DebtPositionsAPIApi.new
367
+ organizationfiscalcode = 'organizationfiscalcode_example' # String | Organization fiscal code, the fiscal code of the Organization.
368
+ iupd = 'iupd_example' # String | IUPD (Unique identifier of the debt position). Format could be `<Organization fiscal code + UUID>` this would make it unique within the new PD management system. It's the responsibility of the EC to guarantee uniqueness. The pagoPa system shall verify that this is `true` and if not, notify the EC.
369
+ payment_position_model = GPDDebtPositions::PaymentPositionModel.new({iupd: 'iupd_example', type: 'F', fiscal_code: 'fiscal_code_example', full_name: 'full_name_example', switch_to_expired: false, company_name: 'company_name_example'}) # PaymentPositionModel |
370
+ opts = {
371
+ x_request_id: 'x_request_id_example', # String | This header identifies the call, if not passed it is self-generated. This ID is returned in the response.
372
+ to_publish: true # Boolean |
373
+ }
374
+
375
+ begin
376
+ # The Organization updates a debt position
377
+ result = api_instance.update_position(organizationfiscalcode, iupd, payment_position_model, opts)
378
+ p result
379
+ rescue GPDDebtPositions::ApiError => e
380
+ puts "Error when calling DebtPositionsAPIApi->update_position: #{e}"
381
+ end
382
+ ```
383
+
384
+ #### Using the update_position_with_http_info variant
385
+
386
+ This returns an Array which contains the response data, status code and headers.
387
+
388
+ > <Array(<PaymentPositionModel>, Integer, Hash)> update_position_with_http_info(organizationfiscalcode, iupd, payment_position_model, opts)
389
+
390
+ ```ruby
391
+ begin
392
+ # The Organization updates a debt position
393
+ data, status_code, headers = api_instance.update_position_with_http_info(organizationfiscalcode, iupd, payment_position_model, opts)
394
+ p status_code # => 2xx
395
+ p headers # => { ... }
396
+ p data # => <PaymentPositionModel>
397
+ rescue GPDDebtPositions::ApiError => e
398
+ puts "Error when calling DebtPositionsAPIApi->update_position_with_http_info: #{e}"
399
+ end
400
+ ```
401
+
402
+ ### Parameters
403
+
404
+ | Name | Type | Description | Notes |
405
+ | ---- | ---- | ----------- | ----- |
406
+ | **organizationfiscalcode** | **String** | Organization fiscal code, the fiscal code of the Organization. | |
407
+ | **iupd** | **String** | IUPD (Unique identifier of the debt position). Format could be &#x60;&lt;Organization fiscal code + UUID&gt;&#x60; this would make it unique within the new PD management system. It&#39;s the responsibility of the EC to guarantee uniqueness. The pagoPa system shall verify that this is &#x60;true&#x60; and if not, notify the EC. | |
408
+ | **payment_position_model** | [**PaymentPositionModel**](PaymentPositionModel.md) | | |
409
+ | **x_request_id** | **String** | This header identifies the call, if not passed it is self-generated. This ID is returned in the response. | [optional] |
410
+ | **to_publish** | **Boolean** | | [optional][default to false] |
411
+
412
+ ### Return type
413
+
414
+ [**PaymentPositionModel**](PaymentPositionModel.md)
415
+
416
+ ### Authorization
417
+
418
+ [Authorization](../README.md#Authorization), [ApiKey](../README.md#ApiKey)
419
+
420
+ ### HTTP request headers
421
+
422
+ - **Content-Type**: application/json
423
+ - **Accept**: application/json
424
+
data/docs/HomeApi.md ADDED
@@ -0,0 +1,82 @@
1
+ # GPDDebtPositions::HomeApi
2
+
3
+ All URIs are relative to *https://api.uat.platform.pagopa.it/gpd/debt-positions-service/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**health_check**](HomeApi.md#health_check) | **GET** /info | Return OK if application is started |
8
+
9
+
10
+ ## health_check
11
+
12
+ > <AppInfo> health_check(opts)
13
+
14
+ Return OK if application is started
15
+
16
+ ### Examples
17
+
18
+ ```ruby
19
+ require 'time'
20
+ require 'gpd_debtposition_api'
21
+ # setup authorization
22
+ GPDDebtPositions.configure do |config|
23
+ # Configure Bearer authorization (JWT): Authorization
24
+ config.access_token = 'YOUR_BEARER_TOKEN'
25
+
26
+ # Configure API key authorization: ApiKey
27
+ config.api_key['Ocp-Apim-Subscription-Key'] = 'YOUR API KEY'
28
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
29
+ # config.api_key_prefix['Ocp-Apim-Subscription-Key'] = 'Bearer'
30
+ end
31
+
32
+ api_instance = GPDDebtPositions::HomeApi.new
33
+ opts = {
34
+ x_request_id: 'x_request_id_example' # String | This header identifies the call, if not passed it is self-generated. This ID is returned in the response.
35
+ }
36
+
37
+ begin
38
+ # Return OK if application is started
39
+ result = api_instance.health_check(opts)
40
+ p result
41
+ rescue GPDDebtPositions::ApiError => e
42
+ puts "Error when calling HomeApi->health_check: #{e}"
43
+ end
44
+ ```
45
+
46
+ #### Using the health_check_with_http_info variant
47
+
48
+ This returns an Array which contains the response data, status code and headers.
49
+
50
+ > <Array(<AppInfo>, Integer, Hash)> health_check_with_http_info(opts)
51
+
52
+ ```ruby
53
+ begin
54
+ # Return OK if application is started
55
+ data, status_code, headers = api_instance.health_check_with_http_info(opts)
56
+ p status_code # => 2xx
57
+ p headers # => { ... }
58
+ p data # => <AppInfo>
59
+ rescue GPDDebtPositions::ApiError => e
60
+ puts "Error when calling HomeApi->health_check_with_http_info: #{e}"
61
+ end
62
+ ```
63
+
64
+ ### Parameters
65
+
66
+ | Name | Type | Description | Notes |
67
+ | ---- | ---- | ----------- | ----- |
68
+ | **x_request_id** | **String** | This header identifies the call, if not passed it is self-generated. This ID is returned in the response. | [optional] |
69
+
70
+ ### Return type
71
+
72
+ [**AppInfo**](AppInfo.md)
73
+
74
+ ### Authorization
75
+
76
+ [Authorization](../README.md#Authorization), [ApiKey](../README.md#ApiKey)
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: Not defined
81
+ - **Accept**: application/json
82
+
@@ -0,0 +1,18 @@
1
+ # GPDDebtPositions::MultipleIUPDModel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **payment_position_iupds** | **Array&lt;String&gt;** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'gpd_debtposition_api'
13
+
14
+ instance = GPDDebtPositions::MultipleIUPDModel.new(
15
+ payment_position_iupds: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # GPDDebtPositions::MultiplePaymentPositionModel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **payment_positions** | [**Array&lt;PaymentPositionModel&gt;**](PaymentPositionModel.md) | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'gpd_debtposition_api'
13
+
14
+ instance = GPDDebtPositions::MultiplePaymentPositionModel.new(
15
+ payment_positions: null
16
+ )
17
+ ```
18
+
data/docs/PageInfo.md ADDED
@@ -0,0 +1,24 @@
1
+ # GPDDebtPositions::PageInfo
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **page** | **Integer** | Page number | |
8
+ | **limit** | **Integer** | Required number of items per page | |
9
+ | **items_found** | **Integer** | Number of items found. (The last page may have fewer elements than required) | |
10
+ | **total_pages** | **Integer** | Total number of pages | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'gpd_debtposition_api'
16
+
17
+ instance = GPDDebtPositions::PageInfo.new(
18
+ page: null,
19
+ limit: null,
20
+ items_found: null,
21
+ total_pages: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,20 @@
1
+ # GPDDebtPositions::PaymentOptionMetadataModel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **key** | **String** | | |
8
+ | **value** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'gpd_debtposition_api'
14
+
15
+ instance = GPDDebtPositions::PaymentOptionMetadataModel.new(
16
+ key: null,
17
+ value: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # GPDDebtPositions::PaymentOptionMetadataModelResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **key** | **String** | | [optional] |
8
+ | **value** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'gpd_debtposition_api'
14
+
15
+ instance = GPDDebtPositions::PaymentOptionMetadataModelResponse.new(
16
+ key: null,
17
+ value: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,38 @@
1
+ # GPDDebtPositions::PaymentOptionModel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **nav** | **String** | | [optional] |
8
+ | **iuv** | **String** | | |
9
+ | **amount** | **Integer** | | |
10
+ | **description** | **String** | | |
11
+ | **is_partial_payment** | **Boolean** | | |
12
+ | **due_date** | **Time** | | |
13
+ | **retention_date** | **Time** | | [optional] |
14
+ | **fee** | **Integer** | | [optional] |
15
+ | **notification_fee** | **Integer** | | [optional][readonly] |
16
+ | **transfer** | [**Array&lt;TransferModel&gt;**](TransferModel.md) | | [optional] |
17
+ | **payment_option_metadata** | [**Array&lt;PaymentOptionMetadataModel&gt;**](PaymentOptionMetadataModel.md) | it can added a maximum of 10 key-value pairs for metadata | [optional] |
18
+
19
+ ## Example
20
+
21
+ ```ruby
22
+ require 'gpd_debtposition_api'
23
+
24
+ instance = GPDDebtPositions::PaymentOptionModel.new(
25
+ nav: null,
26
+ iuv: null,
27
+ amount: null,
28
+ description: null,
29
+ is_partial_payment: null,
30
+ due_date: null,
31
+ retention_date: null,
32
+ fee: null,
33
+ notification_fee: null,
34
+ transfer: null,
35
+ payment_option_metadata: null
36
+ )
37
+ ```
38
+