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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +141 -0
- data/Rakefile +10 -0
- data/docs/AppInfo.md +22 -0
- data/docs/DebtPositionActionsAPIApi.md +165 -0
- data/docs/DebtPositionsAPIApi.md +424 -0
- data/docs/HomeApi.md +82 -0
- data/docs/MultipleIUPDModel.md +18 -0
- data/docs/MultiplePaymentPositionModel.md +18 -0
- data/docs/PageInfo.md +24 -0
- data/docs/PaymentOptionMetadataModel.md +20 -0
- data/docs/PaymentOptionMetadataModelResponse.md +20 -0
- data/docs/PaymentOptionModel.md +38 -0
- data/docs/PaymentOptionModelResponse.md +58 -0
- data/docs/PaymentPositionModel.md +60 -0
- data/docs/PaymentPositionModelBaseResponse.md +44 -0
- data/docs/PaymentPositionsInfo.md +20 -0
- data/docs/ProblemJson.md +22 -0
- data/docs/Stamp.md +22 -0
- data/docs/TransferMetadataModel.md +20 -0
- data/docs/TransferMetadataModelResponse.md +20 -0
- data/docs/TransferModel.md +34 -0
- data/docs/TransferModelResponse.md +40 -0
- data/git_push.sh +57 -0
- data/gpd_debtposition_api.gemspec +39 -0
- data/lib/gpd_debtposition_api/api/debt_position_actions_api_api.rb +162 -0
- data/lib/gpd_debtposition_api/api/debt_positions_api_api.rb +439 -0
- data/lib/gpd_debtposition_api/api/home_api.rb +80 -0
- data/lib/gpd_debtposition_api/api_client.rb +394 -0
- data/lib/gpd_debtposition_api/api_error.rb +58 -0
- data/lib/gpd_debtposition_api/configuration.rb +320 -0
- data/lib/gpd_debtposition_api/models/app_info.rb +232 -0
- data/lib/gpd_debtposition_api/models/multiple_iupd_model.rb +251 -0
- data/lib/gpd_debtposition_api/models/multiple_payment_position_model.rb +223 -0
- data/lib/gpd_debtposition_api/models/page_info.rb +273 -0
- data/lib/gpd_debtposition_api/models/payment_option_metadata_model.rb +231 -0
- data/lib/gpd_debtposition_api/models/payment_option_metadata_model_response.rb +223 -0
- data/lib/gpd_debtposition_api/models/payment_option_model.rb +396 -0
- data/lib/gpd_debtposition_api/models/payment_option_model_response.rb +432 -0
- data/lib/gpd_debtposition_api/models/payment_position_model.rb +568 -0
- data/lib/gpd_debtposition_api/models/payment_position_model_base_response.rb +383 -0
- data/lib/gpd_debtposition_api/models/payment_positions_info.rb +239 -0
- data/lib/gpd_debtposition_api/models/problem_json.rb +259 -0
- data/lib/gpd_debtposition_api/models/stamp.rb +305 -0
- data/lib/gpd_debtposition_api/models/transfer_metadata_model.rb +231 -0
- data/lib/gpd_debtposition_api/models/transfer_metadata_model_response.rb +223 -0
- data/lib/gpd_debtposition_api/models/transfer_model.rb +378 -0
- data/lib/gpd_debtposition_api/models/transfer_model_response.rb +349 -0
- data/lib/gpd_debtposition_api/version.rb +15 -0
- data/lib/gpd_debtposition_api.rb +59 -0
- data/spec/api/debt_position_actions_api_api_spec.rb +61 -0
- data/spec/api/debt_positions_api_api_spec.rb +111 -0
- data/spec/api/home_api_spec.rb +46 -0
- data/spec/models/app_info_spec.rb +48 -0
- data/spec/models/multiple_iupd_model_spec.rb +36 -0
- data/spec/models/multiple_payment_position_model_spec.rb +36 -0
- data/spec/models/page_info_spec.rb +54 -0
- data/spec/models/payment_option_metadata_model_response_spec.rb +42 -0
- data/spec/models/payment_option_metadata_model_spec.rb +42 -0
- data/spec/models/payment_option_model_response_spec.rb +160 -0
- data/spec/models/payment_option_model_spec.rb +96 -0
- data/spec/models/payment_position_model_base_response_spec.rb +122 -0
- data/spec/models/payment_position_model_spec.rb +170 -0
- data/spec/models/payment_positions_info_spec.rb +42 -0
- data/spec/models/problem_json_spec.rb +48 -0
- data/spec/models/stamp_spec.rb +48 -0
- data/spec/models/transfer_metadata_model_response_spec.rb +42 -0
- data/spec/models/transfer_metadata_model_spec.rb +42 -0
- data/spec/models/transfer_model_response_spec.rb +106 -0
- data/spec/models/transfer_model_spec.rb +88 -0
- data/spec/spec_helper.rb +111 -0
- metadata +175 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 055e50ff2b68b65d249a1c7d89f2a9900becdde18667025b28a68334bf6b0407
|
4
|
+
data.tar.gz: fa4bfd77a905850390ede94cf6902aeb750dd80a0c63d0ac8b02b29600543d76
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8a788bc2b99fd930c249b4d0ea659bb7a1e033b547b7c4b406786d74e1142118b1c96eef19d2899f8069de2a6d06b7dcbc90f442f2541cb4f1695b9a1677ad06
|
7
|
+
data.tar.gz: 57648a02812ec97a3fb686e21a597c85953ebffb905d251dbeecc55cac378e1a7feb674ee616ae775c7821ac3e5fbcbd9d75b73655d04dfab27b5ee3d3eee382
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,141 @@
|
|
1
|
+
# gpd_debtposition_api
|
2
|
+
|
3
|
+
GPDDebtPositions - the Ruby gem for the PagoPA API Debt Position
|
4
|
+
|
5
|
+
Progetto Gestione Posizioni Debitorie
|
6
|
+
|
7
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
|
+
|
9
|
+
- API version: 0.11.18
|
10
|
+
- Package version: 3.8.0
|
11
|
+
- Generator version: 7.11.0
|
12
|
+
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
### Build a gem
|
17
|
+
|
18
|
+
To build the Ruby code into a gem:
|
19
|
+
|
20
|
+
```shell
|
21
|
+
gem build gpd_debtposition_api.gemspec
|
22
|
+
```
|
23
|
+
|
24
|
+
Then either install the gem locally:
|
25
|
+
|
26
|
+
```shell
|
27
|
+
gem install ./gpd_debtposition_api-3.8.0.gem
|
28
|
+
```
|
29
|
+
|
30
|
+
(for development, run `gem install --dev ./gpd_debtposition_api-3.8.0.gem` to install the development dependencies)
|
31
|
+
|
32
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
|
+
|
34
|
+
Finally add this to the Gemfile:
|
35
|
+
|
36
|
+
gem 'gpd_debtposition_api', '~> 3.8.0'
|
37
|
+
|
38
|
+
### Install from Git
|
39
|
+
|
40
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
41
|
+
|
42
|
+
gem 'gpd_debtposition_api', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
43
|
+
|
44
|
+
### Include the Ruby code directly
|
45
|
+
|
46
|
+
Include the Ruby code directly using `-I` as follows:
|
47
|
+
|
48
|
+
```shell
|
49
|
+
ruby -Ilib script.rb
|
50
|
+
```
|
51
|
+
|
52
|
+
## Getting Started
|
53
|
+
|
54
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
55
|
+
|
56
|
+
```ruby
|
57
|
+
# Load the gem
|
58
|
+
require 'gpd_debtposition_api'
|
59
|
+
|
60
|
+
# Setup authorization
|
61
|
+
GPDDebtPositions.configure do |config|
|
62
|
+
# Configure Bearer authorization (JWT): Authorization
|
63
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
64
|
+
# Configure a proc to get access tokens in lieu of the static access_token configuration
|
65
|
+
config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' }
|
66
|
+
|
67
|
+
# Configure API key authorization: ApiKey
|
68
|
+
config.api_key['Ocp-Apim-Subscription-Key'] = 'YOUR API KEY'
|
69
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
70
|
+
# config.api_key_prefix['Ocp-Apim-Subscription-Key'] = 'Bearer'
|
71
|
+
end
|
72
|
+
|
73
|
+
api_instance = GPDDebtPositions::DebtPositionActionsAPIApi.new
|
74
|
+
organizationfiscalcode = 'organizationfiscalcode_example' # String | Organization fiscal code, the fiscal code of the Organization.
|
75
|
+
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.
|
76
|
+
opts = {
|
77
|
+
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.
|
78
|
+
}
|
79
|
+
|
80
|
+
begin
|
81
|
+
#The Organization invalidate a debt Position.
|
82
|
+
result = api_instance.invalidate_position(organizationfiscalcode, iupd, opts)
|
83
|
+
p result
|
84
|
+
rescue GPDDebtPositions::ApiError => e
|
85
|
+
puts "Exception when calling DebtPositionActionsAPIApi->invalidate_position: #{e}"
|
86
|
+
end
|
87
|
+
|
88
|
+
```
|
89
|
+
|
90
|
+
## Documentation for API Endpoints
|
91
|
+
|
92
|
+
All URIs are relative to *https://api.uat.platform.pagopa.it/gpd/debt-positions-service/v1*
|
93
|
+
|
94
|
+
Class | Method | HTTP request | Description
|
95
|
+
------------ | ------------- | ------------- | -------------
|
96
|
+
*GPDDebtPositions::DebtPositionActionsAPIApi* | [**invalidate_position**](docs/DebtPositionActionsAPIApi.md#invalidate_position) | **POST** /organizations/{organizationfiscalcode}/debtpositions/{iupd}/invalidate | The Organization invalidate a debt Position.
|
97
|
+
*GPDDebtPositions::DebtPositionActionsAPIApi* | [**publish_position**](docs/DebtPositionActionsAPIApi.md#publish_position) | **POST** /organizations/{organizationfiscalcode}/debtpositions/{iupd}/publish | The Organization publish a debt Position.
|
98
|
+
*GPDDebtPositions::DebtPositionsAPIApi* | [**create_position**](docs/DebtPositionsAPIApi.md#create_position) | **POST** /organizations/{organizationfiscalcode}/debtpositions | The Organization creates a debt Position.
|
99
|
+
*GPDDebtPositions::DebtPositionsAPIApi* | [**delete_position**](docs/DebtPositionsAPIApi.md#delete_position) | **DELETE** /organizations/{organizationfiscalcode}/debtpositions/{iupd} | The Organization deletes a debt position
|
100
|
+
*GPDDebtPositions::DebtPositionsAPIApi* | [**get_organization_debt_position_by_iupd**](docs/DebtPositionsAPIApi.md#get_organization_debt_position_by_iupd) | **GET** /organizations/{organizationfiscalcode}/debtpositions/{iupd} | Return the details of a specific debt position.
|
101
|
+
*GPDDebtPositions::DebtPositionsAPIApi* | [**get_organization_debt_positions**](docs/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.
|
102
|
+
*GPDDebtPositions::DebtPositionsAPIApi* | [**update_position**](docs/DebtPositionsAPIApi.md#update_position) | **PUT** /organizations/{organizationfiscalcode}/debtpositions/{iupd} | The Organization updates a debt position
|
103
|
+
*GPDDebtPositions::HomeApi* | [**health_check**](docs/HomeApi.md#health_check) | **GET** /info | Return OK if application is started
|
104
|
+
|
105
|
+
|
106
|
+
## Documentation for Models
|
107
|
+
|
108
|
+
- [GPDDebtPositions::AppInfo](docs/AppInfo.md)
|
109
|
+
- [GPDDebtPositions::MultipleIUPDModel](docs/MultipleIUPDModel.md)
|
110
|
+
- [GPDDebtPositions::MultiplePaymentPositionModel](docs/MultiplePaymentPositionModel.md)
|
111
|
+
- [GPDDebtPositions::PageInfo](docs/PageInfo.md)
|
112
|
+
- [GPDDebtPositions::PaymentOptionMetadataModel](docs/PaymentOptionMetadataModel.md)
|
113
|
+
- [GPDDebtPositions::PaymentOptionMetadataModelResponse](docs/PaymentOptionMetadataModelResponse.md)
|
114
|
+
- [GPDDebtPositions::PaymentOptionModel](docs/PaymentOptionModel.md)
|
115
|
+
- [GPDDebtPositions::PaymentOptionModelResponse](docs/PaymentOptionModelResponse.md)
|
116
|
+
- [GPDDebtPositions::PaymentPositionModel](docs/PaymentPositionModel.md)
|
117
|
+
- [GPDDebtPositions::PaymentPositionModelBaseResponse](docs/PaymentPositionModelBaseResponse.md)
|
118
|
+
- [GPDDebtPositions::PaymentPositionsInfo](docs/PaymentPositionsInfo.md)
|
119
|
+
- [GPDDebtPositions::ProblemJson](docs/ProblemJson.md)
|
120
|
+
- [GPDDebtPositions::Stamp](docs/Stamp.md)
|
121
|
+
- [GPDDebtPositions::TransferMetadataModel](docs/TransferMetadataModel.md)
|
122
|
+
- [GPDDebtPositions::TransferMetadataModelResponse](docs/TransferMetadataModelResponse.md)
|
123
|
+
- [GPDDebtPositions::TransferModel](docs/TransferModel.md)
|
124
|
+
- [GPDDebtPositions::TransferModelResponse](docs/TransferModelResponse.md)
|
125
|
+
|
126
|
+
|
127
|
+
## Documentation for Authorization
|
128
|
+
|
129
|
+
|
130
|
+
Authentication schemes defined for the API:
|
131
|
+
### ApiKey
|
132
|
+
|
133
|
+
|
134
|
+
- **Type**: API key
|
135
|
+
- **API key parameter name**: Ocp-Apim-Subscription-Key
|
136
|
+
- **Location**: HTTP header
|
137
|
+
|
138
|
+
### Authorization
|
139
|
+
|
140
|
+
- **Type**: Bearer authentication (JWT)
|
141
|
+
|
data/Rakefile
ADDED
data/docs/AppInfo.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# GPDDebtPositions::AppInfo
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | | [optional] |
|
8
|
+
| **version** | **String** | | [optional] |
|
9
|
+
| **environment** | **String** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'gpd_debtposition_api'
|
15
|
+
|
16
|
+
instance = GPDDebtPositions::AppInfo.new(
|
17
|
+
name: null,
|
18
|
+
version: null,
|
19
|
+
environment: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,165 @@
|
|
1
|
+
# GPDDebtPositions::DebtPositionActionsAPIApi
|
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
|
+
| [**invalidate_position**](DebtPositionActionsAPIApi.md#invalidate_position) | **POST** /organizations/{organizationfiscalcode}/debtpositions/{iupd}/invalidate | The Organization invalidate a debt Position. |
|
8
|
+
| [**publish_position**](DebtPositionActionsAPIApi.md#publish_position) | **POST** /organizations/{organizationfiscalcode}/debtpositions/{iupd}/publish | The Organization publish a debt Position. |
|
9
|
+
|
10
|
+
|
11
|
+
## invalidate_position
|
12
|
+
|
13
|
+
> <PaymentPositionModel> invalidate_position(organizationfiscalcode, iupd, opts)
|
14
|
+
|
15
|
+
The Organization invalidate a debt Position.
|
16
|
+
|
17
|
+
### Examples
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'time'
|
21
|
+
require 'gpd_debtposition_api'
|
22
|
+
# setup authorization
|
23
|
+
GPDDebtPositions.configure do |config|
|
24
|
+
# Configure Bearer authorization (JWT): Authorization
|
25
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
26
|
+
|
27
|
+
# Configure API key authorization: ApiKey
|
28
|
+
config.api_key['Ocp-Apim-Subscription-Key'] = 'YOUR API KEY'
|
29
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
30
|
+
# config.api_key_prefix['Ocp-Apim-Subscription-Key'] = 'Bearer'
|
31
|
+
end
|
32
|
+
|
33
|
+
api_instance = GPDDebtPositions::DebtPositionActionsAPIApi.new
|
34
|
+
organizationfiscalcode = 'organizationfiscalcode_example' # String | Organization fiscal code, the fiscal code of the Organization.
|
35
|
+
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.
|
36
|
+
opts = {
|
37
|
+
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.
|
38
|
+
}
|
39
|
+
|
40
|
+
begin
|
41
|
+
# The Organization invalidate a debt Position.
|
42
|
+
result = api_instance.invalidate_position(organizationfiscalcode, iupd, opts)
|
43
|
+
p result
|
44
|
+
rescue GPDDebtPositions::ApiError => e
|
45
|
+
puts "Error when calling DebtPositionActionsAPIApi->invalidate_position: #{e}"
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
#### Using the invalidate_position_with_http_info variant
|
50
|
+
|
51
|
+
This returns an Array which contains the response data, status code and headers.
|
52
|
+
|
53
|
+
> <Array(<PaymentPositionModel>, Integer, Hash)> invalidate_position_with_http_info(organizationfiscalcode, iupd, opts)
|
54
|
+
|
55
|
+
```ruby
|
56
|
+
begin
|
57
|
+
# The Organization invalidate a debt Position.
|
58
|
+
data, status_code, headers = api_instance.invalidate_position_with_http_info(organizationfiscalcode, iupd, opts)
|
59
|
+
p status_code # => 2xx
|
60
|
+
p headers # => { ... }
|
61
|
+
p data # => <PaymentPositionModel>
|
62
|
+
rescue GPDDebtPositions::ApiError => e
|
63
|
+
puts "Error when calling DebtPositionActionsAPIApi->invalidate_position_with_http_info: #{e}"
|
64
|
+
end
|
65
|
+
```
|
66
|
+
|
67
|
+
### Parameters
|
68
|
+
|
69
|
+
| Name | Type | Description | Notes |
|
70
|
+
| ---- | ---- | ----------- | ----- |
|
71
|
+
| **organizationfiscalcode** | **String** | Organization fiscal code, the fiscal code of the Organization. | |
|
72
|
+
| **iupd** | **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. | |
|
73
|
+
| **x_request_id** | **String** | This header identifies the call, if not passed it is self-generated. This ID is returned in the response. | [optional] |
|
74
|
+
|
75
|
+
### Return type
|
76
|
+
|
77
|
+
[**PaymentPositionModel**](PaymentPositionModel.md)
|
78
|
+
|
79
|
+
### Authorization
|
80
|
+
|
81
|
+
[Authorization](../README.md#Authorization), [ApiKey](../README.md#ApiKey)
|
82
|
+
|
83
|
+
### HTTP request headers
|
84
|
+
|
85
|
+
- **Content-Type**: Not defined
|
86
|
+
- **Accept**: application/json
|
87
|
+
|
88
|
+
|
89
|
+
## publish_position
|
90
|
+
|
91
|
+
> <PaymentPositionModel> publish_position(organizationfiscalcode, iupd, opts)
|
92
|
+
|
93
|
+
The Organization publish a debt Position.
|
94
|
+
|
95
|
+
### Examples
|
96
|
+
|
97
|
+
```ruby
|
98
|
+
require 'time'
|
99
|
+
require 'gpd_debtposition_api'
|
100
|
+
# setup authorization
|
101
|
+
GPDDebtPositions.configure do |config|
|
102
|
+
# Configure Bearer authorization (JWT): Authorization
|
103
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
104
|
+
|
105
|
+
# Configure API key authorization: ApiKey
|
106
|
+
config.api_key['Ocp-Apim-Subscription-Key'] = 'YOUR API KEY'
|
107
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
108
|
+
# config.api_key_prefix['Ocp-Apim-Subscription-Key'] = 'Bearer'
|
109
|
+
end
|
110
|
+
|
111
|
+
api_instance = GPDDebtPositions::DebtPositionActionsAPIApi.new
|
112
|
+
organizationfiscalcode = 'organizationfiscalcode_example' # String | Organization fiscal code, the fiscal code of the Organization.
|
113
|
+
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.
|
114
|
+
opts = {
|
115
|
+
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.
|
116
|
+
}
|
117
|
+
|
118
|
+
begin
|
119
|
+
# The Organization publish a debt Position.
|
120
|
+
result = api_instance.publish_position(organizationfiscalcode, iupd, opts)
|
121
|
+
p result
|
122
|
+
rescue GPDDebtPositions::ApiError => e
|
123
|
+
puts "Error when calling DebtPositionActionsAPIApi->publish_position: #{e}"
|
124
|
+
end
|
125
|
+
```
|
126
|
+
|
127
|
+
#### Using the publish_position_with_http_info variant
|
128
|
+
|
129
|
+
This returns an Array which contains the response data, status code and headers.
|
130
|
+
|
131
|
+
> <Array(<PaymentPositionModel>, Integer, Hash)> publish_position_with_http_info(organizationfiscalcode, iupd, opts)
|
132
|
+
|
133
|
+
```ruby
|
134
|
+
begin
|
135
|
+
# The Organization publish a debt Position.
|
136
|
+
data, status_code, headers = api_instance.publish_position_with_http_info(organizationfiscalcode, iupd, opts)
|
137
|
+
p status_code # => 2xx
|
138
|
+
p headers # => { ... }
|
139
|
+
p data # => <PaymentPositionModel>
|
140
|
+
rescue GPDDebtPositions::ApiError => e
|
141
|
+
puts "Error when calling DebtPositionActionsAPIApi->publish_position_with_http_info: #{e}"
|
142
|
+
end
|
143
|
+
```
|
144
|
+
|
145
|
+
### Parameters
|
146
|
+
|
147
|
+
| Name | Type | Description | Notes |
|
148
|
+
| ---- | ---- | ----------- | ----- |
|
149
|
+
| **organizationfiscalcode** | **String** | Organization fiscal code, the fiscal code of the Organization. | |
|
150
|
+
| **iupd** | **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. | |
|
151
|
+
| **x_request_id** | **String** | This header identifies the call, if not passed it is self-generated. This ID is returned in the response. | [optional] |
|
152
|
+
|
153
|
+
### Return type
|
154
|
+
|
155
|
+
[**PaymentPositionModel**](PaymentPositionModel.md)
|
156
|
+
|
157
|
+
### Authorization
|
158
|
+
|
159
|
+
[Authorization](../README.md#Authorization), [ApiKey](../README.md#ApiKey)
|
160
|
+
|
161
|
+
### HTTP request headers
|
162
|
+
|
163
|
+
- **Content-Type**: Not defined
|
164
|
+
- **Accept**: application/json
|
165
|
+
|