payzu-pix 2.0.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 +231 -0
- data/Rakefile +10 -0
- data/docs/AccountApi.md +141 -0
- data/docs/ApiErrorDetailsInner.md +20 -0
- data/docs/BankStatement.md +42 -0
- data/docs/BankStatementListResponse.md +20 -0
- data/docs/BankStatementListResponsePagination.md +22 -0
- data/docs/CallbackDetail.md +34 -0
- data/docs/CallbackListResponse.md +20 -0
- data/docs/CallbackListResponsePagination.md +22 -0
- data/docs/CallbackSecretResponse.md +20 -0
- data/docs/CallbacksApi.md +587 -0
- data/docs/Defense.md +30 -0
- data/docs/DefenseFilesInner.md +24 -0
- data/docs/DefenseHistoryEntry.md +28 -0
- data/docs/DefenseHistoryEntryFilesInner.md +22 -0
- data/docs/DepositPending.md +62 -0
- data/docs/DepositPendingListResponse.md +24 -0
- data/docs/DictConsultResponse.md +30 -0
- data/docs/DownloadUserReport200Response.md +20 -0
- data/docs/EnqueuedCallback.md +18 -0
- data/docs/EnqueuedCallbackEnqueued.md +22 -0
- data/docs/EnqueuedCallbackItem.md +22 -0
- data/docs/ErrorResponse.md +32 -0
- data/docs/GetUser200Response.md +46 -0
- data/docs/GetUser200ResponseDailyWithdrawLimit.md +24 -0
- data/docs/GetUser200ResponseServiceFee.md +28 -0
- data/docs/GetUserBalance200Response.md +20 -0
- data/docs/GetUserTransactionById200Response.md +94 -0
- data/docs/GetUserTransactionById200ResponseAllOfCallbackLogInner.md +26 -0
- data/docs/GetUserTransactionById200ResponseAllOfInfractionInner.md +24 -0
- data/docs/GetUserTransactions200Response.md +22 -0
- data/docs/InfractionDetail.md +40 -0
- data/docs/InfractionDetailTransaction.md +30 -0
- data/docs/InfractionListResponse.md +20 -0
- data/docs/InfractionListResponsePagination.md +24 -0
- data/docs/InfractionsApi.md +413 -0
- data/docs/InternalTransferApi.md +153 -0
- data/docs/KeysAndDICTApi.md +217 -0
- data/docs/ListUserReports200Response.md +22 -0
- data/docs/PixKeyInfo.md +36 -0
- data/docs/PixOperationsApi.md +299 -0
- data/docs/PostInternalTransferRequest.md +30 -0
- data/docs/PostPixQrcodeReadRequest.md +18 -0
- data/docs/PostPixRequest.md +32 -0
- data/docs/PostUserReportRequest.md +24 -0
- data/docs/PostWithdrawQrcodeRequest.md +28 -0
- data/docs/PostWithdrawRequest.md +30 -0
- data/docs/ProofResponse.md +18 -0
- data/docs/QRCodeReadResponse.md +38 -0
- data/docs/Refund.md +34 -0
- data/docs/RefundRequest.md +22 -0
- data/docs/RefundsApi.md +79 -0
- data/docs/ReportJob.md +30 -0
- data/docs/ReportJobAccepted.md +30 -0
- data/docs/ReportJobDetail.md +30 -0
- data/docs/ReportsApi.md +881 -0
- data/docs/ResendUserCallbackSingle200Response.md +18 -0
- data/docs/ResendUserCallbacks200Response.md +20 -0
- data/docs/ResendUserCallbacksRequest.md +28 -0
- data/docs/ResendWebhookCallbacksRequest.md +30 -0
- data/docs/RotateCallbackSecretResponse.md +18 -0
- data/docs/RotateSecretResponse.md +18 -0
- data/docs/SentWebhookDetail.md +40 -0
- data/docs/SentWebhookDetailResponse.md +18 -0
- data/docs/SentWebhooksQuantity.md +18 -0
- data/docs/Summary.md +26 -0
- data/docs/SummaryBlock.md +24 -0
- data/docs/SummaryBlockGroupedInner.md +20 -0
- data/docs/SummaryBlockStatuses.md +26 -0
- data/docs/SummaryStatus.md +22 -0
- data/docs/Transaction.md +90 -0
- data/docs/TransactionWithRefunds.md +92 -0
- data/docs/Webhook.md +30 -0
- data/docs/WebhookCreateRequest.md +24 -0
- data/docs/WebhookEventType.md +15 -0
- data/docs/WebhookListResponse.md +18 -0
- data/docs/WebhookUpdateRequest.md +22 -0
- data/docs/WebhookWithSecret.md +32 -0
- data/docs/WebhooksApi.md +574 -0
- data/docs/WithdrawalsApi.md +299 -0
- data/git_push.sh +57 -0
- data/lib/payzu-pix/api/account_api.rb +136 -0
- data/lib/payzu-pix/api/callbacks_api.rb +577 -0
- data/lib/payzu-pix/api/infractions_api.rb +452 -0
- data/lib/payzu-pix/api/internal_transfer_api.rb +164 -0
- data/lib/payzu-pix/api/keys_and_dict_api.rb +234 -0
- data/lib/payzu-pix/api/pix_operations_api.rb +300 -0
- data/lib/payzu-pix/api/refunds_api.rb +96 -0
- data/lib/payzu-pix/api/reports_api.rb +968 -0
- data/lib/payzu-pix/api/webhooks_api.rb +542 -0
- data/lib/payzu-pix/api/withdrawals_api.rb +305 -0
- data/lib/payzu-pix/api_client.rb +441 -0
- data/lib/payzu-pix/api_error.rb +58 -0
- data/lib/payzu-pix/api_model_base.rb +88 -0
- data/lib/payzu-pix/configuration.rb +392 -0
- data/lib/payzu-pix/models/api_error_details_inner.rb +192 -0
- data/lib/payzu-pix/models/bank_statement.rb +296 -0
- data/lib/payzu-pix/models/bank_statement_list_response.rb +159 -0
- data/lib/payzu-pix/models/bank_statement_list_response_pagination.rb +169 -0
- data/lib/payzu-pix/models/callback_detail.rb +228 -0
- data/lib/payzu-pix/models/callback_list_response.rb +159 -0
- data/lib/payzu-pix/models/callback_list_response_pagination.rb +169 -0
- data/lib/payzu-pix/models/callback_secret_response.rb +158 -0
- data/lib/payzu-pix/models/defense.rb +234 -0
- data/lib/payzu-pix/models/defense_files_inner.rb +179 -0
- data/lib/payzu-pix/models/defense_history_entry.rb +225 -0
- data/lib/payzu-pix/models/defense_history_entry_files_inner.rb +168 -0
- data/lib/payzu-pix/models/deposit_pending.rb +407 -0
- data/lib/payzu-pix/models/deposit_pending_list_response.rb +180 -0
- data/lib/payzu-pix/models/dict_consult_response.rb +231 -0
- data/lib/payzu-pix/models/download_user_report200_response.rb +158 -0
- data/lib/payzu-pix/models/enqueued_callback.rb +147 -0
- data/lib/payzu-pix/models/enqueued_callback_enqueued.rb +170 -0
- data/lib/payzu-pix/models/enqueued_callback_item.rb +190 -0
- data/lib/payzu-pix/models/error_response.rb +336 -0
- data/lib/payzu-pix/models/get_user200_response.rb +334 -0
- data/lib/payzu-pix/models/get_user200_response_daily_withdraw_limit.rb +180 -0
- data/lib/payzu-pix/models/get_user200_response_service_fee.rb +199 -0
- data/lib/payzu-pix/models/get_user_balance200_response.rb +158 -0
- data/lib/payzu-pix/models/get_user_transaction_by_id200_response.rb +595 -0
- data/lib/payzu-pix/models/get_user_transaction_by_id200_response_all_of_callback_log_inner.rb +188 -0
- data/lib/payzu-pix/models/get_user_transaction_by_id200_response_all_of_infraction_inner.rb +202 -0
- data/lib/payzu-pix/models/get_user_transactions200_response.rb +170 -0
- data/lib/payzu-pix/models/infraction_detail.rb +293 -0
- data/lib/payzu-pix/models/infraction_detail_transaction.rb +213 -0
- data/lib/payzu-pix/models/infraction_list_response.rb +159 -0
- data/lib/payzu-pix/models/infraction_list_response_pagination.rb +179 -0
- data/lib/payzu-pix/models/list_user_reports200_response.rb +170 -0
- data/lib/payzu-pix/models/pix_key_info.rb +263 -0
- data/lib/payzu-pix/models/post_internal_transfer_request.rb +377 -0
- data/lib/payzu-pix/models/post_pix_qrcode_read_request.rb +174 -0
- data/lib/payzu-pix/models/post_pix_request.rb +382 -0
- data/lib/payzu-pix/models/post_user_report_request.rb +238 -0
- data/lib/payzu-pix/models/post_withdraw_qrcode_request.rb +302 -0
- data/lib/payzu-pix/models/post_withdraw_request.rb +350 -0
- data/lib/payzu-pix/models/proof_response.rb +148 -0
- data/lib/payzu-pix/models/qr_code_read_response.rb +283 -0
- data/lib/payzu-pix/models/refund.rb +257 -0
- data/lib/payzu-pix/models/refund_request.rb +215 -0
- data/lib/payzu-pix/models/report_job.rb +234 -0
- data/lib/payzu-pix/models/report_job_accepted.rb +237 -0
- data/lib/payzu-pix/models/report_job_detail.rb +237 -0
- data/lib/payzu-pix/models/resend_user_callback_single200_response.rb +148 -0
- data/lib/payzu-pix/models/resend_user_callbacks200_response.rb +158 -0
- data/lib/payzu-pix/models/resend_user_callbacks_request.rb +262 -0
- data/lib/payzu-pix/models/resend_webhook_callbacks_request.rb +274 -0
- data/lib/payzu-pix/models/rotate_callback_secret_response.rb +148 -0
- data/lib/payzu-pix/models/rotate_secret_response.rb +148 -0
- data/lib/payzu-pix/models/sent_webhook_detail.rb +261 -0
- data/lib/payzu-pix/models/sent_webhook_detail_response.rb +164 -0
- data/lib/payzu-pix/models/sent_webhooks_quantity.rb +148 -0
- data/lib/payzu-pix/models/summary.rb +188 -0
- data/lib/payzu-pix/models/summary_block.rb +179 -0
- data/lib/payzu-pix/models/summary_block_grouped_inner.rb +158 -0
- data/lib/payzu-pix/models/summary_block_statuses.rb +189 -0
- data/lib/payzu-pix/models/summary_status.rb +168 -0
- data/lib/payzu-pix/models/transaction.rb +588 -0
- data/lib/payzu-pix/models/transaction_with_refunds.rb +583 -0
- data/lib/payzu-pix/models/webhook.rb +210 -0
- data/lib/payzu-pix/models/webhook_create_request.rb +201 -0
- data/lib/payzu-pix/models/webhook_event_type.rb +47 -0
- data/lib/payzu-pix/models/webhook_list_response.rb +150 -0
- data/lib/payzu-pix/models/webhook_update_request.rb +171 -0
- data/lib/payzu-pix/models/webhook_with_secret.rb +220 -0
- data/lib/payzu-pix/version.rb +15 -0
- data/lib/payzu-pix.rb +119 -0
- data/payzu-pix.gemspec +41 -0
- data/spec/spec_helper.rb +111 -0
- metadata +283 -0
data/docs/ReportsApi.md
ADDED
|
@@ -0,0 +1,881 @@
|
|
|
1
|
+
# PayZuPix::ReportsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.payzu.processamento.com/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**download_user_report**](ReportsApi.md#download_user_report) | **POST** /user/report/{id}/download | Download report |
|
|
8
|
+
| [**get_user_bank_statement**](ReportsApi.md#get_user_bank_statement) | **GET** /user/bank-statements/{id} | Get bank statement |
|
|
9
|
+
| [**get_user_bank_statements**](ReportsApi.md#get_user_bank_statements) | **GET** /user/bank-statements | List bank statements |
|
|
10
|
+
| [**get_user_deposit_pending**](ReportsApi.md#get_user_deposit_pending) | **GET** /user/deposit-pending | List pending deposits |
|
|
11
|
+
| [**get_user_deposit_pending_by_id**](ReportsApi.md#get_user_deposit_pending_by_id) | **GET** /user/deposit-pending/{id} | Get pending deposit |
|
|
12
|
+
| [**get_user_report**](ReportsApi.md#get_user_report) | **GET** /user/report/{id} | Get report job status |
|
|
13
|
+
| [**get_user_summary**](ReportsApi.md#get_user_summary) | **GET** /user/summary | Transaction summary |
|
|
14
|
+
| [**get_user_transaction_by_id**](ReportsApi.md#get_user_transaction_by_id) | **GET** /user/transactions/{id} | List transaction details |
|
|
15
|
+
| [**get_user_transactions**](ReportsApi.md#get_user_transactions) | **GET** /user/transactions | List Transactions |
|
|
16
|
+
| [**list_user_reports**](ReportsApi.md#list_user_reports) | **GET** /user/report | List report jobs |
|
|
17
|
+
| [**post_user_report**](ReportsApi.md#post_user_report) | **POST** /user/report | Generate transactions report |
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## download_user_report
|
|
21
|
+
|
|
22
|
+
> <DownloadUserReport200Response> download_user_report(id)
|
|
23
|
+
|
|
24
|
+
Download report
|
|
25
|
+
|
|
26
|
+
Returns a short-lived signed URL to download the CSV file.
|
|
27
|
+
|
|
28
|
+
### Examples
|
|
29
|
+
|
|
30
|
+
```ruby
|
|
31
|
+
require 'time'
|
|
32
|
+
require 'payzu-pix'
|
|
33
|
+
# setup authorization
|
|
34
|
+
PayZuPix.configure do |config|
|
|
35
|
+
# Configure Bearer authorization: BearerAuth
|
|
36
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
api_instance = PayZuPix::ReportsApi.new
|
|
40
|
+
id = '01997c3a-8f21-7c4d-9e05-3b6a1d2f4c78' # String | Report ID.
|
|
41
|
+
|
|
42
|
+
begin
|
|
43
|
+
# Download report
|
|
44
|
+
result = api_instance.download_user_report(id)
|
|
45
|
+
p result
|
|
46
|
+
rescue PayZuPix::ApiError => e
|
|
47
|
+
puts "Error when calling ReportsApi->download_user_report: #{e}"
|
|
48
|
+
end
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
#### Using the download_user_report_with_http_info variant
|
|
52
|
+
|
|
53
|
+
This returns an Array which contains the response data, status code and headers.
|
|
54
|
+
|
|
55
|
+
> <Array(<DownloadUserReport200Response>, Integer, Hash)> download_user_report_with_http_info(id)
|
|
56
|
+
|
|
57
|
+
```ruby
|
|
58
|
+
begin
|
|
59
|
+
# Download report
|
|
60
|
+
data, status_code, headers = api_instance.download_user_report_with_http_info(id)
|
|
61
|
+
p status_code # => 2xx
|
|
62
|
+
p headers # => { ... }
|
|
63
|
+
p data # => <DownloadUserReport200Response>
|
|
64
|
+
rescue PayZuPix::ApiError => e
|
|
65
|
+
puts "Error when calling ReportsApi->download_user_report_with_http_info: #{e}"
|
|
66
|
+
end
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Parameters
|
|
70
|
+
|
|
71
|
+
| Name | Type | Description | Notes |
|
|
72
|
+
| ---- | ---- | ----------- | ----- |
|
|
73
|
+
| **id** | **String** | Report ID. | |
|
|
74
|
+
|
|
75
|
+
### Return type
|
|
76
|
+
|
|
77
|
+
[**DownloadUserReport200Response**](DownloadUserReport200Response.md)
|
|
78
|
+
|
|
79
|
+
### Authorization
|
|
80
|
+
|
|
81
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
82
|
+
|
|
83
|
+
### HTTP request headers
|
|
84
|
+
|
|
85
|
+
- **Content-Type**: Not defined
|
|
86
|
+
- **Accept**: application/json
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
## get_user_bank_statement
|
|
90
|
+
|
|
91
|
+
> <BankStatement> get_user_bank_statement(id)
|
|
92
|
+
|
|
93
|
+
Get bank statement
|
|
94
|
+
|
|
95
|
+
Returns a single statement entry.
|
|
96
|
+
|
|
97
|
+
### Examples
|
|
98
|
+
|
|
99
|
+
```ruby
|
|
100
|
+
require 'time'
|
|
101
|
+
require 'payzu-pix'
|
|
102
|
+
# setup authorization
|
|
103
|
+
PayZuPix.configure do |config|
|
|
104
|
+
# Configure Bearer authorization: BearerAuth
|
|
105
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
api_instance = PayZuPix::ReportsApi.new
|
|
109
|
+
id = 'cm3w7q8s10004q8f2k9f5b7eh' # String | Statement entry id.
|
|
110
|
+
|
|
111
|
+
begin
|
|
112
|
+
# Get bank statement
|
|
113
|
+
result = api_instance.get_user_bank_statement(id)
|
|
114
|
+
p result
|
|
115
|
+
rescue PayZuPix::ApiError => e
|
|
116
|
+
puts "Error when calling ReportsApi->get_user_bank_statement: #{e}"
|
|
117
|
+
end
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
#### Using the get_user_bank_statement_with_http_info variant
|
|
121
|
+
|
|
122
|
+
This returns an Array which contains the response data, status code and headers.
|
|
123
|
+
|
|
124
|
+
> <Array(<BankStatement>, Integer, Hash)> get_user_bank_statement_with_http_info(id)
|
|
125
|
+
|
|
126
|
+
```ruby
|
|
127
|
+
begin
|
|
128
|
+
# Get bank statement
|
|
129
|
+
data, status_code, headers = api_instance.get_user_bank_statement_with_http_info(id)
|
|
130
|
+
p status_code # => 2xx
|
|
131
|
+
p headers # => { ... }
|
|
132
|
+
p data # => <BankStatement>
|
|
133
|
+
rescue PayZuPix::ApiError => e
|
|
134
|
+
puts "Error when calling ReportsApi->get_user_bank_statement_with_http_info: #{e}"
|
|
135
|
+
end
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Parameters
|
|
139
|
+
|
|
140
|
+
| Name | Type | Description | Notes |
|
|
141
|
+
| ---- | ---- | ----------- | ----- |
|
|
142
|
+
| **id** | **String** | Statement entry id. | |
|
|
143
|
+
|
|
144
|
+
### Return type
|
|
145
|
+
|
|
146
|
+
[**BankStatement**](BankStatement.md)
|
|
147
|
+
|
|
148
|
+
### Authorization
|
|
149
|
+
|
|
150
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
151
|
+
|
|
152
|
+
### HTTP request headers
|
|
153
|
+
|
|
154
|
+
- **Content-Type**: Not defined
|
|
155
|
+
- **Accept**: application/json
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
## get_user_bank_statements
|
|
159
|
+
|
|
160
|
+
> <BankStatementListResponse> get_user_bank_statements(created_at_from, created_at_to, opts)
|
|
161
|
+
|
|
162
|
+
List bank statements
|
|
163
|
+
|
|
164
|
+
Lists the account statement entries. `createdAtFrom` and `createdAtTo` are required.
|
|
165
|
+
|
|
166
|
+
### Examples
|
|
167
|
+
|
|
168
|
+
```ruby
|
|
169
|
+
require 'time'
|
|
170
|
+
require 'payzu-pix'
|
|
171
|
+
# setup authorization
|
|
172
|
+
PayZuPix.configure do |config|
|
|
173
|
+
# Configure Bearer authorization: BearerAuth
|
|
174
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
api_instance = PayZuPix::ReportsApi.new
|
|
178
|
+
created_at_from = Time.parse('2026-08-01') # Time | Start date (required).
|
|
179
|
+
created_at_to = Time.parse('2026-08-31') # Time | End date (required).
|
|
180
|
+
opts = {
|
|
181
|
+
id: 'cm3w7q8s10004q8f2k9f5b7eh', # String | Entry ID.
|
|
182
|
+
operation: 'INCREMENT', # String | Operation type. `INCREMENT` `DECREMENT`
|
|
183
|
+
reason: 'Estorno', # String | Reason for the entry.
|
|
184
|
+
transaction_id: 'PAYZU20260814T6NX1CV9MK000000', # String | Transaction ID.
|
|
185
|
+
amount_from: 10.9, # Float | Minimum amount.
|
|
186
|
+
amount_to: 500, # Float | Maximum amount.
|
|
187
|
+
page: 56, # Integer | Page number.
|
|
188
|
+
limit: 56, # Integer | Items per page.
|
|
189
|
+
sort_by: 'createdAt', # String | Sort field.
|
|
190
|
+
sort_direction: 'asc' # String | Sort direction.
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
begin
|
|
194
|
+
# List bank statements
|
|
195
|
+
result = api_instance.get_user_bank_statements(created_at_from, created_at_to, opts)
|
|
196
|
+
p result
|
|
197
|
+
rescue PayZuPix::ApiError => e
|
|
198
|
+
puts "Error when calling ReportsApi->get_user_bank_statements: #{e}"
|
|
199
|
+
end
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
#### Using the get_user_bank_statements_with_http_info variant
|
|
203
|
+
|
|
204
|
+
This returns an Array which contains the response data, status code and headers.
|
|
205
|
+
|
|
206
|
+
> <Array(<BankStatementListResponse>, Integer, Hash)> get_user_bank_statements_with_http_info(created_at_from, created_at_to, opts)
|
|
207
|
+
|
|
208
|
+
```ruby
|
|
209
|
+
begin
|
|
210
|
+
# List bank statements
|
|
211
|
+
data, status_code, headers = api_instance.get_user_bank_statements_with_http_info(created_at_from, created_at_to, opts)
|
|
212
|
+
p status_code # => 2xx
|
|
213
|
+
p headers # => { ... }
|
|
214
|
+
p data # => <BankStatementListResponse>
|
|
215
|
+
rescue PayZuPix::ApiError => e
|
|
216
|
+
puts "Error when calling ReportsApi->get_user_bank_statements_with_http_info: #{e}"
|
|
217
|
+
end
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### Parameters
|
|
221
|
+
|
|
222
|
+
| Name | Type | Description | Notes |
|
|
223
|
+
| ---- | ---- | ----------- | ----- |
|
|
224
|
+
| **created_at_from** | **Time** | Start date (required). | |
|
|
225
|
+
| **created_at_to** | **Time** | End date (required). | |
|
|
226
|
+
| **id** | **String** | Entry ID. | [optional] |
|
|
227
|
+
| **operation** | **String** | Operation type. `INCREMENT` `DECREMENT` | [optional] |
|
|
228
|
+
| **reason** | **String** | Reason for the entry. | [optional] |
|
|
229
|
+
| **transaction_id** | **String** | Transaction ID. | [optional] |
|
|
230
|
+
| **amount_from** | **Float** | Minimum amount. | [optional] |
|
|
231
|
+
| **amount_to** | **Float** | Maximum amount. | [optional] |
|
|
232
|
+
| **page** | **Integer** | Page number. | [optional][default to 1] |
|
|
233
|
+
| **limit** | **Integer** | Items per page. | [optional][default to 10] |
|
|
234
|
+
| **sort_by** | **String** | Sort field. | [optional][default to 'createdAt'] |
|
|
235
|
+
| **sort_direction** | **String** | Sort direction. | [optional][default to 'desc'] |
|
|
236
|
+
|
|
237
|
+
### Return type
|
|
238
|
+
|
|
239
|
+
[**BankStatementListResponse**](BankStatementListResponse.md)
|
|
240
|
+
|
|
241
|
+
### Authorization
|
|
242
|
+
|
|
243
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
244
|
+
|
|
245
|
+
### HTTP request headers
|
|
246
|
+
|
|
247
|
+
- **Content-Type**: Not defined
|
|
248
|
+
- **Accept**: application/json
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
## get_user_deposit_pending
|
|
252
|
+
|
|
253
|
+
> <DepositPendingListResponse> get_user_deposit_pending(opts)
|
|
254
|
+
|
|
255
|
+
List pending deposits
|
|
256
|
+
|
|
257
|
+
Lists deposits that are pending / not yet reconciled.
|
|
258
|
+
|
|
259
|
+
### Examples
|
|
260
|
+
|
|
261
|
+
```ruby
|
|
262
|
+
require 'time'
|
|
263
|
+
require 'payzu-pix'
|
|
264
|
+
# setup authorization
|
|
265
|
+
PayZuPix.configure do |config|
|
|
266
|
+
# Configure Bearer authorization: BearerAuth
|
|
267
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
api_instance = PayZuPix::ReportsApi.new
|
|
271
|
+
opts = {
|
|
272
|
+
status: 'PENDING', # String | Comma-separated statuses: PENDING, APPROVED, REJECTED, EXPIRED, COMPLETED.
|
|
273
|
+
document: '12345678901', # String | CPF or CNPJ, digits only.
|
|
274
|
+
name: 'John Doe', # String | Name of the payer or receiver.
|
|
275
|
+
end_to_end_id: 'E00000000202508172159kZ8dQ2mNb1x', # String | End-to-end ID of the Pix.
|
|
276
|
+
amount_min: 10.9, # Float | Minimum amount.
|
|
277
|
+
amount_max: 500, # Float | Maximum amount.
|
|
278
|
+
created_at_from: Time.parse('2026-08-01'), # Time | Start of the creation date range.
|
|
279
|
+
created_at_to: Time.parse('2026-08-31'), # Time | End of the creation date range.
|
|
280
|
+
page: 56, # Integer | Page number.
|
|
281
|
+
limit: 56 # Integer | Items per page.
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
begin
|
|
285
|
+
# List pending deposits
|
|
286
|
+
result = api_instance.get_user_deposit_pending(opts)
|
|
287
|
+
p result
|
|
288
|
+
rescue PayZuPix::ApiError => e
|
|
289
|
+
puts "Error when calling ReportsApi->get_user_deposit_pending: #{e}"
|
|
290
|
+
end
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
#### Using the get_user_deposit_pending_with_http_info variant
|
|
294
|
+
|
|
295
|
+
This returns an Array which contains the response data, status code and headers.
|
|
296
|
+
|
|
297
|
+
> <Array(<DepositPendingListResponse>, Integer, Hash)> get_user_deposit_pending_with_http_info(opts)
|
|
298
|
+
|
|
299
|
+
```ruby
|
|
300
|
+
begin
|
|
301
|
+
# List pending deposits
|
|
302
|
+
data, status_code, headers = api_instance.get_user_deposit_pending_with_http_info(opts)
|
|
303
|
+
p status_code # => 2xx
|
|
304
|
+
p headers # => { ... }
|
|
305
|
+
p data # => <DepositPendingListResponse>
|
|
306
|
+
rescue PayZuPix::ApiError => e
|
|
307
|
+
puts "Error when calling ReportsApi->get_user_deposit_pending_with_http_info: #{e}"
|
|
308
|
+
end
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
### Parameters
|
|
312
|
+
|
|
313
|
+
| Name | Type | Description | Notes |
|
|
314
|
+
| ---- | ---- | ----------- | ----- |
|
|
315
|
+
| **status** | **String** | Comma-separated statuses: PENDING, APPROVED, REJECTED, EXPIRED, COMPLETED. | [optional] |
|
|
316
|
+
| **document** | **String** | CPF or CNPJ, digits only. | [optional] |
|
|
317
|
+
| **name** | **String** | Name of the payer or receiver. | [optional] |
|
|
318
|
+
| **end_to_end_id** | **String** | End-to-end ID of the Pix. | [optional] |
|
|
319
|
+
| **amount_min** | **Float** | Minimum amount. | [optional] |
|
|
320
|
+
| **amount_max** | **Float** | Maximum amount. | [optional] |
|
|
321
|
+
| **created_at_from** | **Time** | Start of the creation date range. | [optional] |
|
|
322
|
+
| **created_at_to** | **Time** | End of the creation date range. | [optional] |
|
|
323
|
+
| **page** | **Integer** | Page number. | [optional][default to 1] |
|
|
324
|
+
| **limit** | **Integer** | Items per page. | [optional][default to 20] |
|
|
325
|
+
|
|
326
|
+
### Return type
|
|
327
|
+
|
|
328
|
+
[**DepositPendingListResponse**](DepositPendingListResponse.md)
|
|
329
|
+
|
|
330
|
+
### Authorization
|
|
331
|
+
|
|
332
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
333
|
+
|
|
334
|
+
### HTTP request headers
|
|
335
|
+
|
|
336
|
+
- **Content-Type**: Not defined
|
|
337
|
+
- **Accept**: application/json
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
## get_user_deposit_pending_by_id
|
|
341
|
+
|
|
342
|
+
> <DepositPending> get_user_deposit_pending_by_id(id)
|
|
343
|
+
|
|
344
|
+
Get pending deposit
|
|
345
|
+
|
|
346
|
+
Returns a single pending deposit.
|
|
347
|
+
|
|
348
|
+
### Examples
|
|
349
|
+
|
|
350
|
+
```ruby
|
|
351
|
+
require 'time'
|
|
352
|
+
require 'payzu-pix'
|
|
353
|
+
# setup authorization
|
|
354
|
+
PayZuPix.configure do |config|
|
|
355
|
+
# Configure Bearer authorization: BearerAuth
|
|
356
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
api_instance = PayZuPix::ReportsApi.new
|
|
360
|
+
id = 'cm3w7r1u50005q8f2m1g6c8fj' # String | Pending deposit id.
|
|
361
|
+
|
|
362
|
+
begin
|
|
363
|
+
# Get pending deposit
|
|
364
|
+
result = api_instance.get_user_deposit_pending_by_id(id)
|
|
365
|
+
p result
|
|
366
|
+
rescue PayZuPix::ApiError => e
|
|
367
|
+
puts "Error when calling ReportsApi->get_user_deposit_pending_by_id: #{e}"
|
|
368
|
+
end
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
#### Using the get_user_deposit_pending_by_id_with_http_info variant
|
|
372
|
+
|
|
373
|
+
This returns an Array which contains the response data, status code and headers.
|
|
374
|
+
|
|
375
|
+
> <Array(<DepositPending>, Integer, Hash)> get_user_deposit_pending_by_id_with_http_info(id)
|
|
376
|
+
|
|
377
|
+
```ruby
|
|
378
|
+
begin
|
|
379
|
+
# Get pending deposit
|
|
380
|
+
data, status_code, headers = api_instance.get_user_deposit_pending_by_id_with_http_info(id)
|
|
381
|
+
p status_code # => 2xx
|
|
382
|
+
p headers # => { ... }
|
|
383
|
+
p data # => <DepositPending>
|
|
384
|
+
rescue PayZuPix::ApiError => e
|
|
385
|
+
puts "Error when calling ReportsApi->get_user_deposit_pending_by_id_with_http_info: #{e}"
|
|
386
|
+
end
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
### Parameters
|
|
390
|
+
|
|
391
|
+
| Name | Type | Description | Notes |
|
|
392
|
+
| ---- | ---- | ----------- | ----- |
|
|
393
|
+
| **id** | **String** | Pending deposit id. | |
|
|
394
|
+
|
|
395
|
+
### Return type
|
|
396
|
+
|
|
397
|
+
[**DepositPending**](DepositPending.md)
|
|
398
|
+
|
|
399
|
+
### Authorization
|
|
400
|
+
|
|
401
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
402
|
+
|
|
403
|
+
### HTTP request headers
|
|
404
|
+
|
|
405
|
+
- **Content-Type**: Not defined
|
|
406
|
+
- **Accept**: application/json
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
## get_user_report
|
|
410
|
+
|
|
411
|
+
> <ReportJobDetail> get_user_report(id)
|
|
412
|
+
|
|
413
|
+
Get report job status
|
|
414
|
+
|
|
415
|
+
Returns the status and metadata of a specific report job by `id`.
|
|
416
|
+
|
|
417
|
+
### Examples
|
|
418
|
+
|
|
419
|
+
```ruby
|
|
420
|
+
require 'time'
|
|
421
|
+
require 'payzu-pix'
|
|
422
|
+
# setup authorization
|
|
423
|
+
PayZuPix.configure do |config|
|
|
424
|
+
# Configure Bearer authorization: BearerAuth
|
|
425
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
api_instance = PayZuPix::ReportsApi.new
|
|
429
|
+
id = '01997c3a-8f21-7c4d-9e05-3b6a1d2f4c78' # String | Report ID.
|
|
430
|
+
|
|
431
|
+
begin
|
|
432
|
+
# Get report job status
|
|
433
|
+
result = api_instance.get_user_report(id)
|
|
434
|
+
p result
|
|
435
|
+
rescue PayZuPix::ApiError => e
|
|
436
|
+
puts "Error when calling ReportsApi->get_user_report: #{e}"
|
|
437
|
+
end
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
#### Using the get_user_report_with_http_info variant
|
|
441
|
+
|
|
442
|
+
This returns an Array which contains the response data, status code and headers.
|
|
443
|
+
|
|
444
|
+
> <Array(<ReportJobDetail>, Integer, Hash)> get_user_report_with_http_info(id)
|
|
445
|
+
|
|
446
|
+
```ruby
|
|
447
|
+
begin
|
|
448
|
+
# Get report job status
|
|
449
|
+
data, status_code, headers = api_instance.get_user_report_with_http_info(id)
|
|
450
|
+
p status_code # => 2xx
|
|
451
|
+
p headers # => { ... }
|
|
452
|
+
p data # => <ReportJobDetail>
|
|
453
|
+
rescue PayZuPix::ApiError => e
|
|
454
|
+
puts "Error when calling ReportsApi->get_user_report_with_http_info: #{e}"
|
|
455
|
+
end
|
|
456
|
+
```
|
|
457
|
+
|
|
458
|
+
### Parameters
|
|
459
|
+
|
|
460
|
+
| Name | Type | Description | Notes |
|
|
461
|
+
| ---- | ---- | ----------- | ----- |
|
|
462
|
+
| **id** | **String** | Report ID. | |
|
|
463
|
+
|
|
464
|
+
### Return type
|
|
465
|
+
|
|
466
|
+
[**ReportJobDetail**](ReportJobDetail.md)
|
|
467
|
+
|
|
468
|
+
### Authorization
|
|
469
|
+
|
|
470
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
471
|
+
|
|
472
|
+
### HTTP request headers
|
|
473
|
+
|
|
474
|
+
- **Content-Type**: Not defined
|
|
475
|
+
- **Accept**: application/json
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
## get_user_summary
|
|
479
|
+
|
|
480
|
+
> <Summary> get_user_summary(opts)
|
|
481
|
+
|
|
482
|
+
Transaction summary
|
|
483
|
+
|
|
484
|
+
Aggregated totals for deposits, withdrawals and commission over a period.
|
|
485
|
+
|
|
486
|
+
### Examples
|
|
487
|
+
|
|
488
|
+
```ruby
|
|
489
|
+
require 'time'
|
|
490
|
+
require 'payzu-pix'
|
|
491
|
+
# setup authorization
|
|
492
|
+
PayZuPix.configure do |config|
|
|
493
|
+
# Configure Bearer authorization: BearerAuth
|
|
494
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
api_instance = PayZuPix::ReportsApi.new
|
|
498
|
+
opts = {
|
|
499
|
+
date_from: Time.parse('2026-08-01'), # Time | Start date. Default: start of the previous day (America/Sao_Paulo).
|
|
500
|
+
date_to: Time.parse('2026-08-31'), # Time | End date. Default: now.
|
|
501
|
+
group_by: 'day', # String | Grouping applied to the transactions.
|
|
502
|
+
grouped: true # Boolean | When true, returns a series grouped by date.
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
begin
|
|
506
|
+
# Transaction summary
|
|
507
|
+
result = api_instance.get_user_summary(opts)
|
|
508
|
+
p result
|
|
509
|
+
rescue PayZuPix::ApiError => e
|
|
510
|
+
puts "Error when calling ReportsApi->get_user_summary: #{e}"
|
|
511
|
+
end
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
#### Using the get_user_summary_with_http_info variant
|
|
515
|
+
|
|
516
|
+
This returns an Array which contains the response data, status code and headers.
|
|
517
|
+
|
|
518
|
+
> <Array(<Summary>, Integer, Hash)> get_user_summary_with_http_info(opts)
|
|
519
|
+
|
|
520
|
+
```ruby
|
|
521
|
+
begin
|
|
522
|
+
# Transaction summary
|
|
523
|
+
data, status_code, headers = api_instance.get_user_summary_with_http_info(opts)
|
|
524
|
+
p status_code # => 2xx
|
|
525
|
+
p headers # => { ... }
|
|
526
|
+
p data # => <Summary>
|
|
527
|
+
rescue PayZuPix::ApiError => e
|
|
528
|
+
puts "Error when calling ReportsApi->get_user_summary_with_http_info: #{e}"
|
|
529
|
+
end
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
### Parameters
|
|
533
|
+
|
|
534
|
+
| Name | Type | Description | Notes |
|
|
535
|
+
| ---- | ---- | ----------- | ----- |
|
|
536
|
+
| **date_from** | **Time** | Start date. Default: start of the previous day (America/Sao_Paulo). | [optional] |
|
|
537
|
+
| **date_to** | **Time** | End date. Default: now. | [optional] |
|
|
538
|
+
| **group_by** | **String** | Grouping applied to the transactions. | [optional][default to 'day'] |
|
|
539
|
+
| **grouped** | **Boolean** | When true, returns a series grouped by date. | [optional] |
|
|
540
|
+
|
|
541
|
+
### Return type
|
|
542
|
+
|
|
543
|
+
[**Summary**](Summary.md)
|
|
544
|
+
|
|
545
|
+
### Authorization
|
|
546
|
+
|
|
547
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
548
|
+
|
|
549
|
+
### HTTP request headers
|
|
550
|
+
|
|
551
|
+
- **Content-Type**: Not defined
|
|
552
|
+
- **Accept**: application/json
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
## get_user_transaction_by_id
|
|
556
|
+
|
|
557
|
+
> <GetUserTransactionById200Response> get_user_transaction_by_id(id)
|
|
558
|
+
|
|
559
|
+
List transaction details
|
|
560
|
+
|
|
561
|
+
Retrieve a single transaction with its callback log and linked infractions.
|
|
562
|
+
|
|
563
|
+
### Examples
|
|
564
|
+
|
|
565
|
+
```ruby
|
|
566
|
+
require 'time'
|
|
567
|
+
require 'payzu-pix'
|
|
568
|
+
# setup authorization
|
|
569
|
+
PayZuPix.configure do |config|
|
|
570
|
+
# Configure Bearer authorization: BearerAuth
|
|
571
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
api_instance = PayZuPix::ReportsApi.new
|
|
575
|
+
id = 'PAYZU20260814T6NX1CV9MK000000' # String | Transaction ID.
|
|
576
|
+
|
|
577
|
+
begin
|
|
578
|
+
# List transaction details
|
|
579
|
+
result = api_instance.get_user_transaction_by_id(id)
|
|
580
|
+
p result
|
|
581
|
+
rescue PayZuPix::ApiError => e
|
|
582
|
+
puts "Error when calling ReportsApi->get_user_transaction_by_id: #{e}"
|
|
583
|
+
end
|
|
584
|
+
```
|
|
585
|
+
|
|
586
|
+
#### Using the get_user_transaction_by_id_with_http_info variant
|
|
587
|
+
|
|
588
|
+
This returns an Array which contains the response data, status code and headers.
|
|
589
|
+
|
|
590
|
+
> <Array(<GetUserTransactionById200Response>, Integer, Hash)> get_user_transaction_by_id_with_http_info(id)
|
|
591
|
+
|
|
592
|
+
```ruby
|
|
593
|
+
begin
|
|
594
|
+
# List transaction details
|
|
595
|
+
data, status_code, headers = api_instance.get_user_transaction_by_id_with_http_info(id)
|
|
596
|
+
p status_code # => 2xx
|
|
597
|
+
p headers # => { ... }
|
|
598
|
+
p data # => <GetUserTransactionById200Response>
|
|
599
|
+
rescue PayZuPix::ApiError => e
|
|
600
|
+
puts "Error when calling ReportsApi->get_user_transaction_by_id_with_http_info: #{e}"
|
|
601
|
+
end
|
|
602
|
+
```
|
|
603
|
+
|
|
604
|
+
### Parameters
|
|
605
|
+
|
|
606
|
+
| Name | Type | Description | Notes |
|
|
607
|
+
| ---- | ---- | ----------- | ----- |
|
|
608
|
+
| **id** | **String** | Transaction ID. | |
|
|
609
|
+
|
|
610
|
+
### Return type
|
|
611
|
+
|
|
612
|
+
[**GetUserTransactionById200Response**](GetUserTransactionById200Response.md)
|
|
613
|
+
|
|
614
|
+
### Authorization
|
|
615
|
+
|
|
616
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
617
|
+
|
|
618
|
+
### HTTP request headers
|
|
619
|
+
|
|
620
|
+
- **Content-Type**: Not defined
|
|
621
|
+
- **Accept**: application/json
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
## get_user_transactions
|
|
625
|
+
|
|
626
|
+
> <GetUserTransactions200Response> get_user_transactions(opts)
|
|
627
|
+
|
|
628
|
+
List Transactions
|
|
629
|
+
|
|
630
|
+
Paginated list of account transactions with filters.
|
|
631
|
+
|
|
632
|
+
### Examples
|
|
633
|
+
|
|
634
|
+
```ruby
|
|
635
|
+
require 'time'
|
|
636
|
+
require 'payzu-pix'
|
|
637
|
+
# setup authorization
|
|
638
|
+
PayZuPix.configure do |config|
|
|
639
|
+
# Configure Bearer authorization: BearerAuth
|
|
640
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
641
|
+
end
|
|
642
|
+
|
|
643
|
+
api_instance = PayZuPix::ReportsApi.new
|
|
644
|
+
opts = {
|
|
645
|
+
date_from: Time.parse('2026-08-01'), # Time | Start date or date-time (ISO 8601).
|
|
646
|
+
date_to: Time.parse('2026-08-31'), # Time | End date or date-time (ISO 8601). A date without time means 00:00 UTC of that day.
|
|
647
|
+
limit: 10, # Integer | Items per page (max 1000).
|
|
648
|
+
page: 1, # Integer | Page number (default 1).
|
|
649
|
+
id: 'PAYZU20260814T6NX1CV9MK000000', # String | Transaction ID.
|
|
650
|
+
status: 'COMPLETED', # String | Transaction status. Accepts CSV: PENDING,COMPLETED,etc.
|
|
651
|
+
type: 'DEPOSIT', # String | Transaction type. Accepts CSV: DEPOSIT,WITHDRAW,COMMISSION,LIQUIDATION,ADJUSTMENT.
|
|
652
|
+
method: 'PIX', # String | Transaction method/rail. Accepts CSV: PIX,INTERNAL_TRANSFER.
|
|
653
|
+
amount: 15000, # Float | Amount filter. Minimum 0.01.
|
|
654
|
+
document: '12345678901', # String | CPF (11 digits) or CNPJ (14 digits), digits only, no punctuation.
|
|
655
|
+
name: 'Alice', # String | Name filter.
|
|
656
|
+
end_to_end_id: 'E00000000202508172159kZ8dQ2mNb1x', # String | Pix end-to-end ID.
|
|
657
|
+
sort_by: 'createdAt', # String | Field to sort by
|
|
658
|
+
sort_direction: 'asc', # String | Sort direction
|
|
659
|
+
client_reference: 'order_12345', # String | Filter by external reference
|
|
660
|
+
virtual_account: 'loja-centro-01', # String | Virtual sub-account (up to 50 characters) used at creation. Accepted as an alternative lookup key.
|
|
661
|
+
has_qr_code: true # Boolean | Only transactions with (true) or without (false) QR Code.
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
begin
|
|
665
|
+
# List Transactions
|
|
666
|
+
result = api_instance.get_user_transactions(opts)
|
|
667
|
+
p result
|
|
668
|
+
rescue PayZuPix::ApiError => e
|
|
669
|
+
puts "Error when calling ReportsApi->get_user_transactions: #{e}"
|
|
670
|
+
end
|
|
671
|
+
```
|
|
672
|
+
|
|
673
|
+
#### Using the get_user_transactions_with_http_info variant
|
|
674
|
+
|
|
675
|
+
This returns an Array which contains the response data, status code and headers.
|
|
676
|
+
|
|
677
|
+
> <Array(<GetUserTransactions200Response>, Integer, Hash)> get_user_transactions_with_http_info(opts)
|
|
678
|
+
|
|
679
|
+
```ruby
|
|
680
|
+
begin
|
|
681
|
+
# List Transactions
|
|
682
|
+
data, status_code, headers = api_instance.get_user_transactions_with_http_info(opts)
|
|
683
|
+
p status_code # => 2xx
|
|
684
|
+
p headers # => { ... }
|
|
685
|
+
p data # => <GetUserTransactions200Response>
|
|
686
|
+
rescue PayZuPix::ApiError => e
|
|
687
|
+
puts "Error when calling ReportsApi->get_user_transactions_with_http_info: #{e}"
|
|
688
|
+
end
|
|
689
|
+
```
|
|
690
|
+
|
|
691
|
+
### Parameters
|
|
692
|
+
|
|
693
|
+
| Name | Type | Description | Notes |
|
|
694
|
+
| ---- | ---- | ----------- | ----- |
|
|
695
|
+
| **date_from** | **Time** | Start date or date-time (ISO 8601). | [optional] |
|
|
696
|
+
| **date_to** | **Time** | End date or date-time (ISO 8601). A date without time means 00:00 UTC of that day. | [optional] |
|
|
697
|
+
| **limit** | **Integer** | Items per page (max 1000). | [optional][default to 10] |
|
|
698
|
+
| **page** | **Integer** | Page number (default 1). | [optional][default to 1] |
|
|
699
|
+
| **id** | **String** | Transaction ID. | [optional] |
|
|
700
|
+
| **status** | **String** | Transaction status. Accepts CSV: PENDING,COMPLETED,etc. | [optional] |
|
|
701
|
+
| **type** | **String** | Transaction type. Accepts CSV: DEPOSIT,WITHDRAW,COMMISSION,LIQUIDATION,ADJUSTMENT. | [optional] |
|
|
702
|
+
| **method** | **String** | Transaction method/rail. Accepts CSV: PIX,INTERNAL_TRANSFER. | [optional] |
|
|
703
|
+
| **amount** | **Float** | Amount filter. Minimum 0.01. | [optional] |
|
|
704
|
+
| **document** | **String** | CPF (11 digits) or CNPJ (14 digits), digits only, no punctuation. | [optional] |
|
|
705
|
+
| **name** | **String** | Name filter. | [optional] |
|
|
706
|
+
| **end_to_end_id** | **String** | Pix end-to-end ID. | [optional] |
|
|
707
|
+
| **sort_by** | **String** | Field to sort by | [optional][default to 'createdAt'] |
|
|
708
|
+
| **sort_direction** | **String** | Sort direction | [optional][default to 'desc'] |
|
|
709
|
+
| **client_reference** | **String** | Filter by external reference | [optional] |
|
|
710
|
+
| **virtual_account** | **String** | Virtual sub-account (up to 50 characters) used at creation. Accepted as an alternative lookup key. | [optional] |
|
|
711
|
+
| **has_qr_code** | **Boolean** | Only transactions with (true) or without (false) QR Code. | [optional] |
|
|
712
|
+
|
|
713
|
+
### Return type
|
|
714
|
+
|
|
715
|
+
[**GetUserTransactions200Response**](GetUserTransactions200Response.md)
|
|
716
|
+
|
|
717
|
+
### Authorization
|
|
718
|
+
|
|
719
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
720
|
+
|
|
721
|
+
### HTTP request headers
|
|
722
|
+
|
|
723
|
+
- **Content-Type**: Not defined
|
|
724
|
+
- **Accept**: application/json
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
## list_user_reports
|
|
728
|
+
|
|
729
|
+
> <ListUserReports200Response> list_user_reports(opts)
|
|
730
|
+
|
|
731
|
+
List report jobs
|
|
732
|
+
|
|
733
|
+
List report jobs created by the authenticated user.
|
|
734
|
+
|
|
735
|
+
### Examples
|
|
736
|
+
|
|
737
|
+
```ruby
|
|
738
|
+
require 'time'
|
|
739
|
+
require 'payzu-pix'
|
|
740
|
+
# setup authorization
|
|
741
|
+
PayZuPix.configure do |config|
|
|
742
|
+
# Configure Bearer authorization: BearerAuth
|
|
743
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
744
|
+
end
|
|
745
|
+
|
|
746
|
+
api_instance = PayZuPix::ReportsApi.new
|
|
747
|
+
opts = {
|
|
748
|
+
page: 56, # Integer | Page number.
|
|
749
|
+
limit: 56, # Integer | Items per page.
|
|
750
|
+
status: 'COMPLETED,FAILED', # String | Report status. Accepts CSV: PENDING,RUNNING,COMPLETED,FAILED.
|
|
751
|
+
created_at_from: Time.parse('2026-08-01'), # Time | Filter: created from.
|
|
752
|
+
created_at_to: Time.parse('2026-08-31'), # Time | Filter: created up to.
|
|
753
|
+
updated_at_from: Time.parse('2026-08-01'), # Time | Filter: updated from.
|
|
754
|
+
updated_at_to: Time.parse('2026-08-31'), # Time | Filter: updated up to.
|
|
755
|
+
sort_by: 'createdAt', # String | Sort field.
|
|
756
|
+
sort_direction: 'asc' # String | Sort direction.
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
begin
|
|
760
|
+
# List report jobs
|
|
761
|
+
result = api_instance.list_user_reports(opts)
|
|
762
|
+
p result
|
|
763
|
+
rescue PayZuPix::ApiError => e
|
|
764
|
+
puts "Error when calling ReportsApi->list_user_reports: #{e}"
|
|
765
|
+
end
|
|
766
|
+
```
|
|
767
|
+
|
|
768
|
+
#### Using the list_user_reports_with_http_info variant
|
|
769
|
+
|
|
770
|
+
This returns an Array which contains the response data, status code and headers.
|
|
771
|
+
|
|
772
|
+
> <Array(<ListUserReports200Response>, Integer, Hash)> list_user_reports_with_http_info(opts)
|
|
773
|
+
|
|
774
|
+
```ruby
|
|
775
|
+
begin
|
|
776
|
+
# List report jobs
|
|
777
|
+
data, status_code, headers = api_instance.list_user_reports_with_http_info(opts)
|
|
778
|
+
p status_code # => 2xx
|
|
779
|
+
p headers # => { ... }
|
|
780
|
+
p data # => <ListUserReports200Response>
|
|
781
|
+
rescue PayZuPix::ApiError => e
|
|
782
|
+
puts "Error when calling ReportsApi->list_user_reports_with_http_info: #{e}"
|
|
783
|
+
end
|
|
784
|
+
```
|
|
785
|
+
|
|
786
|
+
### Parameters
|
|
787
|
+
|
|
788
|
+
| Name | Type | Description | Notes |
|
|
789
|
+
| ---- | ---- | ----------- | ----- |
|
|
790
|
+
| **page** | **Integer** | Page number. | [optional][default to 1] |
|
|
791
|
+
| **limit** | **Integer** | Items per page. | [optional][default to 10] |
|
|
792
|
+
| **status** | **String** | Report status. Accepts CSV: PENDING,RUNNING,COMPLETED,FAILED. | [optional] |
|
|
793
|
+
| **created_at_from** | **Time** | Filter: created from. | [optional] |
|
|
794
|
+
| **created_at_to** | **Time** | Filter: created up to. | [optional] |
|
|
795
|
+
| **updated_at_from** | **Time** | Filter: updated from. | [optional] |
|
|
796
|
+
| **updated_at_to** | **Time** | Filter: updated up to. | [optional] |
|
|
797
|
+
| **sort_by** | **String** | Sort field. | [optional][default to 'createdAt'] |
|
|
798
|
+
| **sort_direction** | **String** | Sort direction. | [optional][default to 'desc'] |
|
|
799
|
+
|
|
800
|
+
### Return type
|
|
801
|
+
|
|
802
|
+
[**ListUserReports200Response**](ListUserReports200Response.md)
|
|
803
|
+
|
|
804
|
+
### Authorization
|
|
805
|
+
|
|
806
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
807
|
+
|
|
808
|
+
### HTTP request headers
|
|
809
|
+
|
|
810
|
+
- **Content-Type**: Not defined
|
|
811
|
+
- **Accept**: application/json
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
## post_user_report
|
|
815
|
+
|
|
816
|
+
> <ReportJobAccepted> post_user_report(post_user_report_request)
|
|
817
|
+
|
|
818
|
+
Generate transactions report
|
|
819
|
+
|
|
820
|
+
Queue an asynchronous job that generates a CSV report of transactions for the given period and filters.
|
|
821
|
+
|
|
822
|
+
### Examples
|
|
823
|
+
|
|
824
|
+
```ruby
|
|
825
|
+
require 'time'
|
|
826
|
+
require 'payzu-pix'
|
|
827
|
+
# setup authorization
|
|
828
|
+
PayZuPix.configure do |config|
|
|
829
|
+
# Configure Bearer authorization: BearerAuth
|
|
830
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
api_instance = PayZuPix::ReportsApi.new
|
|
834
|
+
post_user_report_request = PayZuPix::PostUserReportRequest.new({date_from: Time.parse('2026-07-01T00:00:00Z'), date_to: Time.parse('2026-07-31T23:59:59Z')}) # PostUserReportRequest |
|
|
835
|
+
|
|
836
|
+
begin
|
|
837
|
+
# Generate transactions report
|
|
838
|
+
result = api_instance.post_user_report(post_user_report_request)
|
|
839
|
+
p result
|
|
840
|
+
rescue PayZuPix::ApiError => e
|
|
841
|
+
puts "Error when calling ReportsApi->post_user_report: #{e}"
|
|
842
|
+
end
|
|
843
|
+
```
|
|
844
|
+
|
|
845
|
+
#### Using the post_user_report_with_http_info variant
|
|
846
|
+
|
|
847
|
+
This returns an Array which contains the response data, status code and headers.
|
|
848
|
+
|
|
849
|
+
> <Array(<ReportJobAccepted>, Integer, Hash)> post_user_report_with_http_info(post_user_report_request)
|
|
850
|
+
|
|
851
|
+
```ruby
|
|
852
|
+
begin
|
|
853
|
+
# Generate transactions report
|
|
854
|
+
data, status_code, headers = api_instance.post_user_report_with_http_info(post_user_report_request)
|
|
855
|
+
p status_code # => 2xx
|
|
856
|
+
p headers # => { ... }
|
|
857
|
+
p data # => <ReportJobAccepted>
|
|
858
|
+
rescue PayZuPix::ApiError => e
|
|
859
|
+
puts "Error when calling ReportsApi->post_user_report_with_http_info: #{e}"
|
|
860
|
+
end
|
|
861
|
+
```
|
|
862
|
+
|
|
863
|
+
### Parameters
|
|
864
|
+
|
|
865
|
+
| Name | Type | Description | Notes |
|
|
866
|
+
| ---- | ---- | ----------- | ----- |
|
|
867
|
+
| **post_user_report_request** | [**PostUserReportRequest**](PostUserReportRequest.md) | | |
|
|
868
|
+
|
|
869
|
+
### Return type
|
|
870
|
+
|
|
871
|
+
[**ReportJobAccepted**](ReportJobAccepted.md)
|
|
872
|
+
|
|
873
|
+
### Authorization
|
|
874
|
+
|
|
875
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
876
|
+
|
|
877
|
+
### HTTP request headers
|
|
878
|
+
|
|
879
|
+
- **Content-Type**: application/json
|
|
880
|
+
- **Accept**: application/json
|
|
881
|
+
|