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/Details.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# BizReceipts::Details
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **blurred_number** | **String** | | [optional] |
|
|
8
|
+
| **holder** | **String** | | [optional] |
|
|
9
|
+
| **circuit** | **String** | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'biz_api'
|
|
15
|
+
|
|
16
|
+
instance = BizReceipts::Details.new(
|
|
17
|
+
blurred_number: null,
|
|
18
|
+
holder: null,
|
|
19
|
+
circuit: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/HomeApi.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# BizReceipts::HomeApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.uat.platform.pagopa.it/bizevents/service/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**health_check**](HomeApi.md#health_check) | **GET** /info | health check |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## health_check
|
|
11
|
+
|
|
12
|
+
> <AppInfo> health_check(opts)
|
|
13
|
+
|
|
14
|
+
health check
|
|
15
|
+
|
|
16
|
+
Return OK if application is started
|
|
17
|
+
|
|
18
|
+
### Examples
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
require 'time'
|
|
22
|
+
require 'biz_api'
|
|
23
|
+
# setup authorization
|
|
24
|
+
BizReceipts.configure do |config|
|
|
25
|
+
# Configure API key authorization: ApiKey
|
|
26
|
+
config.api_key['Ocp-Apim-Subscription-Key'] = 'YOUR API KEY'
|
|
27
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
28
|
+
# config.api_key_prefix['Ocp-Apim-Subscription-Key'] = 'Bearer'
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
api_instance = BizReceipts::HomeApi.new
|
|
32
|
+
opts = {
|
|
33
|
+
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.
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
begin
|
|
37
|
+
# health check
|
|
38
|
+
result = api_instance.health_check(opts)
|
|
39
|
+
p result
|
|
40
|
+
rescue BizReceipts::ApiError => e
|
|
41
|
+
puts "Error when calling HomeApi->health_check: #{e}"
|
|
42
|
+
end
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
#### Using the health_check_with_http_info variant
|
|
46
|
+
|
|
47
|
+
This returns an Array which contains the response data, status code and headers.
|
|
48
|
+
|
|
49
|
+
> <Array(<AppInfo>, Integer, Hash)> health_check_with_http_info(opts)
|
|
50
|
+
|
|
51
|
+
```ruby
|
|
52
|
+
begin
|
|
53
|
+
# health check
|
|
54
|
+
data, status_code, headers = api_instance.health_check_with_http_info(opts)
|
|
55
|
+
p status_code # => 2xx
|
|
56
|
+
p headers # => { ... }
|
|
57
|
+
p data # => <AppInfo>
|
|
58
|
+
rescue BizReceipts::ApiError => e
|
|
59
|
+
puts "Error when calling HomeApi->health_check_with_http_info: #{e}"
|
|
60
|
+
end
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Parameters
|
|
64
|
+
|
|
65
|
+
| Name | Type | Description | Notes |
|
|
66
|
+
| ---- | ---- | ----------- | ----- |
|
|
67
|
+
| **x_request_id** | **String** | This header identifies the call, if not passed it is self-generated. This ID is returned in the response. | [optional] |
|
|
68
|
+
|
|
69
|
+
### Return type
|
|
70
|
+
|
|
71
|
+
[**AppInfo**](AppInfo.md)
|
|
72
|
+
|
|
73
|
+
### Authorization
|
|
74
|
+
|
|
75
|
+
[ApiKey](../README.md#ApiKey)
|
|
76
|
+
|
|
77
|
+
### HTTP request headers
|
|
78
|
+
|
|
79
|
+
- **Content-Type**: Not defined
|
|
80
|
+
- **Accept**: application/json
|
|
81
|
+
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
# BizReceipts::IOTransactionsRESTAPIsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.uat.platform.pagopa.it/bizevents/service/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**disable_transaction**](IOTransactionsRESTAPIsApi.md#disable_transaction) | **POST** /transactions/{transaction-id}/disable | Disable the transaction details given its id. |
|
|
8
|
+
| [**get_pdf_receipt**](IOTransactionsRESTAPIsApi.md#get_pdf_receipt) | **GET** /transactions/{event-id}/pdf | Retrieve the PDF receipt given event id. |
|
|
9
|
+
| [**get_transaction_details**](IOTransactionsRESTAPIsApi.md#get_transaction_details) | **GET** /transactions/{transaction-id} | Retrieve the transaction details given its id. |
|
|
10
|
+
| [**get_transaction_list**](IOTransactionsRESTAPIsApi.md#get_transaction_list) | **GET** /transactions | Retrieve the paged transaction list from biz events. |
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## disable_transaction
|
|
14
|
+
|
|
15
|
+
> disable_transaction(x_fiscal_code, transaction_id, opts)
|
|
16
|
+
|
|
17
|
+
Disable the transaction details given its id.
|
|
18
|
+
|
|
19
|
+
This operation is deprecated. Use Paid Notice APIs instead
|
|
20
|
+
|
|
21
|
+
### Examples
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
require 'time'
|
|
25
|
+
require 'biz_api'
|
|
26
|
+
# setup authorization
|
|
27
|
+
BizReceipts.configure do |config|
|
|
28
|
+
# Configure API key authorization: ApiKey
|
|
29
|
+
config.api_key['Ocp-Apim-Subscription-Key'] = 'YOUR API KEY'
|
|
30
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
31
|
+
# config.api_key_prefix['Ocp-Apim-Subscription-Key'] = 'Bearer'
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
api_instance = BizReceipts::IOTransactionsRESTAPIsApi.new
|
|
35
|
+
x_fiscal_code = 'x_fiscal_code_example' # String |
|
|
36
|
+
transaction_id = 'transaction_id_example' # String | The id of the transaction.
|
|
37
|
+
opts = {
|
|
38
|
+
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.
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
begin
|
|
42
|
+
# Disable the transaction details given its id.
|
|
43
|
+
api_instance.disable_transaction(x_fiscal_code, transaction_id, opts)
|
|
44
|
+
rescue BizReceipts::ApiError => e
|
|
45
|
+
puts "Error when calling IOTransactionsRESTAPIsApi->disable_transaction: #{e}"
|
|
46
|
+
end
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
#### Using the disable_transaction_with_http_info variant
|
|
50
|
+
|
|
51
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
52
|
+
|
|
53
|
+
> <Array(nil, Integer, Hash)> disable_transaction_with_http_info(x_fiscal_code, transaction_id, opts)
|
|
54
|
+
|
|
55
|
+
```ruby
|
|
56
|
+
begin
|
|
57
|
+
# Disable the transaction details given its id.
|
|
58
|
+
data, status_code, headers = api_instance.disable_transaction_with_http_info(x_fiscal_code, transaction_id, opts)
|
|
59
|
+
p status_code # => 2xx
|
|
60
|
+
p headers # => { ... }
|
|
61
|
+
p data # => nil
|
|
62
|
+
rescue BizReceipts::ApiError => e
|
|
63
|
+
puts "Error when calling IOTransactionsRESTAPIsApi->disable_transaction_with_http_info: #{e}"
|
|
64
|
+
end
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Parameters
|
|
68
|
+
|
|
69
|
+
| Name | Type | Description | Notes |
|
|
70
|
+
| ---- | ---- | ----------- | ----- |
|
|
71
|
+
| **x_fiscal_code** | **String** | | |
|
|
72
|
+
| **transaction_id** | **String** | The id of the transaction. | |
|
|
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
|
+
nil (empty response body)
|
|
78
|
+
|
|
79
|
+
### Authorization
|
|
80
|
+
|
|
81
|
+
[ApiKey](../README.md#ApiKey)
|
|
82
|
+
|
|
83
|
+
### HTTP request headers
|
|
84
|
+
|
|
85
|
+
- **Content-Type**: Not defined
|
|
86
|
+
- **Accept**: application/json
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
## get_pdf_receipt
|
|
90
|
+
|
|
91
|
+
> File get_pdf_receipt(x_fiscal_code, event_id, opts)
|
|
92
|
+
|
|
93
|
+
Retrieve the PDF receipt given event id.
|
|
94
|
+
|
|
95
|
+
This operation is deprecated. Use Paid Notice APIs instead
|
|
96
|
+
|
|
97
|
+
### Examples
|
|
98
|
+
|
|
99
|
+
```ruby
|
|
100
|
+
require 'time'
|
|
101
|
+
require 'biz_api'
|
|
102
|
+
# setup authorization
|
|
103
|
+
BizReceipts.configure do |config|
|
|
104
|
+
# Configure API key authorization: ApiKey
|
|
105
|
+
config.api_key['Ocp-Apim-Subscription-Key'] = 'YOUR API KEY'
|
|
106
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
107
|
+
# config.api_key_prefix['Ocp-Apim-Subscription-Key'] = 'Bearer'
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
api_instance = BizReceipts::IOTransactionsRESTAPIsApi.new
|
|
111
|
+
x_fiscal_code = 'x_fiscal_code_example' # String |
|
|
112
|
+
event_id = 'event_id_example' # String | The id of the event.
|
|
113
|
+
opts = {
|
|
114
|
+
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.
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
begin
|
|
118
|
+
# Retrieve the PDF receipt given event id.
|
|
119
|
+
result = api_instance.get_pdf_receipt(x_fiscal_code, event_id, opts)
|
|
120
|
+
p result
|
|
121
|
+
rescue BizReceipts::ApiError => e
|
|
122
|
+
puts "Error when calling IOTransactionsRESTAPIsApi->get_pdf_receipt: #{e}"
|
|
123
|
+
end
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
#### Using the get_pdf_receipt_with_http_info variant
|
|
127
|
+
|
|
128
|
+
This returns an Array which contains the response data, status code and headers.
|
|
129
|
+
|
|
130
|
+
> <Array(File, Integer, Hash)> get_pdf_receipt_with_http_info(x_fiscal_code, event_id, opts)
|
|
131
|
+
|
|
132
|
+
```ruby
|
|
133
|
+
begin
|
|
134
|
+
# Retrieve the PDF receipt given event id.
|
|
135
|
+
data, status_code, headers = api_instance.get_pdf_receipt_with_http_info(x_fiscal_code, event_id, opts)
|
|
136
|
+
p status_code # => 2xx
|
|
137
|
+
p headers # => { ... }
|
|
138
|
+
p data # => File
|
|
139
|
+
rescue BizReceipts::ApiError => e
|
|
140
|
+
puts "Error when calling IOTransactionsRESTAPIsApi->get_pdf_receipt_with_http_info: #{e}"
|
|
141
|
+
end
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Parameters
|
|
145
|
+
|
|
146
|
+
| Name | Type | Description | Notes |
|
|
147
|
+
| ---- | ---- | ----------- | ----- |
|
|
148
|
+
| **x_fiscal_code** | **String** | | |
|
|
149
|
+
| **event_id** | **String** | The id of the event. | |
|
|
150
|
+
| **x_request_id** | **String** | This header identifies the call, if not passed it is self-generated. This ID is returned in the response. | [optional] |
|
|
151
|
+
|
|
152
|
+
### Return type
|
|
153
|
+
|
|
154
|
+
**File**
|
|
155
|
+
|
|
156
|
+
### Authorization
|
|
157
|
+
|
|
158
|
+
[ApiKey](../README.md#ApiKey)
|
|
159
|
+
|
|
160
|
+
### HTTP request headers
|
|
161
|
+
|
|
162
|
+
- **Content-Type**: Not defined
|
|
163
|
+
- **Accept**: application/pdf, application/json
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
## get_transaction_details
|
|
167
|
+
|
|
168
|
+
> <TransactionDetailResponse> get_transaction_details(x_fiscal_code, transaction_id, opts)
|
|
169
|
+
|
|
170
|
+
Retrieve the transaction details given its id.
|
|
171
|
+
|
|
172
|
+
This operation is deprecated. Use Paid Notice APIs instead
|
|
173
|
+
|
|
174
|
+
### Examples
|
|
175
|
+
|
|
176
|
+
```ruby
|
|
177
|
+
require 'time'
|
|
178
|
+
require 'biz_api'
|
|
179
|
+
# setup authorization
|
|
180
|
+
BizReceipts.configure do |config|
|
|
181
|
+
# Configure API key authorization: ApiKey
|
|
182
|
+
config.api_key['Ocp-Apim-Subscription-Key'] = 'YOUR API KEY'
|
|
183
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
184
|
+
# config.api_key_prefix['Ocp-Apim-Subscription-Key'] = 'Bearer'
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
api_instance = BizReceipts::IOTransactionsRESTAPIsApi.new
|
|
188
|
+
x_fiscal_code = 'x_fiscal_code_example' # String |
|
|
189
|
+
transaction_id = 'transaction_id_example' # String | The id of the transaction.
|
|
190
|
+
opts = {
|
|
191
|
+
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.
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
begin
|
|
195
|
+
# Retrieve the transaction details given its id.
|
|
196
|
+
result = api_instance.get_transaction_details(x_fiscal_code, transaction_id, opts)
|
|
197
|
+
p result
|
|
198
|
+
rescue BizReceipts::ApiError => e
|
|
199
|
+
puts "Error when calling IOTransactionsRESTAPIsApi->get_transaction_details: #{e}"
|
|
200
|
+
end
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
#### Using the get_transaction_details_with_http_info variant
|
|
204
|
+
|
|
205
|
+
This returns an Array which contains the response data, status code and headers.
|
|
206
|
+
|
|
207
|
+
> <Array(<TransactionDetailResponse>, Integer, Hash)> get_transaction_details_with_http_info(x_fiscal_code, transaction_id, opts)
|
|
208
|
+
|
|
209
|
+
```ruby
|
|
210
|
+
begin
|
|
211
|
+
# Retrieve the transaction details given its id.
|
|
212
|
+
data, status_code, headers = api_instance.get_transaction_details_with_http_info(x_fiscal_code, transaction_id, opts)
|
|
213
|
+
p status_code # => 2xx
|
|
214
|
+
p headers # => { ... }
|
|
215
|
+
p data # => <TransactionDetailResponse>
|
|
216
|
+
rescue BizReceipts::ApiError => e
|
|
217
|
+
puts "Error when calling IOTransactionsRESTAPIsApi->get_transaction_details_with_http_info: #{e}"
|
|
218
|
+
end
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### Parameters
|
|
222
|
+
|
|
223
|
+
| Name | Type | Description | Notes |
|
|
224
|
+
| ---- | ---- | ----------- | ----- |
|
|
225
|
+
| **x_fiscal_code** | **String** | | |
|
|
226
|
+
| **transaction_id** | **String** | The id of the transaction. | |
|
|
227
|
+
| **x_request_id** | **String** | This header identifies the call, if not passed it is self-generated. This ID is returned in the response. | [optional] |
|
|
228
|
+
|
|
229
|
+
### Return type
|
|
230
|
+
|
|
231
|
+
[**TransactionDetailResponse**](TransactionDetailResponse.md)
|
|
232
|
+
|
|
233
|
+
### Authorization
|
|
234
|
+
|
|
235
|
+
[ApiKey](../README.md#ApiKey)
|
|
236
|
+
|
|
237
|
+
### HTTP request headers
|
|
238
|
+
|
|
239
|
+
- **Content-Type**: Not defined
|
|
240
|
+
- **Accept**: application/json
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
## get_transaction_list
|
|
244
|
+
|
|
245
|
+
> <TransactionListWrapResponse> get_transaction_list(x_fiscal_code, opts)
|
|
246
|
+
|
|
247
|
+
Retrieve the paged transaction list from biz events.
|
|
248
|
+
|
|
249
|
+
This operation is deprecated. Use Paid Notice APIs instead
|
|
250
|
+
|
|
251
|
+
### Examples
|
|
252
|
+
|
|
253
|
+
```ruby
|
|
254
|
+
require 'time'
|
|
255
|
+
require 'biz_api'
|
|
256
|
+
# setup authorization
|
|
257
|
+
BizReceipts.configure do |config|
|
|
258
|
+
# Configure API key authorization: ApiKey
|
|
259
|
+
config.api_key['Ocp-Apim-Subscription-Key'] = 'YOUR API KEY'
|
|
260
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
261
|
+
# config.api_key_prefix['Ocp-Apim-Subscription-Key'] = 'Bearer'
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
api_instance = BizReceipts::IOTransactionsRESTAPIsApi.new
|
|
265
|
+
x_fiscal_code = 'x_fiscal_code_example' # String |
|
|
266
|
+
opts = {
|
|
267
|
+
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.
|
|
268
|
+
is_payer: true, # Boolean | Filter by payer
|
|
269
|
+
is_debtor: true, # Boolean | Filter by debtor
|
|
270
|
+
x_continuation_token: 'x_continuation_token_example', # String |
|
|
271
|
+
size: 56, # Integer |
|
|
272
|
+
orderby: 'TRANSACTION_DATE', # String | Order by TRANSACTION_DATE
|
|
273
|
+
ordering: 'ASC' # String | Direction of ordering
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
begin
|
|
277
|
+
# Retrieve the paged transaction list from biz events.
|
|
278
|
+
result = api_instance.get_transaction_list(x_fiscal_code, opts)
|
|
279
|
+
p result
|
|
280
|
+
rescue BizReceipts::ApiError => e
|
|
281
|
+
puts "Error when calling IOTransactionsRESTAPIsApi->get_transaction_list: #{e}"
|
|
282
|
+
end
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
#### Using the get_transaction_list_with_http_info variant
|
|
286
|
+
|
|
287
|
+
This returns an Array which contains the response data, status code and headers.
|
|
288
|
+
|
|
289
|
+
> <Array(<TransactionListWrapResponse>, Integer, Hash)> get_transaction_list_with_http_info(x_fiscal_code, opts)
|
|
290
|
+
|
|
291
|
+
```ruby
|
|
292
|
+
begin
|
|
293
|
+
# Retrieve the paged transaction list from biz events.
|
|
294
|
+
data, status_code, headers = api_instance.get_transaction_list_with_http_info(x_fiscal_code, opts)
|
|
295
|
+
p status_code # => 2xx
|
|
296
|
+
p headers # => { ... }
|
|
297
|
+
p data # => <TransactionListWrapResponse>
|
|
298
|
+
rescue BizReceipts::ApiError => e
|
|
299
|
+
puts "Error when calling IOTransactionsRESTAPIsApi->get_transaction_list_with_http_info: #{e}"
|
|
300
|
+
end
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
### Parameters
|
|
304
|
+
|
|
305
|
+
| Name | Type | Description | Notes |
|
|
306
|
+
| ---- | ---- | ----------- | ----- |
|
|
307
|
+
| **x_fiscal_code** | **String** | | |
|
|
308
|
+
| **x_request_id** | **String** | This header identifies the call, if not passed it is self-generated. This ID is returned in the response. | [optional] |
|
|
309
|
+
| **is_payer** | **Boolean** | Filter by payer | [optional] |
|
|
310
|
+
| **is_debtor** | **Boolean** | Filter by debtor | [optional] |
|
|
311
|
+
| **x_continuation_token** | **String** | | [optional] |
|
|
312
|
+
| **size** | **Integer** | | [optional][default to 10] |
|
|
313
|
+
| **orderby** | **String** | Order by TRANSACTION_DATE | [optional][default to 'TRANSACTION_DATE'] |
|
|
314
|
+
| **ordering** | **String** | Direction of ordering | [optional][default to 'DESC'] |
|
|
315
|
+
|
|
316
|
+
### Return type
|
|
317
|
+
|
|
318
|
+
[**TransactionListWrapResponse**](TransactionListWrapResponse.md)
|
|
319
|
+
|
|
320
|
+
### Authorization
|
|
321
|
+
|
|
322
|
+
[ApiKey](../README.md#ApiKey)
|
|
323
|
+
|
|
324
|
+
### HTTP request headers
|
|
325
|
+
|
|
326
|
+
- **Content-Type**: Not defined
|
|
327
|
+
- **Accept**: application/json, */*
|
|
328
|
+
|
data/docs/Info.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# BizReceipts::Info
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **type** | **String** | | [optional] |
|
|
8
|
+
| **blurred_number** | **String** | | [optional] |
|
|
9
|
+
| **holder** | **String** | | [optional] |
|
|
10
|
+
| **expire_month** | **String** | | [optional] |
|
|
11
|
+
| **expire_year** | **String** | | [optional] |
|
|
12
|
+
| **brand** | **String** | | [optional] |
|
|
13
|
+
| **issuer_abi** | **String** | | [optional] |
|
|
14
|
+
| **issuer_name** | **String** | | [optional] |
|
|
15
|
+
| **label** | **String** | | [optional] |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'biz_api'
|
|
21
|
+
|
|
22
|
+
instance = BizReceipts::Info.new(
|
|
23
|
+
type: null,
|
|
24
|
+
blurred_number: null,
|
|
25
|
+
holder: null,
|
|
26
|
+
expire_month: null,
|
|
27
|
+
expire_year: null,
|
|
28
|
+
brand: null,
|
|
29
|
+
issuer_abi: null,
|
|
30
|
+
issuer_name: null,
|
|
31
|
+
label: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
data/docs/InfoNotice.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# BizReceipts::InfoNotice
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **event_id** | **String** | | |
|
|
8
|
+
| **auth_code** | **String** | | [optional] |
|
|
9
|
+
| **rrn** | **String** | | |
|
|
10
|
+
| **notice_date** | **String** | | |
|
|
11
|
+
| **psp_name** | **String** | | |
|
|
12
|
+
| **wallet_info** | [**WalletInfo**](WalletInfo.md) | | [optional] |
|
|
13
|
+
| **payment_method** | **String** | | [optional] |
|
|
14
|
+
| **payer** | [**UserDetail**](UserDetail.md) | | [optional] |
|
|
15
|
+
| **amount** | **String** | | |
|
|
16
|
+
| **fee** | **String** | | [optional] |
|
|
17
|
+
| **origin** | **String** | | |
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'biz_api'
|
|
23
|
+
|
|
24
|
+
instance = BizReceipts::InfoNotice.new(
|
|
25
|
+
event_id: null,
|
|
26
|
+
auth_code: null,
|
|
27
|
+
rrn: null,
|
|
28
|
+
notice_date: null,
|
|
29
|
+
psp_name: null,
|
|
30
|
+
wallet_info: null,
|
|
31
|
+
payment_method: null,
|
|
32
|
+
payer: null,
|
|
33
|
+
amount: null,
|
|
34
|
+
fee: null,
|
|
35
|
+
origin: null
|
|
36
|
+
)
|
|
37
|
+
```
|
|
38
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# BizReceipts::InfoTransaction
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **brand** | **String** | | [optional] |
|
|
8
|
+
| **brand_logo** | **String** | | [optional] |
|
|
9
|
+
| **client_id** | **String** | | [optional] |
|
|
10
|
+
| **payment_method_name** | **String** | | [optional] |
|
|
11
|
+
| **type** | **String** | | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'biz_api'
|
|
17
|
+
|
|
18
|
+
instance = BizReceipts::InfoTransaction.new(
|
|
19
|
+
brand: null,
|
|
20
|
+
brand_logo: null,
|
|
21
|
+
client_id: null,
|
|
22
|
+
payment_method_name: null,
|
|
23
|
+
type: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# BizReceipts::InfoTransactionView
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **transaction_id** | **String** | | [optional] |
|
|
8
|
+
| **auth_code** | **String** | | [optional] |
|
|
9
|
+
| **rrn** | **String** | | [optional] |
|
|
10
|
+
| **transaction_date** | **String** | | [optional] |
|
|
11
|
+
| **psp_name** | **String** | | [optional] |
|
|
12
|
+
| **wallet_info** | [**WalletInfo**](WalletInfo.md) | | [optional] |
|
|
13
|
+
| **payment_method** | **String** | | [optional] |
|
|
14
|
+
| **payer** | [**UserDetail**](UserDetail.md) | | [optional] |
|
|
15
|
+
| **amount** | **String** | | [optional] |
|
|
16
|
+
| **fee** | **String** | | [optional] |
|
|
17
|
+
| **origin** | **String** | | [optional] |
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'biz_api'
|
|
23
|
+
|
|
24
|
+
instance = BizReceipts::InfoTransactionView.new(
|
|
25
|
+
transaction_id: null,
|
|
26
|
+
auth_code: null,
|
|
27
|
+
rrn: null,
|
|
28
|
+
transaction_date: null,
|
|
29
|
+
psp_name: null,
|
|
30
|
+
wallet_info: null,
|
|
31
|
+
payment_method: null,
|
|
32
|
+
payer: null,
|
|
33
|
+
amount: null,
|
|
34
|
+
fee: null,
|
|
35
|
+
origin: null
|
|
36
|
+
)
|
|
37
|
+
```
|
|
38
|
+
|
data/docs/MBD.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# BizReceipts::MBD
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **iubd** | **String** | | [optional] |
|
|
8
|
+
| **ora_acquisto** | **String** | | [optional] |
|
|
9
|
+
| **importo** | **String** | | [optional] |
|
|
10
|
+
| **tipo_bollo** | **String** | | [optional] |
|
|
11
|
+
| **mbd_attachment** | **String** | | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'biz_api'
|
|
17
|
+
|
|
18
|
+
instance = BizReceipts::MBD.new(
|
|
19
|
+
iubd: null,
|
|
20
|
+
ora_acquisto: null,
|
|
21
|
+
importo: null,
|
|
22
|
+
tipo_bollo: null,
|
|
23
|
+
mbd_attachment: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
data/docs/MapEntry.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# BizReceipts::MapEntry
|
|
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 'biz_api'
|
|
14
|
+
|
|
15
|
+
instance = BizReceipts::MapEntry.new(
|
|
16
|
+
key: null,
|
|
17
|
+
value: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# BizReceipts::NoticeDetailResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **info_notice** | [**InfoNotice**](InfoNotice.md) | | [optional] |
|
|
8
|
+
| **carts** | [**Array<CartItem>**](CartItem.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'biz_api'
|
|
14
|
+
|
|
15
|
+
instance = BizReceipts::NoticeDetailResponse.new(
|
|
16
|
+
info_notice: null,
|
|
17
|
+
carts: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# BizReceipts::NoticeListItem
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **event_id** | **String** | | |
|
|
8
|
+
| **payee_name** | **String** | | [optional] |
|
|
9
|
+
| **payee_tax_code** | **String** | | |
|
|
10
|
+
| **amount** | **String** | | |
|
|
11
|
+
| **notice_date** | **String** | | |
|
|
12
|
+
| **is_cart** | **Boolean** | | |
|
|
13
|
+
| **is_payer** | **Boolean** | | |
|
|
14
|
+
| **is_debtor** | **Boolean** | | |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'biz_api'
|
|
20
|
+
|
|
21
|
+
instance = BizReceipts::NoticeListItem.new(
|
|
22
|
+
event_id: null,
|
|
23
|
+
payee_name: null,
|
|
24
|
+
payee_tax_code: null,
|
|
25
|
+
amount: null,
|
|
26
|
+
notice_date: null,
|
|
27
|
+
is_cart: null,
|
|
28
|
+
is_payer: null,
|
|
29
|
+
is_debtor: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# BizReceipts::NoticeListWrapResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **notices** | [**Array<NoticeListItem>**](NoticeListItem.md) | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'biz_api'
|
|
13
|
+
|
|
14
|
+
instance = BizReceipts::NoticeListWrapResponse.new(
|
|
15
|
+
notices: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|