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
|
@@ -0,0 +1,587 @@
|
|
|
1
|
+
# PayZuPix::CallbacksApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.payzu.processamento.com/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**create_user_callback_secret**](CallbacksApi.md#create_user_callback_secret) | **POST** /user/callbacks/secret | Create callback secret |
|
|
8
|
+
| [**get_user_callback_by_id**](CallbacksApi.md#get_user_callback_by_id) | **GET** /user/callbacks/{id} | Get Callback |
|
|
9
|
+
| [**get_user_callbacks**](CallbacksApi.md#get_user_callbacks) | **GET** /user/callbacks | List Callbacks |
|
|
10
|
+
| [**resend_user_callback_single**](CallbacksApi.md#resend_user_callback_single) | **POST** /user/callbacks/resend/{transactionId} | Re-send callback (single) |
|
|
11
|
+
| [**resend_user_callbacks**](CallbacksApi.md#resend_user_callbacks) | **POST** /user/callbacks/resend | Re-send callbacks (bulk) |
|
|
12
|
+
| [**resend_user_callbacks_webhook**](CallbacksApi.md#resend_user_callbacks_webhook) | **POST** /user/callbacks/resend/webhook/{webhookId} | Resend callbacks by webhook |
|
|
13
|
+
| [**resend_user_callbacks_webhooks**](CallbacksApi.md#resend_user_callbacks_webhooks) | **POST** /user/callbacks/resend/webhook | Resend webhook callbacks by filters |
|
|
14
|
+
| [**rotate_user_callback_secret**](CallbacksApi.md#rotate_user_callback_secret) | **PATCH** /user/callbacks/secret/rotate | Rotate callback secret |
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## create_user_callback_secret
|
|
18
|
+
|
|
19
|
+
> <CallbackSecretResponse> create_user_callback_secret
|
|
20
|
+
|
|
21
|
+
Create callback secret
|
|
22
|
+
|
|
23
|
+
Creates the account callback secret, used to sign deliveries sent to the transaction callbackUrl. The secret is returned once and cannot be read again.
|
|
24
|
+
|
|
25
|
+
### Examples
|
|
26
|
+
|
|
27
|
+
```ruby
|
|
28
|
+
require 'time'
|
|
29
|
+
require 'payzu-pix'
|
|
30
|
+
# setup authorization
|
|
31
|
+
PayZuPix.configure do |config|
|
|
32
|
+
# Configure Bearer authorization: BearerAuth
|
|
33
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
api_instance = PayZuPix::CallbacksApi.new
|
|
37
|
+
|
|
38
|
+
begin
|
|
39
|
+
# Create callback secret
|
|
40
|
+
result = api_instance.create_user_callback_secret
|
|
41
|
+
p result
|
|
42
|
+
rescue PayZuPix::ApiError => e
|
|
43
|
+
puts "Error when calling CallbacksApi->create_user_callback_secret: #{e}"
|
|
44
|
+
end
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
#### Using the create_user_callback_secret_with_http_info variant
|
|
48
|
+
|
|
49
|
+
This returns an Array which contains the response data, status code and headers.
|
|
50
|
+
|
|
51
|
+
> <Array(<CallbackSecretResponse>, Integer, Hash)> create_user_callback_secret_with_http_info
|
|
52
|
+
|
|
53
|
+
```ruby
|
|
54
|
+
begin
|
|
55
|
+
# Create callback secret
|
|
56
|
+
data, status_code, headers = api_instance.create_user_callback_secret_with_http_info
|
|
57
|
+
p status_code # => 2xx
|
|
58
|
+
p headers # => { ... }
|
|
59
|
+
p data # => <CallbackSecretResponse>
|
|
60
|
+
rescue PayZuPix::ApiError => e
|
|
61
|
+
puts "Error when calling CallbacksApi->create_user_callback_secret_with_http_info: #{e}"
|
|
62
|
+
end
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Parameters
|
|
66
|
+
|
|
67
|
+
This endpoint does not need any parameter.
|
|
68
|
+
|
|
69
|
+
### Return type
|
|
70
|
+
|
|
71
|
+
[**CallbackSecretResponse**](CallbackSecretResponse.md)
|
|
72
|
+
|
|
73
|
+
### Authorization
|
|
74
|
+
|
|
75
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
76
|
+
|
|
77
|
+
### HTTP request headers
|
|
78
|
+
|
|
79
|
+
- **Content-Type**: Not defined
|
|
80
|
+
- **Accept**: application/json
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
## get_user_callback_by_id
|
|
84
|
+
|
|
85
|
+
> <CallbackDetail> get_user_callback_by_id(id)
|
|
86
|
+
|
|
87
|
+
Get Callback
|
|
88
|
+
|
|
89
|
+
Returns the details of a specific callback log.
|
|
90
|
+
|
|
91
|
+
### Examples
|
|
92
|
+
|
|
93
|
+
```ruby
|
|
94
|
+
require 'time'
|
|
95
|
+
require 'payzu-pix'
|
|
96
|
+
# setup authorization
|
|
97
|
+
PayZuPix.configure do |config|
|
|
98
|
+
# Configure Bearer authorization: BearerAuth
|
|
99
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
api_instance = PayZuPix::CallbacksApi.new
|
|
103
|
+
id = 'cm3w7l9v20001q8f2u6c1y4be' # String | Unique callback ID
|
|
104
|
+
|
|
105
|
+
begin
|
|
106
|
+
# Get Callback
|
|
107
|
+
result = api_instance.get_user_callback_by_id(id)
|
|
108
|
+
p result
|
|
109
|
+
rescue PayZuPix::ApiError => e
|
|
110
|
+
puts "Error when calling CallbacksApi->get_user_callback_by_id: #{e}"
|
|
111
|
+
end
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
#### Using the get_user_callback_by_id_with_http_info variant
|
|
115
|
+
|
|
116
|
+
This returns an Array which contains the response data, status code and headers.
|
|
117
|
+
|
|
118
|
+
> <Array(<CallbackDetail>, Integer, Hash)> get_user_callback_by_id_with_http_info(id)
|
|
119
|
+
|
|
120
|
+
```ruby
|
|
121
|
+
begin
|
|
122
|
+
# Get Callback
|
|
123
|
+
data, status_code, headers = api_instance.get_user_callback_by_id_with_http_info(id)
|
|
124
|
+
p status_code # => 2xx
|
|
125
|
+
p headers # => { ... }
|
|
126
|
+
p data # => <CallbackDetail>
|
|
127
|
+
rescue PayZuPix::ApiError => e
|
|
128
|
+
puts "Error when calling CallbacksApi->get_user_callback_by_id_with_http_info: #{e}"
|
|
129
|
+
end
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Parameters
|
|
133
|
+
|
|
134
|
+
| Name | Type | Description | Notes |
|
|
135
|
+
| ---- | ---- | ----------- | ----- |
|
|
136
|
+
| **id** | **String** | Unique callback ID | |
|
|
137
|
+
|
|
138
|
+
### Return type
|
|
139
|
+
|
|
140
|
+
[**CallbackDetail**](CallbackDetail.md)
|
|
141
|
+
|
|
142
|
+
### Authorization
|
|
143
|
+
|
|
144
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
145
|
+
|
|
146
|
+
### HTTP request headers
|
|
147
|
+
|
|
148
|
+
- **Content-Type**: Not defined
|
|
149
|
+
- **Accept**: application/json
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
## get_user_callbacks
|
|
153
|
+
|
|
154
|
+
> <CallbackListResponse> get_user_callbacks(opts)
|
|
155
|
+
|
|
156
|
+
List Callbacks
|
|
157
|
+
|
|
158
|
+
Returns a paginated list of webhook callback logs for the user's transactions.
|
|
159
|
+
|
|
160
|
+
### Examples
|
|
161
|
+
|
|
162
|
+
```ruby
|
|
163
|
+
require 'time'
|
|
164
|
+
require 'payzu-pix'
|
|
165
|
+
# setup authorization
|
|
166
|
+
PayZuPix.configure do |config|
|
|
167
|
+
# Configure Bearer authorization: BearerAuth
|
|
168
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
api_instance = PayZuPix::CallbacksApi.new
|
|
172
|
+
opts = {
|
|
173
|
+
page: 56, # Integer | Page number.
|
|
174
|
+
limit: 56, # Integer | Items per page.
|
|
175
|
+
sort_by: 'createdAt', # String | Sort field.
|
|
176
|
+
sort_direction: 'asc', # String | Sort direction.
|
|
177
|
+
id: 'cm3w7l9v20001q8f2u6c1y4be', # String | Filter by callback ID
|
|
178
|
+
url: 'https://webhook.cool/', # String | Filter by callback URL
|
|
179
|
+
status: 200, # Integer | HTTP status code
|
|
180
|
+
transaction_id: 'PAYZU20260814T6NX1CV9MK000000', # String | Transaction ID.
|
|
181
|
+
has_error: true, # Boolean | Filter callbacks that errored
|
|
182
|
+
created_at_from: Time.parse('2026-08-01'), # Time | Start of the creation date range.
|
|
183
|
+
created_at_to: Time.parse('2026-08-31'), # Time | End of the creation date range.
|
|
184
|
+
webhook_id: 'webhook_id_example', # String | Webhook id.
|
|
185
|
+
event_type: PayZuPix::WebhookEventType::TRANSACTION_PENDING # WebhookEventType | Webhook event type.
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
begin
|
|
189
|
+
# List Callbacks
|
|
190
|
+
result = api_instance.get_user_callbacks(opts)
|
|
191
|
+
p result
|
|
192
|
+
rescue PayZuPix::ApiError => e
|
|
193
|
+
puts "Error when calling CallbacksApi->get_user_callbacks: #{e}"
|
|
194
|
+
end
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
#### Using the get_user_callbacks_with_http_info variant
|
|
198
|
+
|
|
199
|
+
This returns an Array which contains the response data, status code and headers.
|
|
200
|
+
|
|
201
|
+
> <Array(<CallbackListResponse>, Integer, Hash)> get_user_callbacks_with_http_info(opts)
|
|
202
|
+
|
|
203
|
+
```ruby
|
|
204
|
+
begin
|
|
205
|
+
# List Callbacks
|
|
206
|
+
data, status_code, headers = api_instance.get_user_callbacks_with_http_info(opts)
|
|
207
|
+
p status_code # => 2xx
|
|
208
|
+
p headers # => { ... }
|
|
209
|
+
p data # => <CallbackListResponse>
|
|
210
|
+
rescue PayZuPix::ApiError => e
|
|
211
|
+
puts "Error when calling CallbacksApi->get_user_callbacks_with_http_info: #{e}"
|
|
212
|
+
end
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Parameters
|
|
216
|
+
|
|
217
|
+
| Name | Type | Description | Notes |
|
|
218
|
+
| ---- | ---- | ----------- | ----- |
|
|
219
|
+
| **page** | **Integer** | Page number. | [optional][default to 1] |
|
|
220
|
+
| **limit** | **Integer** | Items per page. | [optional][default to 10] |
|
|
221
|
+
| **sort_by** | **String** | Sort field. | [optional][default to 'createdAt'] |
|
|
222
|
+
| **sort_direction** | **String** | Sort direction. | [optional][default to 'desc'] |
|
|
223
|
+
| **id** | **String** | Filter by callback ID | [optional] |
|
|
224
|
+
| **url** | **String** | Filter by callback URL | [optional] |
|
|
225
|
+
| **status** | **Integer** | HTTP status code | [optional] |
|
|
226
|
+
| **transaction_id** | **String** | Transaction ID. | [optional] |
|
|
227
|
+
| **has_error** | **Boolean** | Filter callbacks that errored | [optional] |
|
|
228
|
+
| **created_at_from** | **Time** | Start of the creation date range. | [optional] |
|
|
229
|
+
| **created_at_to** | **Time** | End of the creation date range. | [optional] |
|
|
230
|
+
| **webhook_id** | **String** | Webhook id. | [optional] |
|
|
231
|
+
| **event_type** | [**WebhookEventType**](.md) | Webhook event type. | [optional] |
|
|
232
|
+
|
|
233
|
+
### Return type
|
|
234
|
+
|
|
235
|
+
[**CallbackListResponse**](CallbackListResponse.md)
|
|
236
|
+
|
|
237
|
+
### Authorization
|
|
238
|
+
|
|
239
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
240
|
+
|
|
241
|
+
### HTTP request headers
|
|
242
|
+
|
|
243
|
+
- **Content-Type**: Not defined
|
|
244
|
+
- **Accept**: application/json
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
## resend_user_callback_single
|
|
248
|
+
|
|
249
|
+
> <ResendUserCallbackSingle200Response> resend_user_callback_single(transaction_id)
|
|
250
|
+
|
|
251
|
+
Re-send callback (single)
|
|
252
|
+
|
|
253
|
+
Resend the callback of a single transaction.
|
|
254
|
+
|
|
255
|
+
### Examples
|
|
256
|
+
|
|
257
|
+
```ruby
|
|
258
|
+
require 'time'
|
|
259
|
+
require 'payzu-pix'
|
|
260
|
+
# setup authorization
|
|
261
|
+
PayZuPix.configure do |config|
|
|
262
|
+
# Configure Bearer authorization: BearerAuth
|
|
263
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
api_instance = PayZuPix::CallbacksApi.new
|
|
267
|
+
transaction_id = 'PAYZU20260814T6NX1CV9MK000000' # String | Transaction ID.
|
|
268
|
+
|
|
269
|
+
begin
|
|
270
|
+
# Re-send callback (single)
|
|
271
|
+
result = api_instance.resend_user_callback_single(transaction_id)
|
|
272
|
+
p result
|
|
273
|
+
rescue PayZuPix::ApiError => e
|
|
274
|
+
puts "Error when calling CallbacksApi->resend_user_callback_single: #{e}"
|
|
275
|
+
end
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
#### Using the resend_user_callback_single_with_http_info variant
|
|
279
|
+
|
|
280
|
+
This returns an Array which contains the response data, status code and headers.
|
|
281
|
+
|
|
282
|
+
> <Array(<ResendUserCallbackSingle200Response>, Integer, Hash)> resend_user_callback_single_with_http_info(transaction_id)
|
|
283
|
+
|
|
284
|
+
```ruby
|
|
285
|
+
begin
|
|
286
|
+
# Re-send callback (single)
|
|
287
|
+
data, status_code, headers = api_instance.resend_user_callback_single_with_http_info(transaction_id)
|
|
288
|
+
p status_code # => 2xx
|
|
289
|
+
p headers # => { ... }
|
|
290
|
+
p data # => <ResendUserCallbackSingle200Response>
|
|
291
|
+
rescue PayZuPix::ApiError => e
|
|
292
|
+
puts "Error when calling CallbacksApi->resend_user_callback_single_with_http_info: #{e}"
|
|
293
|
+
end
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
### Parameters
|
|
297
|
+
|
|
298
|
+
| Name | Type | Description | Notes |
|
|
299
|
+
| ---- | ---- | ----------- | ----- |
|
|
300
|
+
| **transaction_id** | **String** | Transaction ID. | |
|
|
301
|
+
|
|
302
|
+
### Return type
|
|
303
|
+
|
|
304
|
+
[**ResendUserCallbackSingle200Response**](ResendUserCallbackSingle200Response.md)
|
|
305
|
+
|
|
306
|
+
### Authorization
|
|
307
|
+
|
|
308
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
309
|
+
|
|
310
|
+
### HTTP request headers
|
|
311
|
+
|
|
312
|
+
- **Content-Type**: Not defined
|
|
313
|
+
- **Accept**: application/json
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
## resend_user_callbacks
|
|
317
|
+
|
|
318
|
+
> <ResendUserCallbacks200Response> resend_user_callbacks(resend_user_callbacks_request)
|
|
319
|
+
|
|
320
|
+
Re-send callbacks (bulk)
|
|
321
|
+
|
|
322
|
+
Resend callbacks in bulk for transactions matching the given filters.
|
|
323
|
+
|
|
324
|
+
### Examples
|
|
325
|
+
|
|
326
|
+
```ruby
|
|
327
|
+
require 'time'
|
|
328
|
+
require 'payzu-pix'
|
|
329
|
+
# setup authorization
|
|
330
|
+
PayZuPix.configure do |config|
|
|
331
|
+
# Configure Bearer authorization: BearerAuth
|
|
332
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
api_instance = PayZuPix::CallbacksApi.new
|
|
336
|
+
resend_user_callbacks_request = PayZuPix::ResendUserCallbacksRequest.new({created_at_from: Time.parse('2026-08-05T00:00:00Z'), created_at_to: Time.parse('2026-08-11T23:59:59Z')}) # ResendUserCallbacksRequest |
|
|
337
|
+
|
|
338
|
+
begin
|
|
339
|
+
# Re-send callbacks (bulk)
|
|
340
|
+
result = api_instance.resend_user_callbacks(resend_user_callbacks_request)
|
|
341
|
+
p result
|
|
342
|
+
rescue PayZuPix::ApiError => e
|
|
343
|
+
puts "Error when calling CallbacksApi->resend_user_callbacks: #{e}"
|
|
344
|
+
end
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
#### Using the resend_user_callbacks_with_http_info variant
|
|
348
|
+
|
|
349
|
+
This returns an Array which contains the response data, status code and headers.
|
|
350
|
+
|
|
351
|
+
> <Array(<ResendUserCallbacks200Response>, Integer, Hash)> resend_user_callbacks_with_http_info(resend_user_callbacks_request)
|
|
352
|
+
|
|
353
|
+
```ruby
|
|
354
|
+
begin
|
|
355
|
+
# Re-send callbacks (bulk)
|
|
356
|
+
data, status_code, headers = api_instance.resend_user_callbacks_with_http_info(resend_user_callbacks_request)
|
|
357
|
+
p status_code # => 2xx
|
|
358
|
+
p headers # => { ... }
|
|
359
|
+
p data # => <ResendUserCallbacks200Response>
|
|
360
|
+
rescue PayZuPix::ApiError => e
|
|
361
|
+
puts "Error when calling CallbacksApi->resend_user_callbacks_with_http_info: #{e}"
|
|
362
|
+
end
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
### Parameters
|
|
366
|
+
|
|
367
|
+
| Name | Type | Description | Notes |
|
|
368
|
+
| ---- | ---- | ----------- | ----- |
|
|
369
|
+
| **resend_user_callbacks_request** | [**ResendUserCallbacksRequest**](ResendUserCallbacksRequest.md) | | |
|
|
370
|
+
|
|
371
|
+
### Return type
|
|
372
|
+
|
|
373
|
+
[**ResendUserCallbacks200Response**](ResendUserCallbacks200Response.md)
|
|
374
|
+
|
|
375
|
+
### Authorization
|
|
376
|
+
|
|
377
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
378
|
+
|
|
379
|
+
### HTTP request headers
|
|
380
|
+
|
|
381
|
+
- **Content-Type**: application/json
|
|
382
|
+
- **Accept**: application/json
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
## resend_user_callbacks_webhook
|
|
386
|
+
|
|
387
|
+
> <EnqueuedCallback> resend_user_callbacks_webhook(webhook_id)
|
|
388
|
+
|
|
389
|
+
Resend callbacks by webhook
|
|
390
|
+
|
|
391
|
+
Queues a bulk resend of the failed callbacks of a given webhook.
|
|
392
|
+
|
|
393
|
+
### Examples
|
|
394
|
+
|
|
395
|
+
```ruby
|
|
396
|
+
require 'time'
|
|
397
|
+
require 'payzu-pix'
|
|
398
|
+
# setup authorization
|
|
399
|
+
PayZuPix.configure do |config|
|
|
400
|
+
# Configure Bearer authorization: BearerAuth
|
|
401
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
api_instance = PayZuPix::CallbacksApi.new
|
|
405
|
+
webhook_id = 'cm3w7k1t40000q8f2r5b9x3ad' # String | Webhook id.
|
|
406
|
+
|
|
407
|
+
begin
|
|
408
|
+
# Resend callbacks by webhook
|
|
409
|
+
result = api_instance.resend_user_callbacks_webhook(webhook_id)
|
|
410
|
+
p result
|
|
411
|
+
rescue PayZuPix::ApiError => e
|
|
412
|
+
puts "Error when calling CallbacksApi->resend_user_callbacks_webhook: #{e}"
|
|
413
|
+
end
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
#### Using the resend_user_callbacks_webhook_with_http_info variant
|
|
417
|
+
|
|
418
|
+
This returns an Array which contains the response data, status code and headers.
|
|
419
|
+
|
|
420
|
+
> <Array(<EnqueuedCallback>, Integer, Hash)> resend_user_callbacks_webhook_with_http_info(webhook_id)
|
|
421
|
+
|
|
422
|
+
```ruby
|
|
423
|
+
begin
|
|
424
|
+
# Resend callbacks by webhook
|
|
425
|
+
data, status_code, headers = api_instance.resend_user_callbacks_webhook_with_http_info(webhook_id)
|
|
426
|
+
p status_code # => 2xx
|
|
427
|
+
p headers # => { ... }
|
|
428
|
+
p data # => <EnqueuedCallback>
|
|
429
|
+
rescue PayZuPix::ApiError => e
|
|
430
|
+
puts "Error when calling CallbacksApi->resend_user_callbacks_webhook_with_http_info: #{e}"
|
|
431
|
+
end
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
### Parameters
|
|
435
|
+
|
|
436
|
+
| Name | Type | Description | Notes |
|
|
437
|
+
| ---- | ---- | ----------- | ----- |
|
|
438
|
+
| **webhook_id** | **String** | Webhook id. | |
|
|
439
|
+
|
|
440
|
+
### Return type
|
|
441
|
+
|
|
442
|
+
[**EnqueuedCallback**](EnqueuedCallback.md)
|
|
443
|
+
|
|
444
|
+
### Authorization
|
|
445
|
+
|
|
446
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
447
|
+
|
|
448
|
+
### HTTP request headers
|
|
449
|
+
|
|
450
|
+
- **Content-Type**: Not defined
|
|
451
|
+
- **Accept**: application/json
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
## resend_user_callbacks_webhooks
|
|
455
|
+
|
|
456
|
+
> <EnqueuedCallback> resend_user_callbacks_webhooks(resend_webhook_callbacks_request)
|
|
457
|
+
|
|
458
|
+
Resend webhook callbacks by filters
|
|
459
|
+
|
|
460
|
+
Queues the resend of failed webhook deliveries in a period. For each webhook, transaction and event, only the last delivery attempt in the period counts, and it is resent only when it failed. The filters apply to the transactions of those deliveries.
|
|
461
|
+
|
|
462
|
+
### Examples
|
|
463
|
+
|
|
464
|
+
```ruby
|
|
465
|
+
require 'time'
|
|
466
|
+
require 'payzu-pix'
|
|
467
|
+
# setup authorization
|
|
468
|
+
PayZuPix.configure do |config|
|
|
469
|
+
# Configure Bearer authorization: BearerAuth
|
|
470
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
api_instance = PayZuPix::CallbacksApi.new
|
|
474
|
+
resend_webhook_callbacks_request = PayZuPix::ResendWebhookCallbacksRequest.new({created_at_from: Time.parse('2026-08-05T00:00:00Z'), created_at_to: Time.parse('2026-08-11T23:59:59Z')}) # ResendWebhookCallbacksRequest |
|
|
475
|
+
|
|
476
|
+
begin
|
|
477
|
+
# Resend webhook callbacks by filters
|
|
478
|
+
result = api_instance.resend_user_callbacks_webhooks(resend_webhook_callbacks_request)
|
|
479
|
+
p result
|
|
480
|
+
rescue PayZuPix::ApiError => e
|
|
481
|
+
puts "Error when calling CallbacksApi->resend_user_callbacks_webhooks: #{e}"
|
|
482
|
+
end
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
#### Using the resend_user_callbacks_webhooks_with_http_info variant
|
|
486
|
+
|
|
487
|
+
This returns an Array which contains the response data, status code and headers.
|
|
488
|
+
|
|
489
|
+
> <Array(<EnqueuedCallback>, Integer, Hash)> resend_user_callbacks_webhooks_with_http_info(resend_webhook_callbacks_request)
|
|
490
|
+
|
|
491
|
+
```ruby
|
|
492
|
+
begin
|
|
493
|
+
# Resend webhook callbacks by filters
|
|
494
|
+
data, status_code, headers = api_instance.resend_user_callbacks_webhooks_with_http_info(resend_webhook_callbacks_request)
|
|
495
|
+
p status_code # => 2xx
|
|
496
|
+
p headers # => { ... }
|
|
497
|
+
p data # => <EnqueuedCallback>
|
|
498
|
+
rescue PayZuPix::ApiError => e
|
|
499
|
+
puts "Error when calling CallbacksApi->resend_user_callbacks_webhooks_with_http_info: #{e}"
|
|
500
|
+
end
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
### Parameters
|
|
504
|
+
|
|
505
|
+
| Name | Type | Description | Notes |
|
|
506
|
+
| ---- | ---- | ----------- | ----- |
|
|
507
|
+
| **resend_webhook_callbacks_request** | [**ResendWebhookCallbacksRequest**](ResendWebhookCallbacksRequest.md) | | |
|
|
508
|
+
|
|
509
|
+
### Return type
|
|
510
|
+
|
|
511
|
+
[**EnqueuedCallback**](EnqueuedCallback.md)
|
|
512
|
+
|
|
513
|
+
### Authorization
|
|
514
|
+
|
|
515
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
516
|
+
|
|
517
|
+
### HTTP request headers
|
|
518
|
+
|
|
519
|
+
- **Content-Type**: application/json
|
|
520
|
+
- **Accept**: application/json
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
## rotate_user_callback_secret
|
|
524
|
+
|
|
525
|
+
> <RotateCallbackSecretResponse> rotate_user_callback_secret
|
|
526
|
+
|
|
527
|
+
Rotate callback secret
|
|
528
|
+
|
|
529
|
+
Replaces the account callback secret. Deliveries start being signed with the new secret right away.
|
|
530
|
+
|
|
531
|
+
### Examples
|
|
532
|
+
|
|
533
|
+
```ruby
|
|
534
|
+
require 'time'
|
|
535
|
+
require 'payzu-pix'
|
|
536
|
+
# setup authorization
|
|
537
|
+
PayZuPix.configure do |config|
|
|
538
|
+
# Configure Bearer authorization: BearerAuth
|
|
539
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
540
|
+
end
|
|
541
|
+
|
|
542
|
+
api_instance = PayZuPix::CallbacksApi.new
|
|
543
|
+
|
|
544
|
+
begin
|
|
545
|
+
# Rotate callback secret
|
|
546
|
+
result = api_instance.rotate_user_callback_secret
|
|
547
|
+
p result
|
|
548
|
+
rescue PayZuPix::ApiError => e
|
|
549
|
+
puts "Error when calling CallbacksApi->rotate_user_callback_secret: #{e}"
|
|
550
|
+
end
|
|
551
|
+
```
|
|
552
|
+
|
|
553
|
+
#### Using the rotate_user_callback_secret_with_http_info variant
|
|
554
|
+
|
|
555
|
+
This returns an Array which contains the response data, status code and headers.
|
|
556
|
+
|
|
557
|
+
> <Array(<RotateCallbackSecretResponse>, Integer, Hash)> rotate_user_callback_secret_with_http_info
|
|
558
|
+
|
|
559
|
+
```ruby
|
|
560
|
+
begin
|
|
561
|
+
# Rotate callback secret
|
|
562
|
+
data, status_code, headers = api_instance.rotate_user_callback_secret_with_http_info
|
|
563
|
+
p status_code # => 2xx
|
|
564
|
+
p headers # => { ... }
|
|
565
|
+
p data # => <RotateCallbackSecretResponse>
|
|
566
|
+
rescue PayZuPix::ApiError => e
|
|
567
|
+
puts "Error when calling CallbacksApi->rotate_user_callback_secret_with_http_info: #{e}"
|
|
568
|
+
end
|
|
569
|
+
```
|
|
570
|
+
|
|
571
|
+
### Parameters
|
|
572
|
+
|
|
573
|
+
This endpoint does not need any parameter.
|
|
574
|
+
|
|
575
|
+
### Return type
|
|
576
|
+
|
|
577
|
+
[**RotateCallbackSecretResponse**](RotateCallbackSecretResponse.md)
|
|
578
|
+
|
|
579
|
+
### Authorization
|
|
580
|
+
|
|
581
|
+
[BearerAuth](../README.md#BearerAuth)
|
|
582
|
+
|
|
583
|
+
### HTTP request headers
|
|
584
|
+
|
|
585
|
+
- **Content-Type**: Not defined
|
|
586
|
+
- **Accept**: application/json
|
|
587
|
+
|
data/docs/Defense.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# PayZuPix::Defense
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | Defense identifier. | [optional] |
|
|
8
|
+
| **defense** | **String** | Defense text | [optional] |
|
|
9
|
+
| **status** | **String** | Defense status | [optional] |
|
|
10
|
+
| **infraction_id** | **String** | Identifies the infraction the defense belongs to. | [optional] |
|
|
11
|
+
| **created_at** | **Time** | Moment the defense was recorded at PayZu, saved together with the uploaded files. | [optional] |
|
|
12
|
+
| **updated_at** | **Time** | Moment of the last change to the defense. | [optional] |
|
|
13
|
+
| **files** | [**Array<DefenseFilesInner>**](DefenseFilesInner.md) | Files sent with the defense, with name, type and size in bytes. | [optional] |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'payzu-pix'
|
|
19
|
+
|
|
20
|
+
instance = PayZuPix::Defense.new(
|
|
21
|
+
id: null,
|
|
22
|
+
defense: null,
|
|
23
|
+
status: null,
|
|
24
|
+
infraction_id: null,
|
|
25
|
+
created_at: null,
|
|
26
|
+
updated_at: null,
|
|
27
|
+
files: null
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# PayZuPix::DefenseFilesInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | Name of the file sent with the defense. | [optional] |
|
|
8
|
+
| **mime_type** | **String** | MIME type of the file, provided on upload, for example application/pdf or image/png. | [optional] |
|
|
9
|
+
| **size** | **Integer** | Size of the file in bytes. | [optional] |
|
|
10
|
+
| **url** | **String** | Signed download URL, valid for 9 minutes; null when unavailable. Returned when creating the defense and when fetching a single defense. | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'payzu-pix'
|
|
16
|
+
|
|
17
|
+
instance = PayZuPix::DefenseFilesInner.new(
|
|
18
|
+
name: null,
|
|
19
|
+
mime_type: null,
|
|
20
|
+
size: null,
|
|
21
|
+
url: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# PayZuPix::DefenseHistoryEntry
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | Defense identifier. | [optional] |
|
|
8
|
+
| **defense** | **String** | Defense text | [optional] |
|
|
9
|
+
| **status** | **String** | Defense status | [optional] |
|
|
10
|
+
| **created_at** | **Time** | Moment the defense was recorded at PayZu, saved together with the uploaded files. | [optional] |
|
|
11
|
+
| **updated_at** | **Time** | Moment of the last change to the defense. | [optional] |
|
|
12
|
+
| **files** | [**Array<DefenseHistoryEntryFilesInner>**](DefenseHistoryEntryFilesInner.md) | Files sent with the defense, with name, type and size in bytes. | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'payzu-pix'
|
|
18
|
+
|
|
19
|
+
instance = PayZuPix::DefenseHistoryEntry.new(
|
|
20
|
+
id: null,
|
|
21
|
+
defense: null,
|
|
22
|
+
status: null,
|
|
23
|
+
created_at: null,
|
|
24
|
+
updated_at: null,
|
|
25
|
+
files: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# PayZuPix::DefenseHistoryEntryFilesInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | Name of the file sent with the defense. | [optional] |
|
|
8
|
+
| **mime_type** | **String** | MIME type of the file, provided on upload, for example application/pdf or image/png. | [optional] |
|
|
9
|
+
| **size** | **Integer** | Size of the file in bytes. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'payzu-pix'
|
|
15
|
+
|
|
16
|
+
instance = PayZuPix::DefenseHistoryEntryFilesInner.new(
|
|
17
|
+
name: null,
|
|
18
|
+
mime_type: null,
|
|
19
|
+
size: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|