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.
Files changed (172) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +231 -0
  4. data/Rakefile +10 -0
  5. data/docs/AccountApi.md +141 -0
  6. data/docs/ApiErrorDetailsInner.md +20 -0
  7. data/docs/BankStatement.md +42 -0
  8. data/docs/BankStatementListResponse.md +20 -0
  9. data/docs/BankStatementListResponsePagination.md +22 -0
  10. data/docs/CallbackDetail.md +34 -0
  11. data/docs/CallbackListResponse.md +20 -0
  12. data/docs/CallbackListResponsePagination.md +22 -0
  13. data/docs/CallbackSecretResponse.md +20 -0
  14. data/docs/CallbacksApi.md +587 -0
  15. data/docs/Defense.md +30 -0
  16. data/docs/DefenseFilesInner.md +24 -0
  17. data/docs/DefenseHistoryEntry.md +28 -0
  18. data/docs/DefenseHistoryEntryFilesInner.md +22 -0
  19. data/docs/DepositPending.md +62 -0
  20. data/docs/DepositPendingListResponse.md +24 -0
  21. data/docs/DictConsultResponse.md +30 -0
  22. data/docs/DownloadUserReport200Response.md +20 -0
  23. data/docs/EnqueuedCallback.md +18 -0
  24. data/docs/EnqueuedCallbackEnqueued.md +22 -0
  25. data/docs/EnqueuedCallbackItem.md +22 -0
  26. data/docs/ErrorResponse.md +32 -0
  27. data/docs/GetUser200Response.md +46 -0
  28. data/docs/GetUser200ResponseDailyWithdrawLimit.md +24 -0
  29. data/docs/GetUser200ResponseServiceFee.md +28 -0
  30. data/docs/GetUserBalance200Response.md +20 -0
  31. data/docs/GetUserTransactionById200Response.md +94 -0
  32. data/docs/GetUserTransactionById200ResponseAllOfCallbackLogInner.md +26 -0
  33. data/docs/GetUserTransactionById200ResponseAllOfInfractionInner.md +24 -0
  34. data/docs/GetUserTransactions200Response.md +22 -0
  35. data/docs/InfractionDetail.md +40 -0
  36. data/docs/InfractionDetailTransaction.md +30 -0
  37. data/docs/InfractionListResponse.md +20 -0
  38. data/docs/InfractionListResponsePagination.md +24 -0
  39. data/docs/InfractionsApi.md +413 -0
  40. data/docs/InternalTransferApi.md +153 -0
  41. data/docs/KeysAndDICTApi.md +217 -0
  42. data/docs/ListUserReports200Response.md +22 -0
  43. data/docs/PixKeyInfo.md +36 -0
  44. data/docs/PixOperationsApi.md +299 -0
  45. data/docs/PostInternalTransferRequest.md +30 -0
  46. data/docs/PostPixQrcodeReadRequest.md +18 -0
  47. data/docs/PostPixRequest.md +32 -0
  48. data/docs/PostUserReportRequest.md +24 -0
  49. data/docs/PostWithdrawQrcodeRequest.md +28 -0
  50. data/docs/PostWithdrawRequest.md +30 -0
  51. data/docs/ProofResponse.md +18 -0
  52. data/docs/QRCodeReadResponse.md +38 -0
  53. data/docs/Refund.md +34 -0
  54. data/docs/RefundRequest.md +22 -0
  55. data/docs/RefundsApi.md +79 -0
  56. data/docs/ReportJob.md +30 -0
  57. data/docs/ReportJobAccepted.md +30 -0
  58. data/docs/ReportJobDetail.md +30 -0
  59. data/docs/ReportsApi.md +881 -0
  60. data/docs/ResendUserCallbackSingle200Response.md +18 -0
  61. data/docs/ResendUserCallbacks200Response.md +20 -0
  62. data/docs/ResendUserCallbacksRequest.md +28 -0
  63. data/docs/ResendWebhookCallbacksRequest.md +30 -0
  64. data/docs/RotateCallbackSecretResponse.md +18 -0
  65. data/docs/RotateSecretResponse.md +18 -0
  66. data/docs/SentWebhookDetail.md +40 -0
  67. data/docs/SentWebhookDetailResponse.md +18 -0
  68. data/docs/SentWebhooksQuantity.md +18 -0
  69. data/docs/Summary.md +26 -0
  70. data/docs/SummaryBlock.md +24 -0
  71. data/docs/SummaryBlockGroupedInner.md +20 -0
  72. data/docs/SummaryBlockStatuses.md +26 -0
  73. data/docs/SummaryStatus.md +22 -0
  74. data/docs/Transaction.md +90 -0
  75. data/docs/TransactionWithRefunds.md +92 -0
  76. data/docs/Webhook.md +30 -0
  77. data/docs/WebhookCreateRequest.md +24 -0
  78. data/docs/WebhookEventType.md +15 -0
  79. data/docs/WebhookListResponse.md +18 -0
  80. data/docs/WebhookUpdateRequest.md +22 -0
  81. data/docs/WebhookWithSecret.md +32 -0
  82. data/docs/WebhooksApi.md +574 -0
  83. data/docs/WithdrawalsApi.md +299 -0
  84. data/git_push.sh +57 -0
  85. data/lib/payzu-pix/api/account_api.rb +136 -0
  86. data/lib/payzu-pix/api/callbacks_api.rb +577 -0
  87. data/lib/payzu-pix/api/infractions_api.rb +452 -0
  88. data/lib/payzu-pix/api/internal_transfer_api.rb +164 -0
  89. data/lib/payzu-pix/api/keys_and_dict_api.rb +234 -0
  90. data/lib/payzu-pix/api/pix_operations_api.rb +300 -0
  91. data/lib/payzu-pix/api/refunds_api.rb +96 -0
  92. data/lib/payzu-pix/api/reports_api.rb +968 -0
  93. data/lib/payzu-pix/api/webhooks_api.rb +542 -0
  94. data/lib/payzu-pix/api/withdrawals_api.rb +305 -0
  95. data/lib/payzu-pix/api_client.rb +441 -0
  96. data/lib/payzu-pix/api_error.rb +58 -0
  97. data/lib/payzu-pix/api_model_base.rb +88 -0
  98. data/lib/payzu-pix/configuration.rb +392 -0
  99. data/lib/payzu-pix/models/api_error_details_inner.rb +192 -0
  100. data/lib/payzu-pix/models/bank_statement.rb +296 -0
  101. data/lib/payzu-pix/models/bank_statement_list_response.rb +159 -0
  102. data/lib/payzu-pix/models/bank_statement_list_response_pagination.rb +169 -0
  103. data/lib/payzu-pix/models/callback_detail.rb +228 -0
  104. data/lib/payzu-pix/models/callback_list_response.rb +159 -0
  105. data/lib/payzu-pix/models/callback_list_response_pagination.rb +169 -0
  106. data/lib/payzu-pix/models/callback_secret_response.rb +158 -0
  107. data/lib/payzu-pix/models/defense.rb +234 -0
  108. data/lib/payzu-pix/models/defense_files_inner.rb +179 -0
  109. data/lib/payzu-pix/models/defense_history_entry.rb +225 -0
  110. data/lib/payzu-pix/models/defense_history_entry_files_inner.rb +168 -0
  111. data/lib/payzu-pix/models/deposit_pending.rb +407 -0
  112. data/lib/payzu-pix/models/deposit_pending_list_response.rb +180 -0
  113. data/lib/payzu-pix/models/dict_consult_response.rb +231 -0
  114. data/lib/payzu-pix/models/download_user_report200_response.rb +158 -0
  115. data/lib/payzu-pix/models/enqueued_callback.rb +147 -0
  116. data/lib/payzu-pix/models/enqueued_callback_enqueued.rb +170 -0
  117. data/lib/payzu-pix/models/enqueued_callback_item.rb +190 -0
  118. data/lib/payzu-pix/models/error_response.rb +336 -0
  119. data/lib/payzu-pix/models/get_user200_response.rb +334 -0
  120. data/lib/payzu-pix/models/get_user200_response_daily_withdraw_limit.rb +180 -0
  121. data/lib/payzu-pix/models/get_user200_response_service_fee.rb +199 -0
  122. data/lib/payzu-pix/models/get_user_balance200_response.rb +158 -0
  123. data/lib/payzu-pix/models/get_user_transaction_by_id200_response.rb +595 -0
  124. data/lib/payzu-pix/models/get_user_transaction_by_id200_response_all_of_callback_log_inner.rb +188 -0
  125. data/lib/payzu-pix/models/get_user_transaction_by_id200_response_all_of_infraction_inner.rb +202 -0
  126. data/lib/payzu-pix/models/get_user_transactions200_response.rb +170 -0
  127. data/lib/payzu-pix/models/infraction_detail.rb +293 -0
  128. data/lib/payzu-pix/models/infraction_detail_transaction.rb +213 -0
  129. data/lib/payzu-pix/models/infraction_list_response.rb +159 -0
  130. data/lib/payzu-pix/models/infraction_list_response_pagination.rb +179 -0
  131. data/lib/payzu-pix/models/list_user_reports200_response.rb +170 -0
  132. data/lib/payzu-pix/models/pix_key_info.rb +263 -0
  133. data/lib/payzu-pix/models/post_internal_transfer_request.rb +377 -0
  134. data/lib/payzu-pix/models/post_pix_qrcode_read_request.rb +174 -0
  135. data/lib/payzu-pix/models/post_pix_request.rb +382 -0
  136. data/lib/payzu-pix/models/post_user_report_request.rb +238 -0
  137. data/lib/payzu-pix/models/post_withdraw_qrcode_request.rb +302 -0
  138. data/lib/payzu-pix/models/post_withdraw_request.rb +350 -0
  139. data/lib/payzu-pix/models/proof_response.rb +148 -0
  140. data/lib/payzu-pix/models/qr_code_read_response.rb +283 -0
  141. data/lib/payzu-pix/models/refund.rb +257 -0
  142. data/lib/payzu-pix/models/refund_request.rb +215 -0
  143. data/lib/payzu-pix/models/report_job.rb +234 -0
  144. data/lib/payzu-pix/models/report_job_accepted.rb +237 -0
  145. data/lib/payzu-pix/models/report_job_detail.rb +237 -0
  146. data/lib/payzu-pix/models/resend_user_callback_single200_response.rb +148 -0
  147. data/lib/payzu-pix/models/resend_user_callbacks200_response.rb +158 -0
  148. data/lib/payzu-pix/models/resend_user_callbacks_request.rb +262 -0
  149. data/lib/payzu-pix/models/resend_webhook_callbacks_request.rb +274 -0
  150. data/lib/payzu-pix/models/rotate_callback_secret_response.rb +148 -0
  151. data/lib/payzu-pix/models/rotate_secret_response.rb +148 -0
  152. data/lib/payzu-pix/models/sent_webhook_detail.rb +261 -0
  153. data/lib/payzu-pix/models/sent_webhook_detail_response.rb +164 -0
  154. data/lib/payzu-pix/models/sent_webhooks_quantity.rb +148 -0
  155. data/lib/payzu-pix/models/summary.rb +188 -0
  156. data/lib/payzu-pix/models/summary_block.rb +179 -0
  157. data/lib/payzu-pix/models/summary_block_grouped_inner.rb +158 -0
  158. data/lib/payzu-pix/models/summary_block_statuses.rb +189 -0
  159. data/lib/payzu-pix/models/summary_status.rb +168 -0
  160. data/lib/payzu-pix/models/transaction.rb +588 -0
  161. data/lib/payzu-pix/models/transaction_with_refunds.rb +583 -0
  162. data/lib/payzu-pix/models/webhook.rb +210 -0
  163. data/lib/payzu-pix/models/webhook_create_request.rb +201 -0
  164. data/lib/payzu-pix/models/webhook_event_type.rb +47 -0
  165. data/lib/payzu-pix/models/webhook_list_response.rb +150 -0
  166. data/lib/payzu-pix/models/webhook_update_request.rb +171 -0
  167. data/lib/payzu-pix/models/webhook_with_secret.rb +220 -0
  168. data/lib/payzu-pix/version.rb +15 -0
  169. data/lib/payzu-pix.rb +119 -0
  170. data/payzu-pix.gemspec +41 -0
  171. data/spec/spec_helper.rb +111 -0
  172. metadata +283 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3632d5525284ba961ee6f7c2cd291a2a4983f75b9a9f2cec205aedd4d344f49b
4
+ data.tar.gz: d269b4c159423ef41822df29d61fdfe3cfb8e7330ad5d3036637009c607b5f24
5
+ SHA512:
6
+ metadata.gz: 6d5613561d5a1e104acbf7a8569c1cde16ca7dcbe3952a92c47ae54847d20d561bfe35094bc7f69d55f211e2f4d94b09059410812f64974dc4b45ae3fce9f144
7
+ data.tar.gz: 33e42f0c1fdb0ca08cf02850755cc6c2875d4e6a1d8b05c3ec034ba2249bd12543d1a9266bd3041e0abc906c43a29657feb8fa1e3c270cdb5cca09bb5e1e9d78
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
data/README.md ADDED
@@ -0,0 +1,231 @@
1
+ # payzu-pix
2
+
3
+ PayZuPix - the Ruby gem for the PayZu Pix API
4
+
5
+ REST API for Pix operations on the PayZu platform, deposits, withdrawals, internal transfers, infractions, reports, and callback inspection. All amounts are in BRL (reais) unless explicitly noted. Authentication uses a Bearer token issued during onboarding.
6
+
7
+ ## SDKs oficiais
8
+
9
+ - Node.js: `npm install payzu-pix`
10
+ - Python: `pip install payzu-pix`
11
+ - PHP: `composer require payzu/pix`
12
+ - Ruby: `gem install payzu-pix`
13
+ - Java: `br.com.payzu:payzu-pix` (Maven Central)
14
+ - Go: `go get github.com/PayZuAI/payzu-sdks/go/v2`
15
+
16
+ Repo: https://github.com/PayZuAI/payzu-sdks
17
+
18
+
19
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
20
+
21
+ - API version: 1.8.0
22
+ - Package version: 2.0.0
23
+ - Generator version: 7.22.0
24
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
25
+ For more information, please visit [https://suporte.payzu.com.br](https://suporte.payzu.com.br)
26
+
27
+ ## Installation
28
+
29
+ ### Build a gem
30
+
31
+ To build the Ruby code into a gem:
32
+
33
+ ```shell
34
+ gem build payzu-pix.gemspec
35
+ ```
36
+
37
+ Then either install the gem locally:
38
+
39
+ ```shell
40
+ gem install ./payzu-pix-2.0.0.gem
41
+ ```
42
+
43
+ (for development, run `gem install --dev ./payzu-pix-2.0.0.gem` to install the development dependencies)
44
+
45
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
46
+
47
+ Finally add this to the Gemfile:
48
+
49
+ gem 'payzu-pix', '~> 2.0.0'
50
+
51
+ ### Install from Git
52
+
53
+ If the Ruby gem is hosted at a git repository: https://github.com/PayZuAI/payzu-sdks, then add the following in the Gemfile:
54
+
55
+ gem 'payzu-pix', :git => 'https://github.com/PayZuAI/payzu-sdks.git'
56
+
57
+ ### Include the Ruby code directly
58
+
59
+ Include the Ruby code directly using `-I` as follows:
60
+
61
+ ```shell
62
+ ruby -Ilib script.rb
63
+ ```
64
+
65
+ ## Getting Started
66
+
67
+ Please follow the [installation](#installation) procedure and then run the following code:
68
+
69
+ ```ruby
70
+ # Load the gem
71
+ require 'payzu-pix'
72
+
73
+ # Setup authorization
74
+ PayZuPix.configure do |config|
75
+ # Configure Bearer authorization: BearerAuth
76
+ config.access_token = 'YOUR_BEARER_TOKEN'
77
+ # Configure a proc to get access tokens in lieu of the static access_token configuration
78
+ config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' }
79
+ # Configure faraday connection
80
+ config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
81
+ end
82
+
83
+ api_instance = PayZuPix::AccountApi.new
84
+
85
+ begin
86
+ #Account Info
87
+ result = api_instance.get_user
88
+ p result
89
+ rescue PayZuPix::ApiError => e
90
+ puts "Exception when calling AccountApi->get_user: #{e}"
91
+ end
92
+
93
+ ```
94
+
95
+ ## Documentation for API Endpoints
96
+
97
+ All URIs are relative to *https://api.payzu.processamento.com/v1*
98
+
99
+ Class | Method | HTTP request | Description
100
+ ------------ | ------------- | ------------- | -------------
101
+ *PayZuPix::AccountApi* | [**get_user**](docs/AccountApi.md#get_user) | **GET** /user | Account Info
102
+ *PayZuPix::AccountApi* | [**get_user_balance**](docs/AccountApi.md#get_user_balance) | **GET** /user/balance | Account Balance
103
+ *PayZuPix::CallbacksApi* | [**create_user_callback_secret**](docs/CallbacksApi.md#create_user_callback_secret) | **POST** /user/callbacks/secret | Create callback secret
104
+ *PayZuPix::CallbacksApi* | [**get_user_callback_by_id**](docs/CallbacksApi.md#get_user_callback_by_id) | **GET** /user/callbacks/{id} | Get Callback
105
+ *PayZuPix::CallbacksApi* | [**get_user_callbacks**](docs/CallbacksApi.md#get_user_callbacks) | **GET** /user/callbacks | List Callbacks
106
+ *PayZuPix::CallbacksApi* | [**resend_user_callback_single**](docs/CallbacksApi.md#resend_user_callback_single) | **POST** /user/callbacks/resend/{transactionId} | Re-send callback (single)
107
+ *PayZuPix::CallbacksApi* | [**resend_user_callbacks**](docs/CallbacksApi.md#resend_user_callbacks) | **POST** /user/callbacks/resend | Re-send callbacks (bulk)
108
+ *PayZuPix::CallbacksApi* | [**resend_user_callbacks_webhook**](docs/CallbacksApi.md#resend_user_callbacks_webhook) | **POST** /user/callbacks/resend/webhook/{webhookId} | Resend callbacks by webhook
109
+ *PayZuPix::CallbacksApi* | [**resend_user_callbacks_webhooks**](docs/CallbacksApi.md#resend_user_callbacks_webhooks) | **POST** /user/callbacks/resend/webhook | Resend webhook callbacks by filters
110
+ *PayZuPix::CallbacksApi* | [**rotate_user_callback_secret**](docs/CallbacksApi.md#rotate_user_callback_secret) | **PATCH** /user/callbacks/secret/rotate | Rotate callback secret
111
+ *PayZuPix::InfractionsApi* | [**get_infractions**](docs/InfractionsApi.md#get_infractions) | **GET** /user/infractions | List Infractions
112
+ *PayZuPix::InfractionsApi* | [**get_infractions_by_id**](docs/InfractionsApi.md#get_infractions_by_id) | **GET** /user/infractions/{id} | Get Infraction
113
+ *PayZuPix::InfractionsApi* | [**get_infractions_defense_by_id**](docs/InfractionsApi.md#get_infractions_defense_by_id) | **GET** /user/infractions/{infractionId}/defenses/{defenseId} | Get Defense
114
+ *PayZuPix::InfractionsApi* | [**get_infractions_defenses**](docs/InfractionsApi.md#get_infractions_defenses) | **GET** /user/infractions/{id}/defenses | List Defenses
115
+ *PayZuPix::InfractionsApi* | [**post_infractions_defense**](docs/InfractionsApi.md#post_infractions_defense) | **POST** /user/infractions/{id}/defenses | Create Defense
116
+ *PayZuPix::InternalTransferApi* | [**get_internal_transfer**](docs/InternalTransferApi.md#get_internal_transfer) | **GET** /internal-transfer | Get internal transfer
117
+ *PayZuPix::InternalTransferApi* | [**post_internal_transfer**](docs/InternalTransferApi.md#post_internal_transfer) | **POST** /internal-transfer | Create internal transfer
118
+ *PayZuPix::KeysAndDICTApi* | [**get_pix_key**](docs/KeysAndDICTApi.md#get_pix_key) | **GET** /pix/key | Pix key lookup (DICT)
119
+ *PayZuPix::KeysAndDICTApi* | [**get_user_dict**](docs/KeysAndDICTApi.md#get_user_dict) | **GET** /user/dict | Resolve DICT key
120
+ *PayZuPix::KeysAndDICTApi* | [**post_pix_qrcode_read**](docs/KeysAndDICTApi.md#post_pix_qrcode_read) | **POST** /pix/qrcode/read | Read QR Code
121
+ *PayZuPix::PixOperationsApi* | [**get_pix**](docs/PixOperationsApi.md#get_pix) | **GET** /pix | Retrieve Charge
122
+ *PayZuPix::PixOperationsApi* | [**get_pix_qrcode**](docs/PixOperationsApi.md#get_pix_qrcode) | **GET** /pix/qr-code/{transactionId} | Render Pix QR code (PNG)
123
+ *PayZuPix::PixOperationsApi* | [**get_proof**](docs/PixOperationsApi.md#get_proof) | **GET** /proof/{id} | Get Transaction Receipt
124
+ *PayZuPix::PixOperationsApi* | [**post_pix**](docs/PixOperationsApi.md#post_pix) | **POST** /pix | Create Charge (Pix deposit)
125
+ *PayZuPix::RefundsApi* | [**post_refund**](docs/RefundsApi.md#post_refund) | **POST** /refund/{transactionId} | Refund a Pix
126
+ *PayZuPix::ReportsApi* | [**download_user_report**](docs/ReportsApi.md#download_user_report) | **POST** /user/report/{id}/download | Download report
127
+ *PayZuPix::ReportsApi* | [**get_user_bank_statement**](docs/ReportsApi.md#get_user_bank_statement) | **GET** /user/bank-statements/{id} | Get bank statement
128
+ *PayZuPix::ReportsApi* | [**get_user_bank_statements**](docs/ReportsApi.md#get_user_bank_statements) | **GET** /user/bank-statements | List bank statements
129
+ *PayZuPix::ReportsApi* | [**get_user_deposit_pending**](docs/ReportsApi.md#get_user_deposit_pending) | **GET** /user/deposit-pending | List pending deposits
130
+ *PayZuPix::ReportsApi* | [**get_user_deposit_pending_by_id**](docs/ReportsApi.md#get_user_deposit_pending_by_id) | **GET** /user/deposit-pending/{id} | Get pending deposit
131
+ *PayZuPix::ReportsApi* | [**get_user_report**](docs/ReportsApi.md#get_user_report) | **GET** /user/report/{id} | Get report job status
132
+ *PayZuPix::ReportsApi* | [**get_user_summary**](docs/ReportsApi.md#get_user_summary) | **GET** /user/summary | Transaction summary
133
+ *PayZuPix::ReportsApi* | [**get_user_transaction_by_id**](docs/ReportsApi.md#get_user_transaction_by_id) | **GET** /user/transactions/{id} | List transaction details
134
+ *PayZuPix::ReportsApi* | [**get_user_transactions**](docs/ReportsApi.md#get_user_transactions) | **GET** /user/transactions | List Transactions
135
+ *PayZuPix::ReportsApi* | [**list_user_reports**](docs/ReportsApi.md#list_user_reports) | **GET** /user/report | List report jobs
136
+ *PayZuPix::ReportsApi* | [**post_user_report**](docs/ReportsApi.md#post_user_report) | **POST** /user/report | Generate transactions report
137
+ *PayZuPix::WebhooksApi* | [**delete_user_webhook**](docs/WebhooksApi.md#delete_user_webhook) | **DELETE** /user/webhooks/{id} | Delete webhook
138
+ *PayZuPix::WebhooksApi* | [**get_user_webhook**](docs/WebhooksApi.md#get_user_webhook) | **GET** /user/webhooks/{id} | Get webhook
139
+ *PayZuPix::WebhooksApi* | [**get_user_webhook_sent_detail**](docs/WebhooksApi.md#get_user_webhook_sent_detail) | **GET** /user/webhooks/{id}/sent/{callbackId} | Get sent callback detail
140
+ *PayZuPix::WebhooksApi* | [**get_user_webhooks**](docs/WebhooksApi.md#get_user_webhooks) | **GET** /user/webhooks | List webhooks
141
+ *PayZuPix::WebhooksApi* | [**get_user_webhooks_sent_quantity**](docs/WebhooksApi.md#get_user_webhooks_sent_quantity) | **GET** /user/webhooks/sent/quantity | Count sent callbacks
142
+ *PayZuPix::WebhooksApi* | [**patch_user_webhook**](docs/WebhooksApi.md#patch_user_webhook) | **PATCH** /user/webhooks/{id} | Update webhook
143
+ *PayZuPix::WebhooksApi* | [**post_user_webhook**](docs/WebhooksApi.md#post_user_webhook) | **POST** /user/webhooks | Create webhook
144
+ *PayZuPix::WebhooksApi* | [**post_user_webhook_rotate_secret**](docs/WebhooksApi.md#post_user_webhook_rotate_secret) | **POST** /user/webhooks/{id}/rotate-secret | Rotate webhook secret
145
+ *PayZuPix::WithdrawalsApi* | [**get_withdraw**](docs/WithdrawalsApi.md#get_withdraw) | **GET** /withdraw | Retrieve Withdrawal
146
+ *PayZuPix::WithdrawalsApi* | [**get_withdraw_proof**](docs/WithdrawalsApi.md#get_withdraw_proof) | **GET** /withdraw/proof/{id} | Get Withdrawal Receipt
147
+ *PayZuPix::WithdrawalsApi* | [**post_withdraw**](docs/WithdrawalsApi.md#post_withdraw) | **POST** /withdraw | Create Withdrawal (Pix key)
148
+ *PayZuPix::WithdrawalsApi* | [**post_withdraw_qrcode**](docs/WithdrawalsApi.md#post_withdraw_qrcode) | **POST** /withdraw/qrcode | Create Withdrawal using QR Code
149
+
150
+
151
+ ## Documentation for Models
152
+
153
+ - [PayZuPix::ApiErrorDetailsInner](docs/ApiErrorDetailsInner.md)
154
+ - [PayZuPix::BankStatement](docs/BankStatement.md)
155
+ - [PayZuPix::BankStatementListResponse](docs/BankStatementListResponse.md)
156
+ - [PayZuPix::BankStatementListResponsePagination](docs/BankStatementListResponsePagination.md)
157
+ - [PayZuPix::CallbackDetail](docs/CallbackDetail.md)
158
+ - [PayZuPix::CallbackListResponse](docs/CallbackListResponse.md)
159
+ - [PayZuPix::CallbackListResponsePagination](docs/CallbackListResponsePagination.md)
160
+ - [PayZuPix::CallbackSecretResponse](docs/CallbackSecretResponse.md)
161
+ - [PayZuPix::Defense](docs/Defense.md)
162
+ - [PayZuPix::DefenseFilesInner](docs/DefenseFilesInner.md)
163
+ - [PayZuPix::DefenseHistoryEntry](docs/DefenseHistoryEntry.md)
164
+ - [PayZuPix::DefenseHistoryEntryFilesInner](docs/DefenseHistoryEntryFilesInner.md)
165
+ - [PayZuPix::DepositPending](docs/DepositPending.md)
166
+ - [PayZuPix::DepositPendingListResponse](docs/DepositPendingListResponse.md)
167
+ - [PayZuPix::DictConsultResponse](docs/DictConsultResponse.md)
168
+ - [PayZuPix::DownloadUserReport200Response](docs/DownloadUserReport200Response.md)
169
+ - [PayZuPix::EnqueuedCallback](docs/EnqueuedCallback.md)
170
+ - [PayZuPix::EnqueuedCallbackEnqueued](docs/EnqueuedCallbackEnqueued.md)
171
+ - [PayZuPix::EnqueuedCallbackItem](docs/EnqueuedCallbackItem.md)
172
+ - [PayZuPix::ErrorResponse](docs/ErrorResponse.md)
173
+ - [PayZuPix::GetUser200Response](docs/GetUser200Response.md)
174
+ - [PayZuPix::GetUser200ResponseDailyWithdrawLimit](docs/GetUser200ResponseDailyWithdrawLimit.md)
175
+ - [PayZuPix::GetUser200ResponseServiceFee](docs/GetUser200ResponseServiceFee.md)
176
+ - [PayZuPix::GetUserBalance200Response](docs/GetUserBalance200Response.md)
177
+ - [PayZuPix::GetUserTransactionById200Response](docs/GetUserTransactionById200Response.md)
178
+ - [PayZuPix::GetUserTransactionById200ResponseAllOfCallbackLogInner](docs/GetUserTransactionById200ResponseAllOfCallbackLogInner.md)
179
+ - [PayZuPix::GetUserTransactionById200ResponseAllOfInfractionInner](docs/GetUserTransactionById200ResponseAllOfInfractionInner.md)
180
+ - [PayZuPix::GetUserTransactions200Response](docs/GetUserTransactions200Response.md)
181
+ - [PayZuPix::InfractionDetail](docs/InfractionDetail.md)
182
+ - [PayZuPix::InfractionDetailTransaction](docs/InfractionDetailTransaction.md)
183
+ - [PayZuPix::InfractionListResponse](docs/InfractionListResponse.md)
184
+ - [PayZuPix::InfractionListResponsePagination](docs/InfractionListResponsePagination.md)
185
+ - [PayZuPix::ListUserReports200Response](docs/ListUserReports200Response.md)
186
+ - [PayZuPix::PixKeyInfo](docs/PixKeyInfo.md)
187
+ - [PayZuPix::PostInternalTransferRequest](docs/PostInternalTransferRequest.md)
188
+ - [PayZuPix::PostPixQrcodeReadRequest](docs/PostPixQrcodeReadRequest.md)
189
+ - [PayZuPix::PostPixRequest](docs/PostPixRequest.md)
190
+ - [PayZuPix::PostUserReportRequest](docs/PostUserReportRequest.md)
191
+ - [PayZuPix::PostWithdrawQrcodeRequest](docs/PostWithdrawQrcodeRequest.md)
192
+ - [PayZuPix::PostWithdrawRequest](docs/PostWithdrawRequest.md)
193
+ - [PayZuPix::ProofResponse](docs/ProofResponse.md)
194
+ - [PayZuPix::QRCodeReadResponse](docs/QRCodeReadResponse.md)
195
+ - [PayZuPix::Refund](docs/Refund.md)
196
+ - [PayZuPix::RefundRequest](docs/RefundRequest.md)
197
+ - [PayZuPix::ReportJob](docs/ReportJob.md)
198
+ - [PayZuPix::ReportJobAccepted](docs/ReportJobAccepted.md)
199
+ - [PayZuPix::ReportJobDetail](docs/ReportJobDetail.md)
200
+ - [PayZuPix::ResendUserCallbackSingle200Response](docs/ResendUserCallbackSingle200Response.md)
201
+ - [PayZuPix::ResendUserCallbacks200Response](docs/ResendUserCallbacks200Response.md)
202
+ - [PayZuPix::ResendUserCallbacksRequest](docs/ResendUserCallbacksRequest.md)
203
+ - [PayZuPix::ResendWebhookCallbacksRequest](docs/ResendWebhookCallbacksRequest.md)
204
+ - [PayZuPix::RotateCallbackSecretResponse](docs/RotateCallbackSecretResponse.md)
205
+ - [PayZuPix::RotateSecretResponse](docs/RotateSecretResponse.md)
206
+ - [PayZuPix::SentWebhookDetail](docs/SentWebhookDetail.md)
207
+ - [PayZuPix::SentWebhookDetailResponse](docs/SentWebhookDetailResponse.md)
208
+ - [PayZuPix::SentWebhooksQuantity](docs/SentWebhooksQuantity.md)
209
+ - [PayZuPix::Summary](docs/Summary.md)
210
+ - [PayZuPix::SummaryBlock](docs/SummaryBlock.md)
211
+ - [PayZuPix::SummaryBlockGroupedInner](docs/SummaryBlockGroupedInner.md)
212
+ - [PayZuPix::SummaryBlockStatuses](docs/SummaryBlockStatuses.md)
213
+ - [PayZuPix::SummaryStatus](docs/SummaryStatus.md)
214
+ - [PayZuPix::Transaction](docs/Transaction.md)
215
+ - [PayZuPix::TransactionWithRefunds](docs/TransactionWithRefunds.md)
216
+ - [PayZuPix::Webhook](docs/Webhook.md)
217
+ - [PayZuPix::WebhookCreateRequest](docs/WebhookCreateRequest.md)
218
+ - [PayZuPix::WebhookEventType](docs/WebhookEventType.md)
219
+ - [PayZuPix::WebhookListResponse](docs/WebhookListResponse.md)
220
+ - [PayZuPix::WebhookUpdateRequest](docs/WebhookUpdateRequest.md)
221
+ - [PayZuPix::WebhookWithSecret](docs/WebhookWithSecret.md)
222
+
223
+
224
+ ## Documentation for Authorization
225
+
226
+
227
+ Authentication schemes defined for the API:
228
+ ### BearerAuth
229
+
230
+ - **Type**: Bearer authentication
231
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
@@ -0,0 +1,141 @@
1
+ # PayZuPix::AccountApi
2
+
3
+ All URIs are relative to *https://api.payzu.processamento.com/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_user**](AccountApi.md#get_user) | **GET** /user | Account Info |
8
+ | [**get_user_balance**](AccountApi.md#get_user_balance) | **GET** /user/balance | Account Balance |
9
+
10
+
11
+ ## get_user
12
+
13
+ > <GetUser200Response> get_user
14
+
15
+ Account Info
16
+
17
+ Account profile, permissions, limits and fee rules.
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'payzu-pix'
24
+ # setup authorization
25
+ PayZuPix.configure do |config|
26
+ # Configure Bearer authorization: BearerAuth
27
+ config.access_token = 'YOUR_BEARER_TOKEN'
28
+ end
29
+
30
+ api_instance = PayZuPix::AccountApi.new
31
+
32
+ begin
33
+ # Account Info
34
+ result = api_instance.get_user
35
+ p result
36
+ rescue PayZuPix::ApiError => e
37
+ puts "Error when calling AccountApi->get_user: #{e}"
38
+ end
39
+ ```
40
+
41
+ #### Using the get_user_with_http_info variant
42
+
43
+ This returns an Array which contains the response data, status code and headers.
44
+
45
+ > <Array(<GetUser200Response>, Integer, Hash)> get_user_with_http_info
46
+
47
+ ```ruby
48
+ begin
49
+ # Account Info
50
+ data, status_code, headers = api_instance.get_user_with_http_info
51
+ p status_code # => 2xx
52
+ p headers # => { ... }
53
+ p data # => <GetUser200Response>
54
+ rescue PayZuPix::ApiError => e
55
+ puts "Error when calling AccountApi->get_user_with_http_info: #{e}"
56
+ end
57
+ ```
58
+
59
+ ### Parameters
60
+
61
+ This endpoint does not need any parameter.
62
+
63
+ ### Return type
64
+
65
+ [**GetUser200Response**](GetUser200Response.md)
66
+
67
+ ### Authorization
68
+
69
+ [BearerAuth](../README.md#BearerAuth)
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: Not defined
74
+ - **Accept**: application/json
75
+
76
+
77
+ ## get_user_balance
78
+
79
+ > <GetUserBalance200Response> get_user_balance
80
+
81
+ Account Balance
82
+
83
+ Available and blocked balances.
84
+
85
+ ### Examples
86
+
87
+ ```ruby
88
+ require 'time'
89
+ require 'payzu-pix'
90
+ # setup authorization
91
+ PayZuPix.configure do |config|
92
+ # Configure Bearer authorization: BearerAuth
93
+ config.access_token = 'YOUR_BEARER_TOKEN'
94
+ end
95
+
96
+ api_instance = PayZuPix::AccountApi.new
97
+
98
+ begin
99
+ # Account Balance
100
+ result = api_instance.get_user_balance
101
+ p result
102
+ rescue PayZuPix::ApiError => e
103
+ puts "Error when calling AccountApi->get_user_balance: #{e}"
104
+ end
105
+ ```
106
+
107
+ #### Using the get_user_balance_with_http_info variant
108
+
109
+ This returns an Array which contains the response data, status code and headers.
110
+
111
+ > <Array(<GetUserBalance200Response>, Integer, Hash)> get_user_balance_with_http_info
112
+
113
+ ```ruby
114
+ begin
115
+ # Account Balance
116
+ data, status_code, headers = api_instance.get_user_balance_with_http_info
117
+ p status_code # => 2xx
118
+ p headers # => { ... }
119
+ p data # => <GetUserBalance200Response>
120
+ rescue PayZuPix::ApiError => e
121
+ puts "Error when calling AccountApi->get_user_balance_with_http_info: #{e}"
122
+ end
123
+ ```
124
+
125
+ ### Parameters
126
+
127
+ This endpoint does not need any parameter.
128
+
129
+ ### Return type
130
+
131
+ [**GetUserBalance200Response**](GetUserBalance200Response.md)
132
+
133
+ ### Authorization
134
+
135
+ [BearerAuth](../README.md#BearerAuth)
136
+
137
+ ### HTTP request headers
138
+
139
+ - **Content-Type**: Not defined
140
+ - **Accept**: application/json
141
+
@@ -0,0 +1,20 @@
1
+ # PayZuPix::ApiErrorDetailsInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **field** | **String** | Path of the field rejected in validation, without the leading slash. | |
8
+ | **message** | **String** | Reason that field was rejected, in Portuguese. | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'payzu-pix'
14
+
15
+ instance = PayZuPix::ApiErrorDetailsInner.new(
16
+ field: null,
17
+ message: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,42 @@
1
+ # PayZuPix::BankStatement
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Identifier of the balance entry. | [optional] |
8
+ | **amount** | **Float** | Amount of the entry. | [optional] |
9
+ | **operation** | **String** | INCREMENT credits the balance, DECREMENT debits it. | [optional] |
10
+ | **reason** | **String** | Reason for the ledger entry. | [optional] |
11
+ | **balance_type** | **String** | Balance moved: AVAILABLE or BLOCKED. | [optional] |
12
+ | **previous_balance_available** | **Float** | Balance free for use that the account had, in reais, immediately before this entry. | [optional] |
13
+ | **previous_balance_blocked** | **Float** | Blocked balance before the entry, in reais. | [optional] |
14
+ | **new_balance_available** | **Float** | Available balance after the entry, in reais. | [optional] |
15
+ | **new_balance_blocked** | **Float** | Blocked balance after the entry, in reais. | [optional] |
16
+ | **transaction_id** | **String** | Transaction that originated the entry. | [optional] |
17
+ | **infraction_id** | **String** | Infraction related to the entry. | [optional] |
18
+ | **created_at** | **Time** | Date and time the balance movement was recorded. | [optional] |
19
+ | **updated_at** | **Time** | Date and time of the last change to the record. | [optional] |
20
+
21
+ ## Example
22
+
23
+ ```ruby
24
+ require 'payzu-pix'
25
+
26
+ instance = PayZuPix::BankStatement.new(
27
+ id: null,
28
+ amount: null,
29
+ operation: null,
30
+ reason: null,
31
+ balance_type: null,
32
+ previous_balance_available: null,
33
+ previous_balance_blocked: null,
34
+ new_balance_available: null,
35
+ new_balance_blocked: null,
36
+ transaction_id: null,
37
+ infraction_id: null,
38
+ created_at: null,
39
+ updated_at: null
40
+ )
41
+ ```
42
+
@@ -0,0 +1,20 @@
1
+ # PayZuPix::BankStatementListResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **pagination** | [**BankStatementListResponsePagination**](BankStatementListResponsePagination.md) | | [optional] |
8
+ | **bank_statements** | [**Array&lt;BankStatement&gt;**](BankStatement.md) | Entries of the queried page. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'payzu-pix'
14
+
15
+ instance = PayZuPix::BankStatementListResponse.new(
16
+ pagination: null,
17
+ bank_statements: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,22 @@
1
+ # PayZuPix::BankStatementListResponsePagination
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **page** | **Integer** | Page returned, the same as the page parameter sent in the query; when omitted, it is 1. | [optional] |
8
+ | **limit** | **Integer** | Page size applied in the query; when omitted it is 10 and the maximum accepted is 100. | [optional] |
9
+ | **has_next_page** | **Boolean** | Indicates whether there is a next page, detected by fetching one item beyond the limit. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'payzu-pix'
15
+
16
+ instance = PayZuPix::BankStatementListResponsePagination.new(
17
+ page: null,
18
+ limit: null,
19
+ has_next_page: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,34 @@
1
+ # PayZuPix::CallbackDetail
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Unique callback ID | [optional] |
8
+ | **url** | **String** | Webhook URL that received the callback | [optional] |
9
+ | **status** | **Float** | HTTP response status code | [optional] |
10
+ | **transaction_id** | **String** | Related transaction ID | [optional] |
11
+ | **created_at** | **Time** | Date and time when the callback log was created | [optional] |
12
+ | **body** | **Object** | Request body sent (parsed JSON). When the content is not valid JSON, it comes as &#x60;{ \&quot;raw\&quot;: \&quot;&lt;text&gt;\&quot; }&#x60;. | [optional] |
13
+ | **response_body** | **String** | Response body received (string) | [optional] |
14
+ | **response_headers** | **Object** | Response headers (parsed JSON). When the content is not valid JSON, it comes as &#x60;{ \&quot;raw\&quot;: \&quot;&lt;text&gt;\&quot; }&#x60;. | [optional] |
15
+ | **response_time** | **Float** | Webhook round-trip time in milliseconds | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'payzu-pix'
21
+
22
+ instance = PayZuPix::CallbackDetail.new(
23
+ id: null,
24
+ url: null,
25
+ status: null,
26
+ transaction_id: null,
27
+ created_at: null,
28
+ body: null,
29
+ response_body: null,
30
+ response_headers: null,
31
+ response_time: null
32
+ )
33
+ ```
34
+
@@ -0,0 +1,20 @@
1
+ # PayZuPix::CallbackListResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **pagination** | [**CallbackListResponsePagination**](CallbackListResponsePagination.md) | | [optional] |
8
+ | **callbacks** | [**Array&lt;CallbackDetail&gt;**](CallbackDetail.md) | Array of callback logs | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'payzu-pix'
14
+
15
+ instance = PayZuPix::CallbackListResponse.new(
16
+ pagination: null,
17
+ callbacks: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,22 @@
1
+ # PayZuPix::CallbackListResponsePagination
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **page** | **Integer** | Current page | [optional] |
8
+ | **limit** | **Integer** | Items per page | [optional] |
9
+ | **has_next_page** | **Boolean** | Indicates if there is a next page | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'payzu-pix'
15
+
16
+ instance = PayZuPix::CallbackListResponsePagination.new(
17
+ page: null,
18
+ limit: null,
19
+ has_next_page: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # PayZuPix::CallbackSecretResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **message** | **String** | Confirmation of the created secret. | [optional] |
8
+ | **secret** | **String** | Callback secret, 43 base64url characters. Store it: there is no route to read it again. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'payzu-pix'
14
+
15
+ instance = PayZuPix::CallbackSecretResponse.new(
16
+ message: null,
17
+ secret: Zk8Qk1Yb3nS6xPwT2cVrJ9dLmHgA4eN7uKfR0iXsBqE
18
+ )
19
+ ```
20
+