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
@@ -0,0 +1,58 @@
|
|
1
|
+
# GPDDebtPositions::PaymentOptionModelResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **nav** | **String** | | [optional] |
|
8
|
+
| **iuv** | **String** | | [optional] |
|
9
|
+
| **organization_fiscal_code** | **String** | | [optional] |
|
10
|
+
| **amount** | **Integer** | | [optional] |
|
11
|
+
| **description** | **String** | | [optional] |
|
12
|
+
| **is_partial_payment** | **Boolean** | | [optional] |
|
13
|
+
| **due_date** | **Time** | | [optional] |
|
14
|
+
| **retention_date** | **Time** | | [optional] |
|
15
|
+
| **payment_date** | **Time** | | [optional] |
|
16
|
+
| **reporting_date** | **Time** | | [optional] |
|
17
|
+
| **inserted_date** | **Time** | | [optional] |
|
18
|
+
| **payment_method** | **String** | | [optional] |
|
19
|
+
| **fee** | **Integer** | | [optional] |
|
20
|
+
| **notification_fee** | **Integer** | | [optional] |
|
21
|
+
| **psp_company** | **String** | | [optional] |
|
22
|
+
| **id_receipt** | **String** | | [optional] |
|
23
|
+
| **id_flow_reporting** | **String** | | [optional] |
|
24
|
+
| **status** | **String** | | [optional] |
|
25
|
+
| **last_updated_date** | **Time** | | [optional] |
|
26
|
+
| **payment_option_metadata** | [**Array<PaymentOptionMetadataModelResponse>**](PaymentOptionMetadataModelResponse.md) | | [optional] |
|
27
|
+
| **transfer** | [**Array<TransferModelResponse>**](TransferModelResponse.md) | | [optional] |
|
28
|
+
|
29
|
+
## Example
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
require 'gpd_debtposition_api'
|
33
|
+
|
34
|
+
instance = GPDDebtPositions::PaymentOptionModelResponse.new(
|
35
|
+
nav: null,
|
36
|
+
iuv: null,
|
37
|
+
organization_fiscal_code: null,
|
38
|
+
amount: null,
|
39
|
+
description: null,
|
40
|
+
is_partial_payment: null,
|
41
|
+
due_date: null,
|
42
|
+
retention_date: null,
|
43
|
+
payment_date: null,
|
44
|
+
reporting_date: null,
|
45
|
+
inserted_date: null,
|
46
|
+
payment_method: null,
|
47
|
+
fee: null,
|
48
|
+
notification_fee: null,
|
49
|
+
psp_company: null,
|
50
|
+
id_receipt: null,
|
51
|
+
id_flow_reporting: null,
|
52
|
+
status: null,
|
53
|
+
last_updated_date: null,
|
54
|
+
payment_option_metadata: null,
|
55
|
+
transfer: null
|
56
|
+
)
|
57
|
+
```
|
58
|
+
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# GPDDebtPositions::PaymentPositionModel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **iupd** | **String** | | |
|
8
|
+
| **aca** | **Boolean** | | [optional][default to false] |
|
9
|
+
| **type** | **String** | | |
|
10
|
+
| **pay_stand_in** | **Boolean** | feature flag to enable a debt position in stand-in mode | [optional][default to true] |
|
11
|
+
| **fiscal_code** | **String** | | |
|
12
|
+
| **full_name** | **String** | | |
|
13
|
+
| **street_name** | **String** | | [optional] |
|
14
|
+
| **civic_number** | **String** | | [optional] |
|
15
|
+
| **postal_code** | **String** | | [optional] |
|
16
|
+
| **city** | **String** | | [optional] |
|
17
|
+
| **province** | **String** | | [optional] |
|
18
|
+
| **region** | **String** | | [optional] |
|
19
|
+
| **country** | **String** | | [optional] |
|
20
|
+
| **email** | **String** | | [optional] |
|
21
|
+
| **phone** | **String** | | [optional] |
|
22
|
+
| **switch_to_expired** | **Boolean** | feature flag to enable the debt position to expire after the due date | [default to false] |
|
23
|
+
| **company_name** | **String** | | |
|
24
|
+
| **office_name** | **String** | | [optional] |
|
25
|
+
| **validity_date** | **Time** | | [optional] |
|
26
|
+
| **payment_date** | **Time** | | [optional][readonly] |
|
27
|
+
| **status** | **String** | | [optional][readonly] |
|
28
|
+
| **payment_option** | [**Array<PaymentOptionModel>**](PaymentOptionModel.md) | | [optional] |
|
29
|
+
|
30
|
+
## Example
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
require 'gpd_debtposition_api'
|
34
|
+
|
35
|
+
instance = GPDDebtPositions::PaymentPositionModel.new(
|
36
|
+
iupd: null,
|
37
|
+
aca: null,
|
38
|
+
type: null,
|
39
|
+
pay_stand_in: true,
|
40
|
+
fiscal_code: null,
|
41
|
+
full_name: null,
|
42
|
+
street_name: null,
|
43
|
+
civic_number: null,
|
44
|
+
postal_code: null,
|
45
|
+
city: null,
|
46
|
+
province: null,
|
47
|
+
region: null,
|
48
|
+
country: null,
|
49
|
+
email: null,
|
50
|
+
phone: null,
|
51
|
+
switch_to_expired: false,
|
52
|
+
company_name: null,
|
53
|
+
office_name: null,
|
54
|
+
validity_date: null,
|
55
|
+
payment_date: null,
|
56
|
+
status: null,
|
57
|
+
payment_option: null
|
58
|
+
)
|
59
|
+
```
|
60
|
+
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# GPDDebtPositions::PaymentPositionModelBaseResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **iupd** | **String** | | [optional] |
|
8
|
+
| **aca** | **Boolean** | | [optional][default to false] |
|
9
|
+
| **pay_stand_in** | **Boolean** | | [optional][default to true] |
|
10
|
+
| **organization_fiscal_code** | **String** | | [optional] |
|
11
|
+
| **type** | **String** | | [optional] |
|
12
|
+
| **company_name** | **String** | | [optional] |
|
13
|
+
| **office_name** | **String** | | [optional] |
|
14
|
+
| **inserted_date** | **Time** | | [optional] |
|
15
|
+
| **publish_date** | **Time** | | [optional] |
|
16
|
+
| **validity_date** | **Time** | | [optional] |
|
17
|
+
| **payment_date** | **Time** | | [optional] |
|
18
|
+
| **status** | **String** | | [optional] |
|
19
|
+
| **last_updated_date** | **Time** | | [optional] |
|
20
|
+
| **payment_option** | [**Array<PaymentOptionModelResponse>**](PaymentOptionModelResponse.md) | | [optional] |
|
21
|
+
|
22
|
+
## Example
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'gpd_debtposition_api'
|
26
|
+
|
27
|
+
instance = GPDDebtPositions::PaymentPositionModelBaseResponse.new(
|
28
|
+
iupd: null,
|
29
|
+
aca: null,
|
30
|
+
pay_stand_in: null,
|
31
|
+
organization_fiscal_code: null,
|
32
|
+
type: null,
|
33
|
+
company_name: null,
|
34
|
+
office_name: null,
|
35
|
+
inserted_date: null,
|
36
|
+
publish_date: null,
|
37
|
+
validity_date: null,
|
38
|
+
payment_date: null,
|
39
|
+
status: null,
|
40
|
+
last_updated_date: null,
|
41
|
+
payment_option: null
|
42
|
+
)
|
43
|
+
```
|
44
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# GPDDebtPositions::PaymentPositionsInfo
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **payment_position_list** | [**Array<PaymentPositionModelBaseResponse>**](PaymentPositionModelBaseResponse.md) | | |
|
8
|
+
| **page_info** | [**PageInfo**](PageInfo.md) | | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'gpd_debtposition_api'
|
14
|
+
|
15
|
+
instance = GPDDebtPositions::PaymentPositionsInfo.new(
|
16
|
+
payment_position_list: null,
|
17
|
+
page_info: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/ProblemJson.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# GPDDebtPositions::ProblemJson
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **title** | **String** | A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable | [optional] |
|
8
|
+
| **status** | **Integer** | The HTTP status code generated by the origin server for this occurrence of the problem. | [optional] |
|
9
|
+
| **detail** | **String** | A human readable explanation specific to this occurrence of the problem. | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'gpd_debtposition_api'
|
15
|
+
|
16
|
+
instance = GPDDebtPositions::ProblemJson.new(
|
17
|
+
title: null,
|
18
|
+
status: 200,
|
19
|
+
detail: There was an error processing the request
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/Stamp.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# GPDDebtPositions::Stamp
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **hash_document** | **String** | Document hash | |
|
8
|
+
| **stamp_type** | **String** | The type of the stamp | |
|
9
|
+
| **provincial_residence** | **String** | The provincial of the residence | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'gpd_debtposition_api'
|
15
|
+
|
16
|
+
instance = GPDDebtPositions::Stamp.new(
|
17
|
+
hash_document: null,
|
18
|
+
stamp_type: null,
|
19
|
+
provincial_residence: RM
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# GPDDebtPositions::TransferMetadataModel
|
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::TransferMetadataModel.new(
|
16
|
+
key: null,
|
17
|
+
value: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# GPDDebtPositions::TransferMetadataModelResponse
|
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::TransferMetadataModelResponse.new(
|
16
|
+
key: null,
|
17
|
+
value: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# GPDDebtPositions::TransferModel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id_transfer** | **String** | | |
|
8
|
+
| **amount** | **Integer** | | |
|
9
|
+
| **organization_fiscal_code** | **String** | Fiscal code related to the organization targeted by this transfer. | [optional] |
|
10
|
+
| **remittance_information** | **String** | | |
|
11
|
+
| **category** | **String** | | |
|
12
|
+
| **iban** | **String** | mutual exclusive with stamp | [optional] |
|
13
|
+
| **postal_iban** | **String** | optional - can be combined with iban but not with stamp | [optional] |
|
14
|
+
| **stamp** | [**Stamp**](Stamp.md) | | [optional] |
|
15
|
+
| **transfer_metadata** | [**Array<TransferMetadataModel>**](TransferMetadataModel.md) | it can added a maximum of 10 key-value pairs for metadata | [optional] |
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'gpd_debtposition_api'
|
21
|
+
|
22
|
+
instance = GPDDebtPositions::TransferModel.new(
|
23
|
+
id_transfer: null,
|
24
|
+
amount: null,
|
25
|
+
organization_fiscal_code: 00000000000,
|
26
|
+
remittance_information: null,
|
27
|
+
category: null,
|
28
|
+
iban: IT0000000000000000000000000,
|
29
|
+
postal_iban: IT0000000000000000000000000,
|
30
|
+
stamp: null,
|
31
|
+
transfer_metadata: null
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# GPDDebtPositions::TransferModelResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **organization_fiscal_code** | **String** | | [optional] |
|
8
|
+
| **id_transfer** | **String** | | [optional] |
|
9
|
+
| **amount** | **Integer** | | [optional] |
|
10
|
+
| **remittance_information** | **String** | | [optional] |
|
11
|
+
| **category** | **String** | | [optional] |
|
12
|
+
| **iban** | **String** | | [optional] |
|
13
|
+
| **postal_iban** | **String** | | [optional] |
|
14
|
+
| **stamp** | [**Stamp**](Stamp.md) | | [optional] |
|
15
|
+
| **inserted_date** | **Time** | | [optional] |
|
16
|
+
| **status** | **String** | | [optional] |
|
17
|
+
| **last_updated_date** | **Time** | | [optional] |
|
18
|
+
| **transfer_metadata** | [**Array<TransferMetadataModelResponse>**](TransferMetadataModelResponse.md) | | [optional] |
|
19
|
+
|
20
|
+
## Example
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'gpd_debtposition_api'
|
24
|
+
|
25
|
+
instance = GPDDebtPositions::TransferModelResponse.new(
|
26
|
+
organization_fiscal_code: null,
|
27
|
+
id_transfer: null,
|
28
|
+
amount: null,
|
29
|
+
remittance_information: null,
|
30
|
+
category: null,
|
31
|
+
iban: null,
|
32
|
+
postal_iban: null,
|
33
|
+
stamp: null,
|
34
|
+
inserted_date: null,
|
35
|
+
status: null,
|
36
|
+
last_updated_date: null,
|
37
|
+
transfer_metadata: null
|
38
|
+
)
|
39
|
+
```
|
40
|
+
|
data/git_push.sh
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
+
#
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
5
|
+
|
6
|
+
git_user_id=$1
|
7
|
+
git_repo_id=$2
|
8
|
+
release_note=$3
|
9
|
+
git_host=$4
|
10
|
+
|
11
|
+
if [ "$git_host" = "" ]; then
|
12
|
+
git_host="github.com"
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
+
fi
|
15
|
+
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
17
|
+
git_user_id="GIT_USER_ID"
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
+
fi
|
20
|
+
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
+
fi
|
25
|
+
|
26
|
+
if [ "$release_note" = "" ]; then
|
27
|
+
release_note="Minor update"
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
+
fi
|
30
|
+
|
31
|
+
# Initialize the local directory as a Git repository
|
32
|
+
git init
|
33
|
+
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
35
|
+
git add .
|
36
|
+
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
+
git commit -m "$release_note"
|
39
|
+
|
40
|
+
# Sets the new remote
|
41
|
+
git_remote=$(git remote)
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
+
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
+
else
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
+
fi
|
50
|
+
|
51
|
+
fi
|
52
|
+
|
53
|
+
git pull origin master
|
54
|
+
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#PagoPA API Debt Position
|
5
|
+
|
6
|
+
#Progetto Gestione Posizioni Debitorie
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.11.18
|
9
|
+
|
10
|
+
Generated by: https://openapi-generator.tech
|
11
|
+
Generator version: 7.11.0
|
12
|
+
|
13
|
+
=end
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "gpd_debtposition_api/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "gpd_debtposition_api"
|
20
|
+
s.version = GPDDebtPositions::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["Loris Pizzolitto"]
|
23
|
+
s.email = ["loris.pizzolitto@dedagorup.it"]
|
24
|
+
s.homepage = "https://openapi-generator.tech"
|
25
|
+
s.summary = "Debt Positions API Ruby Gem"
|
26
|
+
s.description = "PagoPA GPDDebtPositions"
|
27
|
+
s.license = "MIT"
|
28
|
+
s.required_ruby_version = ">= 2.4"
|
29
|
+
s.metadata = {}
|
30
|
+
|
31
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
32
|
+
|
33
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
|
+
|
35
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
36
|
+
s.test_files = `find spec/*`.split("\n")
|
37
|
+
s.executables = []
|
38
|
+
s.require_paths = ["lib"]
|
39
|
+
end
|
@@ -0,0 +1,162 @@
|
|
1
|
+
=begin
|
2
|
+
#PagoPA API Debt Position
|
3
|
+
|
4
|
+
#Progetto Gestione Posizioni Debitorie
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.11.18
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.11.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module GPDDebtPositions
|
16
|
+
class DebtPositionActionsAPIApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# The Organization invalidate a debt Position.
|
23
|
+
# @param organizationfiscalcode [String] Organization fiscal code, the fiscal code of the Organization.
|
24
|
+
# @param 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.
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :x_request_id This header identifies the call, if not passed it is self-generated. This ID is returned in the response.
|
27
|
+
# @return [PaymentPositionModel]
|
28
|
+
def invalidate_position(organizationfiscalcode, iupd, opts = {})
|
29
|
+
data, _status_code, _headers = invalidate_position_with_http_info(organizationfiscalcode, iupd, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# The Organization invalidate a debt Position.
|
34
|
+
# @param organizationfiscalcode [String] Organization fiscal code, the fiscal code of the Organization.
|
35
|
+
# @param 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.
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [String] :x_request_id This header identifies the call, if not passed it is self-generated. This ID is returned in the response.
|
38
|
+
# @return [Array<(PaymentPositionModel, Integer, Hash)>] PaymentPositionModel data, response status code and response headers
|
39
|
+
def invalidate_position_with_http_info(organizationfiscalcode, iupd, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: DebtPositionActionsAPIApi.invalidate_position ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'organizationfiscalcode' is set
|
44
|
+
if @api_client.config.client_side_validation && organizationfiscalcode.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'organizationfiscalcode' when calling DebtPositionActionsAPIApi.invalidate_position"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'iupd' is set
|
48
|
+
if @api_client.config.client_side_validation && iupd.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'iupd' when calling DebtPositionActionsAPIApi.invalidate_position"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/organizations/{organizationfiscalcode}/debtpositions/{iupd}/invalidate'.sub('{' + 'organizationfiscalcode' + '}', CGI.escape(organizationfiscalcode.to_s)).sub('{' + 'iupd' + '}', CGI.escape(iupd.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']) unless header_params['Accept']
|
61
|
+
header_params[:'X-Request-Id'] = opts[:'x_request_id'] if !opts[:'x_request_id'].nil?
|
62
|
+
|
63
|
+
# form parameters
|
64
|
+
form_params = opts[:form_params] || {}
|
65
|
+
|
66
|
+
# http body (model)
|
67
|
+
post_body = opts[:debug_body]
|
68
|
+
|
69
|
+
# return_type
|
70
|
+
return_type = opts[:debug_return_type] || 'PaymentPositionModel'
|
71
|
+
|
72
|
+
# auth_names
|
73
|
+
auth_names = opts[:debug_auth_names] || ['Authorization', 'ApiKey']
|
74
|
+
|
75
|
+
new_options = opts.merge(
|
76
|
+
:operation => :"DebtPositionActionsAPIApi.invalidate_position",
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type
|
83
|
+
)
|
84
|
+
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: DebtPositionActionsAPIApi#invalidate_position\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
|
92
|
+
# The Organization publish a debt Position.
|
93
|
+
# @param organizationfiscalcode [String] Organization fiscal code, the fiscal code of the Organization.
|
94
|
+
# @param 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.
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @option opts [String] :x_request_id This header identifies the call, if not passed it is self-generated. This ID is returned in the response.
|
97
|
+
# @return [PaymentPositionModel]
|
98
|
+
def publish_position(organizationfiscalcode, iupd, opts = {})
|
99
|
+
data, _status_code, _headers = publish_position_with_http_info(organizationfiscalcode, iupd, opts)
|
100
|
+
data
|
101
|
+
end
|
102
|
+
|
103
|
+
# The Organization publish a debt Position.
|
104
|
+
# @param organizationfiscalcode [String] Organization fiscal code, the fiscal code of the Organization.
|
105
|
+
# @param 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.
|
106
|
+
# @param [Hash] opts the optional parameters
|
107
|
+
# @option opts [String] :x_request_id This header identifies the call, if not passed it is self-generated. This ID is returned in the response.
|
108
|
+
# @return [Array<(PaymentPositionModel, Integer, Hash)>] PaymentPositionModel data, response status code and response headers
|
109
|
+
def publish_position_with_http_info(organizationfiscalcode, iupd, opts = {})
|
110
|
+
if @api_client.config.debugging
|
111
|
+
@api_client.config.logger.debug 'Calling API: DebtPositionActionsAPIApi.publish_position ...'
|
112
|
+
end
|
113
|
+
# verify the required parameter 'organizationfiscalcode' is set
|
114
|
+
if @api_client.config.client_side_validation && organizationfiscalcode.nil?
|
115
|
+
fail ArgumentError, "Missing the required parameter 'organizationfiscalcode' when calling DebtPositionActionsAPIApi.publish_position"
|
116
|
+
end
|
117
|
+
# verify the required parameter 'iupd' is set
|
118
|
+
if @api_client.config.client_side_validation && iupd.nil?
|
119
|
+
fail ArgumentError, "Missing the required parameter 'iupd' when calling DebtPositionActionsAPIApi.publish_position"
|
120
|
+
end
|
121
|
+
# resource path
|
122
|
+
local_var_path = '/organizations/{organizationfiscalcode}/debtpositions/{iupd}/publish'.sub('{' + 'organizationfiscalcode' + '}', CGI.escape(organizationfiscalcode.to_s)).sub('{' + 'iupd' + '}', CGI.escape(iupd.to_s))
|
123
|
+
|
124
|
+
# query parameters
|
125
|
+
query_params = opts[:query_params] || {}
|
126
|
+
|
127
|
+
# header parameters
|
128
|
+
header_params = opts[:header_params] || {}
|
129
|
+
# HTTP header 'Accept' (if needed)
|
130
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
131
|
+
header_params[:'X-Request-Id'] = opts[:'x_request_id'] if !opts[:'x_request_id'].nil?
|
132
|
+
|
133
|
+
# form parameters
|
134
|
+
form_params = opts[:form_params] || {}
|
135
|
+
|
136
|
+
# http body (model)
|
137
|
+
post_body = opts[:debug_body]
|
138
|
+
|
139
|
+
# return_type
|
140
|
+
return_type = opts[:debug_return_type] || 'PaymentPositionModel'
|
141
|
+
|
142
|
+
# auth_names
|
143
|
+
auth_names = opts[:debug_auth_names] || ['Authorization', 'ApiKey']
|
144
|
+
|
145
|
+
new_options = opts.merge(
|
146
|
+
:operation => :"DebtPositionActionsAPIApi.publish_position",
|
147
|
+
:header_params => header_params,
|
148
|
+
:query_params => query_params,
|
149
|
+
:form_params => form_params,
|
150
|
+
:body => post_body,
|
151
|
+
:auth_names => auth_names,
|
152
|
+
:return_type => return_type
|
153
|
+
)
|
154
|
+
|
155
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
156
|
+
if @api_client.config.debugging
|
157
|
+
@api_client.config.logger.debug "API called: DebtPositionActionsAPIApi#publish_position\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
158
|
+
end
|
159
|
+
return data, status_code, headers
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|