biz_api 3.9.1
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 +155 -0
- data/Rakefile +10 -0
- data/biz_api.gemspec +39 -0
- data/docs/AppInfo.md +22 -0
- data/docs/AuthRequest.md +26 -0
- data/docs/BizEvent.md +50 -0
- data/docs/BizEventsHelpdeskApi.md +157 -0
- data/docs/CartItem.md +28 -0
- data/docs/Creditor.md +26 -0
- data/docs/CtReceiptModelResponse.md +72 -0
- data/docs/Debtor.md +36 -0
- data/docs/DebtorPosition.md +24 -0
- data/docs/Details.md +22 -0
- data/docs/HomeApi.md +81 -0
- data/docs/IOTransactionsRESTAPIsApi.md +328 -0
- data/docs/Info.md +34 -0
- data/docs/InfoNotice.md +38 -0
- data/docs/InfoTransaction.md +26 -0
- data/docs/InfoTransactionView.md +38 -0
- data/docs/MBD.md +26 -0
- data/docs/MapEntry.md +20 -0
- data/docs/NoticeDetailResponse.md +20 -0
- data/docs/NoticeListItem.md +32 -0
- data/docs/NoticeListWrapResponse.md +18 -0
- data/docs/PageInfo.md +24 -0
- data/docs/PaidNoticeRESTAPIsApi.md +322 -0
- data/docs/Payer.md +36 -0
- data/docs/PaymentAuthorizationRequest.md +28 -0
- data/docs/PaymentInfo.md +50 -0
- data/docs/PaymentReceiptsRESTAPIsApi.md +161 -0
- data/docs/ProblemJson.md +22 -0
- data/docs/Psp.md +30 -0
- data/docs/Transaction.md +44 -0
- data/docs/TransactionDetailResponse.md +20 -0
- data/docs/TransactionDetails.md +28 -0
- data/docs/TransactionListItem.md +32 -0
- data/docs/TransactionListWrapResponse.md +20 -0
- data/docs/TransactionPsp.md +22 -0
- data/docs/Transfer.md +34 -0
- data/docs/TransferPA.md +32 -0
- data/docs/User.md +30 -0
- data/docs/UserDetail.md +20 -0
- data/docs/WalletInfo.md +24 -0
- data/docs/WalletItem.md +34 -0
- data/git_push.sh +57 -0
- data/lib/biz_api/api/biz_events_helpdesk_api.rb +156 -0
- data/lib/biz_api/api/home_api.rb +82 -0
- data/lib/biz_api/api/io_transactions_restapis_api.rb +334 -0
- data/lib/biz_api/api/paid_notice_restapis_api.rb +328 -0
- data/lib/biz_api/api/payment_receipts_restapis_api.rb +168 -0
- data/lib/biz_api/api_client.rb +394 -0
- data/lib/biz_api/api_error.rb +58 -0
- data/lib/biz_api/configuration.rb +333 -0
- data/lib/biz_api/models/app_info.rb +232 -0
- data/lib/biz_api/models/auth_request.rb +250 -0
- data/lib/biz_api/models/biz_event.rb +396 -0
- data/lib/biz_api/models/cart_item.rb +287 -0
- data/lib/biz_api/models/creditor.rb +250 -0
- data/lib/biz_api/models/ct_receipt_model_response.rb +552 -0
- data/lib/biz_api/models/debtor.rb +295 -0
- data/lib/biz_api/models/debtor_position.rb +241 -0
- data/lib/biz_api/models/details.rb +232 -0
- data/lib/biz_api/models/info.rb +286 -0
- data/lib/biz_api/models/info_notice.rb +392 -0
- data/lib/biz_api/models/info_transaction.rb +250 -0
- data/lib/biz_api/models/info_transaction_view.rb +350 -0
- data/lib/biz_api/models/map_entry.rb +223 -0
- data/lib/biz_api/models/mbd.rb +250 -0
- data/lib/biz_api/models/notice_detail_response.rb +225 -0
- data/lib/biz_api/models/notice_list_item.rb +326 -0
- data/lib/biz_api/models/notice_list_wrap_response.rb +223 -0
- data/lib/biz_api/models/page_info.rb +273 -0
- data/lib/biz_api/models/payer.rb +295 -0
- data/lib/biz_api/models/payment_authorization_request.rb +259 -0
- data/lib/biz_api/models/payment_info.rb +360 -0
- data/lib/biz_api/models/problem_json.rb +259 -0
- data/lib/biz_api/models/psp.rb +268 -0
- data/lib/biz_api/models/transaction.rb +331 -0
- data/lib/biz_api/models/transaction_detail_response.rb +225 -0
- data/lib/biz_api/models/transaction_details.rb +259 -0
- data/lib/biz_api/models/transaction_list_item.rb +277 -0
- data/lib/biz_api/models/transaction_list_wrap_response.rb +225 -0
- data/lib/biz_api/models/transaction_psp.rb +232 -0
- data/lib/biz_api/models/transfer.rb +288 -0
- data/lib/biz_api/models/transfer_pa.rb +345 -0
- data/lib/biz_api/models/user.rb +302 -0
- data/lib/biz_api/models/user_detail.rb +230 -0
- data/lib/biz_api/models/wallet_info.rb +241 -0
- data/lib/biz_api/models/wallet_item.rb +322 -0
- data/lib/biz_api/version.rb +15 -0
- data/lib/biz_api.rb +80 -0
- data/spec/api/biz_events_helpdesk_api_spec.rb +60 -0
- data/spec/api/home_api_spec.rb +47 -0
- data/spec/api/io_transactions_restapis_api_spec.rb +96 -0
- data/spec/api/paid_notice_restapis_api_spec.rb +93 -0
- data/spec/api/payment_receipts_restapis_api_spec.rb +62 -0
- data/spec/models/app_info_spec.rb +48 -0
- data/spec/models/auth_request_spec.rb +60 -0
- data/spec/models/biz_event_spec.rb +136 -0
- data/spec/models/cart_item_spec.rb +66 -0
- data/spec/models/creditor_spec.rb +60 -0
- data/spec/models/ct_receipt_model_response_spec.rb +198 -0
- data/spec/models/debtor_position_spec.rb +54 -0
- data/spec/models/debtor_spec.rb +90 -0
- data/spec/models/details_spec.rb +48 -0
- data/spec/models/info_notice_spec.rb +104 -0
- data/spec/models/info_spec.rb +84 -0
- data/spec/models/info_transaction_spec.rb +60 -0
- data/spec/models/info_transaction_view_spec.rb +104 -0
- data/spec/models/map_entry_spec.rb +42 -0
- data/spec/models/mbd_spec.rb +60 -0
- data/spec/models/notice_detail_response_spec.rb +42 -0
- data/spec/models/notice_list_item_spec.rb +78 -0
- data/spec/models/notice_list_wrap_response_spec.rb +36 -0
- data/spec/models/page_info_spec.rb +54 -0
- data/spec/models/payer_spec.rb +90 -0
- data/spec/models/payment_authorization_request_spec.rb +66 -0
- data/spec/models/payment_info_spec.rb +132 -0
- data/spec/models/problem_json_spec.rb +48 -0
- data/spec/models/psp_spec.rb +72 -0
- data/spec/models/transaction_detail_response_spec.rb +42 -0
- data/spec/models/transaction_details_spec.rb +66 -0
- data/spec/models/transaction_list_item_spec.rb +78 -0
- data/spec/models/transaction_list_wrap_response_spec.rb +42 -0
- data/spec/models/transaction_psp_spec.rb +48 -0
- data/spec/models/transaction_spec.rb +114 -0
- data/spec/models/transfer_pa_spec.rb +78 -0
- data/spec/models/transfer_spec.rb +84 -0
- data/spec/models/user_detail_spec.rb +42 -0
- data/spec/models/user_spec.rb +76 -0
- data/spec/models/wallet_info_spec.rb +54 -0
- data/spec/models/wallet_item_spec.rb +88 -0
- data/spec/spec_helper.rb +111 -0
- metadata +259 -0
data/docs/Transaction.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# BizReceipts::Transaction
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id_transaction** | **String** | | [optional] |
|
|
8
|
+
| **transaction_id** | **String** | | [optional] |
|
|
9
|
+
| **grand_total** | **Integer** | | [optional] |
|
|
10
|
+
| **amount** | **Integer** | | [optional] |
|
|
11
|
+
| **fee** | **Integer** | | [optional] |
|
|
12
|
+
| **transaction_status** | **String** | | [optional] |
|
|
13
|
+
| **accounting_status** | **String** | | [optional] |
|
|
14
|
+
| **rrn** | **String** | | [optional] |
|
|
15
|
+
| **authorization_code** | **String** | | [optional] |
|
|
16
|
+
| **creation_date** | **String** | | [optional] |
|
|
17
|
+
| **num_aut** | **String** | | [optional] |
|
|
18
|
+
| **account_code** | **String** | | [optional] |
|
|
19
|
+
| **psp** | [**TransactionPsp**](TransactionPsp.md) | | [optional] |
|
|
20
|
+
| **origin** | **String** | | [optional] |
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```ruby
|
|
25
|
+
require 'biz_api'
|
|
26
|
+
|
|
27
|
+
instance = BizReceipts::Transaction.new(
|
|
28
|
+
id_transaction: null,
|
|
29
|
+
transaction_id: null,
|
|
30
|
+
grand_total: null,
|
|
31
|
+
amount: null,
|
|
32
|
+
fee: null,
|
|
33
|
+
transaction_status: null,
|
|
34
|
+
accounting_status: null,
|
|
35
|
+
rrn: null,
|
|
36
|
+
authorization_code: null,
|
|
37
|
+
creation_date: null,
|
|
38
|
+
num_aut: null,
|
|
39
|
+
account_code: null,
|
|
40
|
+
psp: null,
|
|
41
|
+
origin: null
|
|
42
|
+
)
|
|
43
|
+
```
|
|
44
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# BizReceipts::TransactionDetailResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **info_transaction** | [**InfoTransactionView**](InfoTransactionView.md) | | [optional] |
|
|
8
|
+
| **carts** | [**Array<CartItem>**](CartItem.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'biz_api'
|
|
14
|
+
|
|
15
|
+
instance = BizReceipts::TransactionDetailResponse.new(
|
|
16
|
+
info_transaction: null,
|
|
17
|
+
carts: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# BizReceipts::TransactionDetails
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **user** | [**User**](User.md) | | [optional] |
|
|
8
|
+
| **payment_authorization_request** | [**PaymentAuthorizationRequest**](PaymentAuthorizationRequest.md) | | [optional] |
|
|
9
|
+
| **wallet** | [**WalletItem**](WalletItem.md) | | [optional] |
|
|
10
|
+
| **origin** | **String** | | [optional] |
|
|
11
|
+
| **transaction** | [**Transaction**](Transaction.md) | | [optional] |
|
|
12
|
+
| **info** | [**InfoTransaction**](InfoTransaction.md) | | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'biz_api'
|
|
18
|
+
|
|
19
|
+
instance = BizReceipts::TransactionDetails.new(
|
|
20
|
+
user: null,
|
|
21
|
+
payment_authorization_request: null,
|
|
22
|
+
wallet: null,
|
|
23
|
+
origin: null,
|
|
24
|
+
transaction: null,
|
|
25
|
+
info: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# BizReceipts::TransactionListItem
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **transaction_id** | **String** | | [optional] |
|
|
8
|
+
| **payee_name** | **String** | | [optional] |
|
|
9
|
+
| **payee_tax_code** | **String** | | [optional] |
|
|
10
|
+
| **amount** | **String** | | [optional] |
|
|
11
|
+
| **transaction_date** | **String** | | [optional] |
|
|
12
|
+
| **is_cart** | **Boolean** | | [optional] |
|
|
13
|
+
| **is_payer** | **Boolean** | | [optional] |
|
|
14
|
+
| **is_debtor** | **Boolean** | | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'biz_api'
|
|
20
|
+
|
|
21
|
+
instance = BizReceipts::TransactionListItem.new(
|
|
22
|
+
transaction_id: null,
|
|
23
|
+
payee_name: null,
|
|
24
|
+
payee_tax_code: null,
|
|
25
|
+
amount: null,
|
|
26
|
+
transaction_date: null,
|
|
27
|
+
is_cart: null,
|
|
28
|
+
is_payer: null,
|
|
29
|
+
is_debtor: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# BizReceipts::TransactionListWrapResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **transactions** | [**Array<TransactionListItem>**](TransactionListItem.md) | | [optional] |
|
|
8
|
+
| **page_info** | [**PageInfo**](PageInfo.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'biz_api'
|
|
14
|
+
|
|
15
|
+
instance = BizReceipts::TransactionListWrapResponse.new(
|
|
16
|
+
transactions: null,
|
|
17
|
+
page_info: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# BizReceipts::TransactionPsp
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id_channel** | **String** | | [optional] |
|
|
8
|
+
| **business_name** | **String** | | [optional] |
|
|
9
|
+
| **service_name** | **String** | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'biz_api'
|
|
15
|
+
|
|
16
|
+
instance = BizReceipts::TransactionPsp.new(
|
|
17
|
+
id_channel: null,
|
|
18
|
+
business_name: null,
|
|
19
|
+
service_name: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/Transfer.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# BizReceipts::Transfer
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id_transfer** | **String** | | [optional] |
|
|
8
|
+
| **fiscal_code_pa** | **String** | | [optional] |
|
|
9
|
+
| **company_name** | **String** | | [optional] |
|
|
10
|
+
| **amount** | **String** | | [optional] |
|
|
11
|
+
| **transfer_category** | **String** | | [optional] |
|
|
12
|
+
| **remittance_information** | **String** | | [optional] |
|
|
13
|
+
| **metadata** | [**Array<MapEntry>**](MapEntry.md) | | [optional] |
|
|
14
|
+
| **iban** | **String** | | [optional] |
|
|
15
|
+
| **mbd** | [**MBD**](MBD.md) | | [optional] |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'biz_api'
|
|
21
|
+
|
|
22
|
+
instance = BizReceipts::Transfer.new(
|
|
23
|
+
id_transfer: null,
|
|
24
|
+
fiscal_code_pa: null,
|
|
25
|
+
company_name: null,
|
|
26
|
+
amount: null,
|
|
27
|
+
transfer_category: null,
|
|
28
|
+
remittance_information: null,
|
|
29
|
+
metadata: null,
|
|
30
|
+
iban: null,
|
|
31
|
+
mbd: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
data/docs/TransferPA.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# BizReceipts::TransferPA
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id_transfer** | **Integer** | | [optional] |
|
|
8
|
+
| **transfer_amount** | **Float** | | |
|
|
9
|
+
| **fiscal_code_pa** | **String** | | |
|
|
10
|
+
| **iban** | **String** | | |
|
|
11
|
+
| **mbd_attachment** | **String** | | |
|
|
12
|
+
| **remittance_information** | **String** | | |
|
|
13
|
+
| **transfer_category** | **String** | | |
|
|
14
|
+
| **metadata** | [**Array<MapEntry>**](MapEntry.md) | | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'biz_api'
|
|
20
|
+
|
|
21
|
+
instance = BizReceipts::TransferPA.new(
|
|
22
|
+
id_transfer: null,
|
|
23
|
+
transfer_amount: null,
|
|
24
|
+
fiscal_code_pa: null,
|
|
25
|
+
iban: null,
|
|
26
|
+
mbd_attachment: null,
|
|
27
|
+
remittance_information: null,
|
|
28
|
+
transfer_category: null,
|
|
29
|
+
metadata: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
data/docs/User.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# BizReceipts::User
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **full_name** | **String** | | [optional] |
|
|
8
|
+
| **type** | **String** | | [optional] |
|
|
9
|
+
| **fiscal_code** | **String** | | [optional] |
|
|
10
|
+
| **notification_email** | **String** | | [optional] |
|
|
11
|
+
| **user_id** | **String** | | [optional] |
|
|
12
|
+
| **user_status** | **String** | | [optional] |
|
|
13
|
+
| **user_status_description** | **String** | | [optional] |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'biz_api'
|
|
19
|
+
|
|
20
|
+
instance = BizReceipts::User.new(
|
|
21
|
+
full_name: null,
|
|
22
|
+
type: null,
|
|
23
|
+
fiscal_code: null,
|
|
24
|
+
notification_email: null,
|
|
25
|
+
user_id: null,
|
|
26
|
+
user_status: null,
|
|
27
|
+
user_status_description: null
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
data/docs/UserDetail.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# BizReceipts::UserDetail
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | | [optional] |
|
|
8
|
+
| **tax_code** | **String** | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'biz_api'
|
|
14
|
+
|
|
15
|
+
instance = BizReceipts::UserDetail.new(
|
|
16
|
+
name: null,
|
|
17
|
+
tax_code: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
data/docs/WalletInfo.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# BizReceipts::WalletInfo
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **account_holder** | **String** | | [optional] |
|
|
8
|
+
| **brand** | **String** | | [optional] |
|
|
9
|
+
| **blurred_number** | **String** | | [optional] |
|
|
10
|
+
| **masked_email** | **String** | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'biz_api'
|
|
16
|
+
|
|
17
|
+
instance = BizReceipts::WalletInfo.new(
|
|
18
|
+
account_holder: null,
|
|
19
|
+
brand: null,
|
|
20
|
+
blurred_number: null,
|
|
21
|
+
masked_email: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
data/docs/WalletItem.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# BizReceipts::WalletItem
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id_wallet** | **String** | | [optional] |
|
|
8
|
+
| **wallet_type** | **String** | | [optional] |
|
|
9
|
+
| **enableable_functions** | **Array<String>** | | [optional] |
|
|
10
|
+
| **pago_pa** | **Boolean** | | [optional] |
|
|
11
|
+
| **onboarding_channel** | **String** | | [optional] |
|
|
12
|
+
| **favourite** | **Boolean** | | [optional] |
|
|
13
|
+
| **create_date** | **String** | | [optional] |
|
|
14
|
+
| **info** | [**Info**](Info.md) | | [optional] |
|
|
15
|
+
| **auth_request** | [**AuthRequest**](AuthRequest.md) | | [optional] |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'biz_api'
|
|
21
|
+
|
|
22
|
+
instance = BizReceipts::WalletItem.new(
|
|
23
|
+
id_wallet: null,
|
|
24
|
+
wallet_type: null,
|
|
25
|
+
enableable_functions: null,
|
|
26
|
+
pago_pa: null,
|
|
27
|
+
onboarding_channel: null,
|
|
28
|
+
favourite: null,
|
|
29
|
+
create_date: null,
|
|
30
|
+
info: null,
|
|
31
|
+
auth_request: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
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,156 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Biz-Events Service
|
|
3
|
+
|
|
4
|
+
#Microservice for exposing REST APIs about payment receipts.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.72
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.11.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module BizReceipts
|
|
16
|
+
class BizEventsHelpdeskApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Retrieve the biz-event given its id.
|
|
23
|
+
# @param biz_event_id [String] The id of the biz-event.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @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.
|
|
26
|
+
# @return [BizEvent]
|
|
27
|
+
def get_biz_event(biz_event_id, opts = {})
|
|
28
|
+
data, _status_code, _headers = get_biz_event_with_http_info(biz_event_id, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Retrieve the biz-event given its id.
|
|
33
|
+
# @param biz_event_id [String] The id of the biz-event.
|
|
34
|
+
# @param [Hash] opts the optional parameters
|
|
35
|
+
# @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.
|
|
36
|
+
# @return [Array<(BizEvent, Integer, Hash)>] BizEvent data, response status code and response headers
|
|
37
|
+
def get_biz_event_with_http_info(biz_event_id, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: BizEventsHelpdeskApi.get_biz_event ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'biz_event_id' is set
|
|
42
|
+
if @api_client.config.client_side_validation && biz_event_id.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'biz_event_id' when calling BizEventsHelpdeskApi.get_biz_event"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/events/{biz-event-id}'.sub('{' + 'biz-event-id' + '}', CGI.escape(biz_event_id.to_s))
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
55
|
+
header_params[:'X-Request-Id'] = opts[:'x_request_id'] if !opts[:'x_request_id'].nil?
|
|
56
|
+
|
|
57
|
+
# form parameters
|
|
58
|
+
form_params = opts[:form_params] || {}
|
|
59
|
+
|
|
60
|
+
# http body (model)
|
|
61
|
+
post_body = opts[:debug_body]
|
|
62
|
+
|
|
63
|
+
# return_type
|
|
64
|
+
return_type = opts[:debug_return_type] || 'BizEvent'
|
|
65
|
+
|
|
66
|
+
# auth_names
|
|
67
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
|
68
|
+
|
|
69
|
+
new_options = opts.merge(
|
|
70
|
+
:operation => :"BizEventsHelpdeskApi.get_biz_event",
|
|
71
|
+
:header_params => header_params,
|
|
72
|
+
:query_params => query_params,
|
|
73
|
+
:form_params => form_params,
|
|
74
|
+
:body => post_body,
|
|
75
|
+
:auth_names => auth_names,
|
|
76
|
+
:return_type => return_type
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
80
|
+
if @api_client.config.debugging
|
|
81
|
+
@api_client.config.logger.debug "API called: BizEventsHelpdeskApi#get_biz_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Retrieve the biz-event given the organization fiscal code and IUV.
|
|
87
|
+
# @param organization_fiscal_code [String] The fiscal code of the Organization.
|
|
88
|
+
# @param iuv [String] The unique payment identification. Alphanumeric code that uniquely associates and identifies three key elements of a payment: reason, payer, amount
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @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.
|
|
91
|
+
# @return [BizEvent]
|
|
92
|
+
def get_biz_event_by_organization_fiscal_code_and_iuv(organization_fiscal_code, iuv, opts = {})
|
|
93
|
+
data, _status_code, _headers = get_biz_event_by_organization_fiscal_code_and_iuv_with_http_info(organization_fiscal_code, iuv, opts)
|
|
94
|
+
data
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Retrieve the biz-event given the organization fiscal code and IUV.
|
|
98
|
+
# @param organization_fiscal_code [String] The fiscal code of the Organization.
|
|
99
|
+
# @param iuv [String] The unique payment identification. Alphanumeric code that uniquely associates and identifies three key elements of a payment: reason, payer, amount
|
|
100
|
+
# @param [Hash] opts the optional parameters
|
|
101
|
+
# @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.
|
|
102
|
+
# @return [Array<(BizEvent, Integer, Hash)>] BizEvent data, response status code and response headers
|
|
103
|
+
def get_biz_event_by_organization_fiscal_code_and_iuv_with_http_info(organization_fiscal_code, iuv, opts = {})
|
|
104
|
+
if @api_client.config.debugging
|
|
105
|
+
@api_client.config.logger.debug 'Calling API: BizEventsHelpdeskApi.get_biz_event_by_organization_fiscal_code_and_iuv ...'
|
|
106
|
+
end
|
|
107
|
+
# verify the required parameter 'organization_fiscal_code' is set
|
|
108
|
+
if @api_client.config.client_side_validation && organization_fiscal_code.nil?
|
|
109
|
+
fail ArgumentError, "Missing the required parameter 'organization_fiscal_code' when calling BizEventsHelpdeskApi.get_biz_event_by_organization_fiscal_code_and_iuv"
|
|
110
|
+
end
|
|
111
|
+
# verify the required parameter 'iuv' is set
|
|
112
|
+
if @api_client.config.client_side_validation && iuv.nil?
|
|
113
|
+
fail ArgumentError, "Missing the required parameter 'iuv' when calling BizEventsHelpdeskApi.get_biz_event_by_organization_fiscal_code_and_iuv"
|
|
114
|
+
end
|
|
115
|
+
# resource path
|
|
116
|
+
local_var_path = '/events/organizations/{organization-fiscal-code}/iuvs/{iuv}'.sub('{' + 'organization-fiscal-code' + '}', CGI.escape(organization_fiscal_code.to_s)).sub('{' + 'iuv' + '}', CGI.escape(iuv.to_s))
|
|
117
|
+
|
|
118
|
+
# query parameters
|
|
119
|
+
query_params = opts[:query_params] || {}
|
|
120
|
+
|
|
121
|
+
# header parameters
|
|
122
|
+
header_params = opts[:header_params] || {}
|
|
123
|
+
# HTTP header 'Accept' (if needed)
|
|
124
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
125
|
+
header_params[:'X-Request-Id'] = opts[:'x_request_id'] if !opts[:'x_request_id'].nil?
|
|
126
|
+
|
|
127
|
+
# form parameters
|
|
128
|
+
form_params = opts[:form_params] || {}
|
|
129
|
+
|
|
130
|
+
# http body (model)
|
|
131
|
+
post_body = opts[:debug_body]
|
|
132
|
+
|
|
133
|
+
# return_type
|
|
134
|
+
return_type = opts[:debug_return_type] || 'BizEvent'
|
|
135
|
+
|
|
136
|
+
# auth_names
|
|
137
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
|
138
|
+
|
|
139
|
+
new_options = opts.merge(
|
|
140
|
+
:operation => :"BizEventsHelpdeskApi.get_biz_event_by_organization_fiscal_code_and_iuv",
|
|
141
|
+
:header_params => header_params,
|
|
142
|
+
:query_params => query_params,
|
|
143
|
+
:form_params => form_params,
|
|
144
|
+
:body => post_body,
|
|
145
|
+
:auth_names => auth_names,
|
|
146
|
+
:return_type => return_type
|
|
147
|
+
)
|
|
148
|
+
|
|
149
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
150
|
+
if @api_client.config.debugging
|
|
151
|
+
@api_client.config.logger.debug "API called: BizEventsHelpdeskApi#get_biz_event_by_organization_fiscal_code_and_iuv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
152
|
+
end
|
|
153
|
+
return data, status_code, headers
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Biz-Events Service
|
|
3
|
+
|
|
4
|
+
#Microservice for exposing REST APIs about payment receipts.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.72
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.11.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module BizReceipts
|
|
16
|
+
class HomeApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# health check
|
|
23
|
+
# Return OK if application is started
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @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.
|
|
26
|
+
# @return [AppInfo]
|
|
27
|
+
def health_check(opts = {})
|
|
28
|
+
data, _status_code, _headers = health_check_with_http_info(opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# health check
|
|
33
|
+
# Return OK if application is started
|
|
34
|
+
# @param [Hash] opts the optional parameters
|
|
35
|
+
# @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.
|
|
36
|
+
# @return [Array<(AppInfo, Integer, Hash)>] AppInfo data, response status code and response headers
|
|
37
|
+
def health_check_with_http_info(opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: HomeApi.health_check ...'
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/info'
|
|
43
|
+
|
|
44
|
+
# query parameters
|
|
45
|
+
query_params = opts[:query_params] || {}
|
|
46
|
+
|
|
47
|
+
# header parameters
|
|
48
|
+
header_params = opts[:header_params] || {}
|
|
49
|
+
# HTTP header 'Accept' (if needed)
|
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
51
|
+
header_params[:'X-Request-Id'] = opts[:'x_request_id'] if !opts[:'x_request_id'].nil?
|
|
52
|
+
|
|
53
|
+
# form parameters
|
|
54
|
+
form_params = opts[:form_params] || {}
|
|
55
|
+
|
|
56
|
+
# http body (model)
|
|
57
|
+
post_body = opts[:debug_body]
|
|
58
|
+
|
|
59
|
+
# return_type
|
|
60
|
+
return_type = opts[:debug_return_type] || 'AppInfo'
|
|
61
|
+
|
|
62
|
+
# auth_names
|
|
63
|
+
auth_names = opts[:debug_auth_names] || ['ApiKey']
|
|
64
|
+
|
|
65
|
+
new_options = opts.merge(
|
|
66
|
+
:operation => :"HomeApi.health_check",
|
|
67
|
+
:header_params => header_params,
|
|
68
|
+
:query_params => query_params,
|
|
69
|
+
:form_params => form_params,
|
|
70
|
+
:body => post_body,
|
|
71
|
+
:auth_names => auth_names,
|
|
72
|
+
:return_type => return_type
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
76
|
+
if @api_client.config.debugging
|
|
77
|
+
@api_client.config.logger.debug "API called: HomeApi#health_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
78
|
+
end
|
|
79
|
+
return data, status_code, headers
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|