treezor_client 1.1.0 → 1.2.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 (177) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -5
  3. data/Gemfile.lock +4 -6
  4. data/README.md +19 -5
  5. data/config.json +10 -0
  6. data/docs/BalanceApi.md +8 -8
  7. data/docs/BankaccountApi.md +30 -30
  8. data/docs/BeneficiariesApi.md +30 -30
  9. data/docs/Beneficiary.md +1 -0
  10. data/docs/BusinessApi.md +26 -26
  11. data/docs/Card.md +2 -2
  12. data/docs/CardApi.md +209 -150
  13. data/docs/CardDigitalization.md +1 -3
  14. data/docs/CardDigitalizationsApi.md +73 -16
  15. data/docs/CardReserveApi.md +24 -24
  16. data/docs/CardtransactionApi.md +16 -14
  17. data/docs/CountryRestrictionGroup.md +14 -0
  18. data/docs/CountryRestrictionGroupsApi.md +40 -40
  19. data/docs/Document.md +1 -0
  20. data/docs/DocumentApi.md +46 -44
  21. data/docs/HeartbeatApi.md +8 -8
  22. data/docs/InlineResponse20010Cardtransactions.md +3 -3
  23. data/docs/InlineResponse20011.md +1 -1
  24. data/docs/InlineResponse20011Cardtransactions.md +58 -0
  25. data/docs/InlineResponse20012.md +1 -1
  26. data/docs/InlineResponse20013.md +1 -1
  27. data/docs/InlineResponse20014.md +1 -1
  28. data/docs/InlineResponse20015.md +1 -1
  29. data/docs/InlineResponse20016.md +1 -1
  30. data/docs/InlineResponse20017.md +1 -1
  31. data/docs/InlineResponse20018.md +1 -1
  32. data/docs/InlineResponse20019.md +1 -1
  33. data/docs/InlineResponse20020.md +1 -1
  34. data/docs/InlineResponse20021.md +1 -1
  35. data/docs/InlineResponse20022.md +1 -1
  36. data/docs/InlineResponse20023.md +1 -1
  37. data/docs/InlineResponse20024.md +1 -1
  38. data/docs/InlineResponse20025.md +1 -1
  39. data/docs/InlineResponse20026.md +8 -0
  40. data/docs/InlineResponse20027.md +8 -0
  41. data/docs/InlineResponse20028.md +8 -0
  42. data/docs/InlineResponse2005Businessinformations.md +2 -2
  43. data/docs/IssuerInitiatedDigitizationDataApi.md +22 -22
  44. data/docs/MandateApi.md +50 -50
  45. data/docs/MccRestrictionGroupsApi.md +40 -40
  46. data/docs/MerchantIdRestrictionGroupsApi.md +40 -40
  47. data/docs/PayinApi.md +38 -38
  48. data/docs/PayinrefundApi.md +38 -38
  49. data/docs/PayoutApi.md +38 -38
  50. data/docs/PayoutRefund.md +22 -0
  51. data/docs/PayoutRefundsApi.md +82 -0
  52. data/docs/TaxResidence.md +15 -0
  53. data/docs/TaxResidenceApi.md +319 -0
  54. data/docs/TransactionApi.md +22 -22
  55. data/docs/TransferApi.md +42 -42
  56. data/docs/TransferrefundApi.md +42 -42
  57. data/docs/User.md +3 -0
  58. data/docs/UserApi.md +104 -85
  59. data/docs/VirtualibansApi.md +46 -46
  60. data/docs/WalletApi.md +84 -84
  61. data/lib/treezor_client/api/balance_api.rb +8 -8
  62. data/lib/treezor_client/api/bankaccount_api.rb +30 -30
  63. data/lib/treezor_client/api/beneficiaries_api.rb +30 -30
  64. data/lib/treezor_client/api/business_api.rb +26 -26
  65. data/lib/treezor_client/api/card_api.rb +209 -154
  66. data/lib/treezor_client/api/card_digitalizations_api.rb +82 -16
  67. data/lib/treezor_client/api/card_reserve_api.rb +24 -24
  68. data/lib/treezor_client/api/cardtransaction_api.rb +18 -15
  69. data/lib/treezor_client/api/country_restriction_groups_api.rb +45 -45
  70. data/lib/treezor_client/api/document_api.rb +64 -57
  71. data/lib/treezor_client/api/heartbeat_api.rb +8 -8
  72. data/lib/treezor_client/api/issuer_initiated_digitization_data_api.rb +22 -22
  73. data/lib/treezor_client/api/mandate_api.rb +58 -58
  74. data/lib/treezor_client/api/mcc_restriction_groups_api.rb +45 -45
  75. data/lib/treezor_client/api/merchant_id_restriction_groups_api.rb +45 -45
  76. data/lib/treezor_client/api/payin_api.rb +42 -42
  77. data/lib/treezor_client/api/payinrefund_api.rb +42 -42
  78. data/lib/treezor_client/api/payout_api.rb +42 -42
  79. data/lib/treezor_client/api/payout_refunds_api.rb +102 -0
  80. data/lib/treezor_client/api/tax_residence_api.rb +319 -0
  81. data/lib/treezor_client/api/transaction_api.rb +24 -24
  82. data/lib/treezor_client/api/transfer_api.rb +46 -46
  83. data/lib/treezor_client/api/transferrefund_api.rb +46 -46
  84. data/lib/treezor_client/api/user_api.rb +124 -93
  85. data/lib/treezor_client/api/virtualibans_api.rb +50 -50
  86. data/lib/treezor_client/api/wallet_api.rb +89 -89
  87. data/lib/treezor_client/models/beneficiary.rb +11 -1
  88. data/lib/treezor_client/models/card.rb +2 -2
  89. data/lib/treezor_client/models/card_digitalization.rb +3 -20
  90. data/lib/treezor_client/models/country_restriction_group.rb +284 -0
  91. data/lib/treezor_client/models/document.rb +10 -1
  92. data/lib/treezor_client/models/inline_response_200_10_cardtransactions.rb +3 -3
  93. data/lib/treezor_client/models/inline_response_200_11.rb +8 -8
  94. data/lib/treezor_client/models/inline_response_200_11_cardtransactions.rb +642 -0
  95. data/lib/treezor_client/models/inline_response_200_12.rb +8 -8
  96. data/lib/treezor_client/models/inline_response_200_13.rb +8 -8
  97. data/lib/treezor_client/models/inline_response_200_14.rb +1 -1
  98. data/lib/treezor_client/models/inline_response_200_15.rb +1 -1
  99. data/lib/treezor_client/models/inline_response_200_16.rb +8 -8
  100. data/lib/treezor_client/models/inline_response_200_17.rb +8 -8
  101. data/lib/treezor_client/models/inline_response_200_18.rb +8 -8
  102. data/lib/treezor_client/models/inline_response_200_19.rb +8 -8
  103. data/lib/treezor_client/models/inline_response_200_20.rb +8 -8
  104. data/lib/treezor_client/models/inline_response_200_21.rb +8 -8
  105. data/lib/treezor_client/models/inline_response_200_22.rb +8 -8
  106. data/lib/treezor_client/models/inline_response_200_23.rb +1 -1
  107. data/lib/treezor_client/models/inline_response_200_24.rb +8 -8
  108. data/lib/treezor_client/models/inline_response_200_25.rb +8 -8
  109. data/lib/treezor_client/models/inline_response_200_26.rb +190 -0
  110. data/lib/treezor_client/models/inline_response_200_27.rb +190 -0
  111. data/lib/treezor_client/models/inline_response_200_28.rb +190 -0
  112. data/lib/treezor_client/models/inline_response_200_5_businessinformations.rb +2 -2
  113. data/lib/treezor_client/models/payout_refund.rb +347 -0
  114. data/lib/treezor_client/models/tax_residence.rb +259 -0
  115. data/lib/treezor_client/models/user.rb +28 -1
  116. data/lib/treezor_client/version.rb +1 -1
  117. data/lib/treezor_client.rb +9 -1
  118. data/pkg/treezor_client-1.0.0.gem +0 -0
  119. data/pkg/treezor_client-1.1.0.gem +0 -0
  120. data/pkg/treezor_client-1.2.0.gem +0 -0
  121. data/spec/api/balance_api_spec.rb +4 -4
  122. data/spec/api/bankaccount_api_spec.rb +15 -15
  123. data/spec/api/beneficiaries_api_spec.rb +15 -15
  124. data/spec/api/business_api_spec.rb +13 -13
  125. data/spec/api/card_api_spec.rb +93 -75
  126. data/spec/api/card_digitalizations_api_spec.rb +19 -6
  127. data/spec/api/card_reserve_api_spec.rb +12 -12
  128. data/spec/api/cardtransaction_api_spec.rb +8 -7
  129. data/spec/api/country_restriction_groups_api_spec.rb +20 -20
  130. data/spec/api/document_api_spec.rb +22 -21
  131. data/spec/api/heartbeat_api_spec.rb +4 -4
  132. data/spec/api/issuer_initiated_digitization_data_api_spec.rb +11 -11
  133. data/spec/api/mandate_api_spec.rb +26 -26
  134. data/spec/api/mcc_restriction_groups_api_spec.rb +20 -20
  135. data/spec/api/merchant_id_restriction_groups_api_spec.rb +20 -22
  136. data/spec/api/payin_api_spec.rb +19 -19
  137. data/spec/api/payinrefund_api_spec.rb +19 -19
  138. data/spec/api/payout_api_spec.rb +19 -19
  139. data/spec/api/payout_refunds_api_spec.rb +56 -0
  140. data/spec/api/tax_residence_api_spec.rb +108 -0
  141. data/spec/api/transaction_api_spec.rb +11 -11
  142. data/spec/api/transfer_api_spec.rb +21 -21
  143. data/spec/api/transferrefund_api_spec.rb +21 -21
  144. data/spec/api/user_api_spec.rb +58 -41
  145. data/spec/api/virtualibans_api_spec.rb +23 -23
  146. data/spec/api/wallet_api_spec.rb +42 -42
  147. data/spec/models/beneficiary_spec.rb +6 -0
  148. data/spec/models/card_digitalization_spec.rb +0 -12
  149. data/spec/models/card_spec.rb +6 -0
  150. data/spec/models/country_restriction_group_spec.rb +82 -0
  151. data/spec/models/document_spec.rb +6 -0
  152. data/spec/models/inline_response_200_11_cardtransactions_spec.rb +342 -0
  153. data/spec/models/inline_response_200_11_spec.rb +1 -1
  154. data/spec/models/inline_response_200_12_spec.rb +1 -1
  155. data/spec/models/inline_response_200_13_spec.rb +1 -1
  156. data/spec/models/inline_response_200_16_spec.rb +1 -1
  157. data/spec/models/inline_response_200_17_spec.rb +1 -1
  158. data/spec/models/inline_response_200_18_spec.rb +1 -1
  159. data/spec/models/inline_response_200_19_spec.rb +1 -1
  160. data/spec/models/inline_response_200_20_spec.rb +1 -1
  161. data/spec/models/inline_response_200_21_spec.rb +1 -1
  162. data/spec/models/inline_response_200_22_spec.rb +1 -1
  163. data/spec/models/inline_response_200_24_spec.rb +1 -1
  164. data/spec/models/inline_response_200_25_spec.rb +1 -1
  165. data/spec/models/inline_response_200_26_spec.rb +42 -0
  166. data/spec/models/inline_response_200_27_spec.rb +42 -0
  167. data/spec/models/inline_response_200_28_spec.rb +42 -0
  168. data/spec/models/issuer_initiated_digitization_datas_additionnal_data_spec.rb +1 -1
  169. data/spec/models/merchant_id_restriction_group_spec.rb +1 -1
  170. data/spec/models/payout_refund_spec.rb +130 -0
  171. data/spec/models/tax_residence_spec.rb +84 -0
  172. data/spec/models/user_spec.rb +42 -0
  173. data/treezor_api_spec.yaml +1841 -1207
  174. data/treezor_client.gemspec +1 -3
  175. metadata +45 -9
  176. data/spec/models/card_digitalization_details_from_gps_spec.rb +0 -234
  177. data/spec/models/issuer_initiated_digitization_datas_additionnal_data_ecc_public_certificates_spec.rb +0 -54
data/docs/PayoutApi.md CHANGED
@@ -11,7 +11,7 @@ Method | HTTP request | Description
11
11
 
12
12
 
13
13
  # **delete_payout**
14
- > InlineResponse20019 delete_payout(id)
14
+ > InlineResponse20020 delete_payout(id)
15
15
 
16
16
  cancel a payout
17
17
 
@@ -51,7 +51,7 @@ Name | Type | Description | Notes
51
51
 
52
52
  ### Return type
53
53
 
54
- [**InlineResponse20019**](InlineResponse20019.md)
54
+ [**InlineResponse20020**](InlineResponse20020.md)
55
55
 
56
56
  ### Authorization
57
57
 
@@ -65,7 +65,7 @@ Name | Type | Description | Notes
65
65
 
66
66
 
67
67
  # **get_payout**
68
- > InlineResponse20019 get_payout(id)
68
+ > InlineResponse20020 get_payout(id)
69
69
 
70
70
  get a payout
71
71
 
@@ -105,7 +105,7 @@ Name | Type | Description | Notes
105
105
 
106
106
  ### Return type
107
107
 
108
- [**InlineResponse20019**](InlineResponse20019.md)
108
+ [**InlineResponse20020**](InlineResponse20020.md)
109
109
 
110
110
  ### Authorization
111
111
 
@@ -119,7 +119,7 @@ Name | Type | Description | Notes
119
119
 
120
120
 
121
121
  # **get_payouts**
122
- > InlineResponse20019 get_payouts(opts)
122
+ > InlineResponse20020 get_payouts(opts)
123
123
 
124
124
  search pay outs
125
125
 
@@ -140,10 +140,10 @@ end
140
140
  api_instance = TreezorClient::PayoutApi.new
141
141
 
142
142
  opts = {
143
- access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
144
- access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
145
- access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
146
- access_user_ip: "access_user_ip_example", # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
143
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
144
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
145
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
146
+ access_user_ip: "access_user_ip_example", # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
147
147
  payout_id: 56, # Integer | Payout's Id
148
148
  payout_tag: "payout_tag_example", # String | Custom data.
149
149
  payout_status: "payout_status_example", # String | pay out status; Possible values: * CANCELED * PENDING * VALIDATED
@@ -160,14 +160,14 @@ opts = {
160
160
  label: "label_example", # String | Pay out label that will be displayed in the receiver's account.
161
161
  amount: "amount_example", # String | Pay out amount.
162
162
  currency: "currency_example", # String | Transfert amount currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217).
163
- page_number: 56, # Integer | Pagination page number. More info [here](https://agent.treezor.com/lists).
164
- page_count: 56, # Integer | The number of items per page. More info [here](https://agent.treezor.com/lists).
165
- sort_by: "sort_by_example", # String | The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
163
+ page_number: 56, # Integer | Pagination page number. More info [here](https://agent.treezor.com/lists).
164
+ page_count: 56, # Integer | The number of items per page. More info [here](https://agent.treezor.com/lists).
165
+ sort_by: "sort_by_example", # String | The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
166
166
  sort_order: "sort_order_example", # String | The order you want to sort the list. * **DESC** for a descending sort * **ASC** for a ascending sort. Default value : DESC. More info [here](https://agent.treezor.com/lists).
167
- created_date_from: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
168
- created_date_to: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
169
- updated_date_from: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
170
- updated_date_to: DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
167
+ created_date_from: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
168
+ created_date_to: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
169
+ updated_date_from: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
170
+ updated_date_to: DateTime.parse("2013-10-20T19:20:30+01:00") # DateTime | The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
171
171
  }
172
172
 
173
173
  begin
@@ -183,10 +183,10 @@ end
183
183
 
184
184
  Name | Type | Description | Notes
185
185
  ------------- | ------------- | ------------- | -------------
186
- **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
187
- **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
188
- **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
189
- **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
186
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
187
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
188
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
189
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
190
190
  **payout_id** | **Integer**| Payout's Id | [optional]
191
191
  **payout_tag** | **String**| Custom data. | [optional]
192
192
  **payout_status** | **String**| pay out status; Possible values: * CANCELED * PENDING * VALIDATED | [optional]
@@ -203,18 +203,18 @@ Name | Type | Description | Notes
203
203
  **label** | **String**| Pay out label that will be displayed in the receiver's account. | [optional]
204
204
  **amount** | **String**| Pay out amount. | [optional]
205
205
  **currency** | **String**| Transfert amount currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217). | [optional]
206
- **page_number** | **Integer**| Pagination page number. More info [here](https://agent.treezor.com/lists). | [optional]
207
- **page_count** | **Integer**| The number of items per page. More info [here](https://agent.treezor.com/lists). | [optional]
208
- **sort_by** | **String**| The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists). | [optional]
206
+ **page_number** | **Integer**| Pagination page number. More info [here](https://agent.treezor.com/lists). | [optional]
207
+ **page_count** | **Integer**| The number of items per page. More info [here](https://agent.treezor.com/lists). | [optional]
208
+ **sort_by** | **String**| The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists). | [optional]
209
209
  **sort_order** | **String**| The order you want to sort the list. * **DESC** for a descending sort * **ASC** for a ascending sort. Default value : DESC. More info [here](https://agent.treezor.com/lists). | [optional]
210
- **created_date_from** | **DateTime**| The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists) | [optional]
211
- **created_date_to** | **DateTime**| The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists) | [optional]
212
- **updated_date_from** | **DateTime**| The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists) | [optional]
213
- **updated_date_to** | **DateTime**| The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists) | [optional]
210
+ **created_date_from** | **DateTime**| The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists) | [optional]
211
+ **created_date_to** | **DateTime**| The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists) | [optional]
212
+ **updated_date_from** | **DateTime**| The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists) | [optional]
213
+ **updated_date_to** | **DateTime**| The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists) | [optional]
214
214
 
215
215
  ### Return type
216
216
 
217
- [**InlineResponse20019**](InlineResponse20019.md)
217
+ [**InlineResponse20020**](InlineResponse20020.md)
218
218
 
219
219
  ### Authorization
220
220
 
@@ -228,7 +228,7 @@ Name | Type | Description | Notes
228
228
 
229
229
 
230
230
  # **post_payout**
231
- > InlineResponse20019 post_payout(wallet_id, amount, currency, opts)
231
+ > InlineResponse20020 post_payout(wallet_id, amount, currency, opts)
232
232
 
233
233
  create a pay out
234
234
 
@@ -255,10 +255,10 @@ amount = 56 # Integer | Pay out amount.
255
255
  currency = "currency_example" # String | Transfert amount currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217).
256
256
 
257
257
  opts = {
258
- access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
259
- access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
260
- access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
261
- access_user_ip: "access_user_ip_example", # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
258
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
259
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
260
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
261
+ access_user_ip: "access_user_ip_example", # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
262
262
  payout_tag: "payout_tag_example", # String | Custom data.
263
263
  bankaccount_id: 56, # Integer | Pay out bank account's id. Mandatory id beneficiaryId is not provided. If bankaccountId and beneficiaryId are both provided, the beneficiaryId will be used.
264
264
  beneficiary_id: 56, # Integer | Pay out beneficiary's id. Mandatory id bankaccountId is not provided. If bankaccountId and beneficiaryId are both provided, the beneficiaryId will be used.
@@ -282,10 +282,10 @@ Name | Type | Description | Notes
282
282
  **wallet_id** | **Integer**| Pay out wallet id. |
283
283
  **amount** | **Integer**| Pay out amount. |
284
284
  **currency** | **String**| Transfert amount currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217). |
285
- **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
286
- **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
287
- **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
288
- **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
285
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
286
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
287
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
288
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
289
289
  **payout_tag** | **String**| Custom data. | [optional]
290
290
  **bankaccount_id** | **Integer**| Pay out bank account's id. Mandatory id beneficiaryId is not provided. If bankaccountId and beneficiaryId are both provided, the beneficiaryId will be used. | [optional]
291
291
  **beneficiary_id** | **Integer**| Pay out beneficiary's id. Mandatory id bankaccountId is not provided. If bankaccountId and beneficiaryId are both provided, the beneficiaryId will be used. | [optional]
@@ -294,7 +294,7 @@ Name | Type | Description | Notes
294
294
 
295
295
  ### Return type
296
296
 
297
- [**InlineResponse20019**](InlineResponse20019.md)
297
+ [**InlineResponse20020**](InlineResponse20020.md)
298
298
 
299
299
  ### Authorization
300
300
 
@@ -0,0 +1,22 @@
1
+ # TreezorClient::PayoutRefund
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | | [optional]
7
+ **tag** | **String** | | [optional]
8
+ **code_status** | **Integer** | | [optional]
9
+ **information_status** | **String** | | [optional]
10
+ **payout_id** | **Integer** | | [optional]
11
+ **request_amount** | **String** | | [optional]
12
+ **request_currency** | **String** | | [optional]
13
+ **request_comment** | **String** | | [optional]
14
+ **reason_code** | **String** | | [optional]
15
+ **refund_amount** | **String** | | [optional]
16
+ **refund_currency** | **String** | | [optional]
17
+ **refund_date** | **String** | | [optional]
18
+ **refund_comment** | **String** | | [optional]
19
+ **created_date** | **String** | | [optional]
20
+ **modified_date** | **String** | | [optional]
21
+
22
+
@@ -0,0 +1,82 @@
1
+ # TreezorClient::PayoutRefundsApi
2
+
3
+ All URIs are relative to *https://sandbox.treezor.com/v1/index.php*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_payout_refunds**](PayoutRefundsApi.md#get_payout_refunds) | **GET** /payoutRefunds | search pay outs refund
8
+
9
+
10
+ # **get_payout_refunds**
11
+ > InlineResponse20021 get_payout_refunds(opts)
12
+
13
+ search pay outs refund
14
+
15
+ Get pay out refund that match search criteria.
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'treezor_client'
21
+ # setup authorization
22
+ TreezorClient.configure do |config|
23
+ # Configure API key authorization: api_key
24
+ config.api_key['Authorization'] = 'YOUR API KEY'
25
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
+ #config.api_key_prefix['Authorization'] = 'Bearer'
27
+ end
28
+
29
+ api_instance = TreezorClient::PayoutRefundsApi.new
30
+
31
+ opts = {
32
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
33
+ access_tag: "access_tag_example", # String | Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
34
+ access_user_id: 56, # Integer | Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
35
+ access_user_ip: "access_user_ip_example", # String | Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
36
+ id: 56, # Integer | PayoutRefund id
37
+ tag: "tag_example", # String | PayoutRefund tag
38
+ code_status: "code_status_example", # String | PayoutRefund Code Status
39
+ information_status: "information_status_example", # String | PayoutRefund Information Status
40
+ payout_id: 56, # Integer | Payout Id
41
+ page_number: 56 # Integer | The page number
42
+ }
43
+
44
+ begin
45
+ #search pay outs refund
46
+ result = api_instance.get_payout_refunds(opts)
47
+ p result
48
+ rescue TreezorClient::ApiError => e
49
+ puts "Exception when calling PayoutRefundsApi->get_payout_refunds: #{e}"
50
+ end
51
+ ```
52
+
53
+ ### Parameters
54
+
55
+ Name | Type | Description | Notes
56
+ ------------- | ------------- | ------------- | -------------
57
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
58
+ **access_tag** | **String**| Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics). | [optional]
59
+ **access_user_id** | **Integer**| Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
60
+ **access_user_ip** | **String**| Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics). | [optional]
61
+ **id** | **Integer**| PayoutRefund id | [optional]
62
+ **tag** | **String**| PayoutRefund tag | [optional]
63
+ **code_status** | **String**| PayoutRefund Code Status | [optional]
64
+ **information_status** | **String**| PayoutRefund Information Status | [optional]
65
+ **payout_id** | **Integer**| Payout Id | [optional]
66
+ **page_number** | **Integer**| The page number | [optional]
67
+
68
+ ### Return type
69
+
70
+ [**InlineResponse20021**](InlineResponse20021.md)
71
+
72
+ ### Authorization
73
+
74
+ [api_key](../README.md#api_key)
75
+
76
+ ### HTTP request headers
77
+
78
+ - **Content-Type**: application/json
79
+ - **Accept**: application/json
80
+
81
+
82
+
@@ -0,0 +1,15 @@
1
+ # TreezorClient::TaxResidence
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | TaxResidence Id | [optional]
7
+ **user_id** | **Integer** | The user id | [optional]
8
+ **country** | **String** | The residence country | [optional]
9
+ **tax_payer_id** | **String** | the taxPayer id | [optional]
10
+ **liability_waiver** | **BOOLEAN** | Tax declaration | [optional]
11
+ **created_date** | **String** | Date of creation | [optional]
12
+ **last_update** | **String** | Date of the TaxResidence has been updated | [optional]
13
+ **deleted_date** | **String** | Date of the TaxResidence has been deleted | [optional]
14
+
15
+
@@ -0,0 +1,319 @@
1
+ # TreezorClient::TaxResidenceApi
2
+
3
+ All URIs are relative to *https://sandbox.treezor.com/v1/index.php*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**tax_residences_get**](TaxResidenceApi.md#tax_residences_get) | **GET** /taxResidences | search a residence
8
+ [**tax_residences_id_delete**](TaxResidenceApi.md#tax_residences_id_delete) | **DELETE** /taxResidences/{id} | delete a residence
9
+ [**tax_residences_id_get**](TaxResidenceApi.md#tax_residences_id_get) | **GET** /taxResidences/{id} | read the informations of a residence
10
+ [**tax_residences_id_put**](TaxResidenceApi.md#tax_residences_id_put) | **PUT** /taxResidences/{id} | update the residence
11
+ [**tax_residences_post**](TaxResidenceApi.md#tax_residences_post) | **POST** /taxResidences | create a residence
12
+
13
+
14
+ # **tax_residences_get**
15
+ > InlineResponse20028 tax_residences_get(opts)
16
+
17
+ search a residence
18
+
19
+ Search a residence that match search criteria
20
+
21
+ ### Example
22
+ ```ruby
23
+ # load the gem
24
+ require 'treezor_client'
25
+ # setup authorization
26
+ TreezorClient.configure do |config|
27
+ # Configure API key authorization: api_key
28
+ config.api_key['Authorization'] = 'YOUR API KEY'
29
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
30
+ #config.api_key_prefix['Authorization'] = 'Bearer'
31
+ end
32
+
33
+ api_instance = TreezorClient::TaxResidenceApi.new
34
+
35
+ opts = {
36
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
37
+ id: 56, # Integer | id of the residence
38
+ user_id: 56 # Integer | User's id residence
39
+ }
40
+
41
+ begin
42
+ #search a residence
43
+ result = api_instance.tax_residences_get(opts)
44
+ p result
45
+ rescue TreezorClient::ApiError => e
46
+ puts "Exception when calling TaxResidenceApi->tax_residences_get: #{e}"
47
+ end
48
+ ```
49
+
50
+ ### Parameters
51
+
52
+ Name | Type | Description | Notes
53
+ ------------- | ------------- | ------------- | -------------
54
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
55
+ **id** | **Integer**| id of the residence | [optional]
56
+ **user_id** | **Integer**| User's id residence | [optional]
57
+
58
+ ### Return type
59
+
60
+ [**InlineResponse20028**](InlineResponse20028.md)
61
+
62
+ ### Authorization
63
+
64
+ [api_key](../README.md#api_key)
65
+
66
+ ### HTTP request headers
67
+
68
+ - **Content-Type**: Not defined
69
+ - **Accept**: Not defined
70
+
71
+
72
+
73
+ # **tax_residences_id_delete**
74
+ > InlineResponse20028 tax_residences_id_delete(id, opts)
75
+
76
+ delete a residence
77
+
78
+ Delete a residence that match id
79
+
80
+ ### Example
81
+ ```ruby
82
+ # load the gem
83
+ require 'treezor_client'
84
+ # setup authorization
85
+ TreezorClient.configure do |config|
86
+ # Configure API key authorization: api_key
87
+ config.api_key['Authorization'] = 'YOUR API KEY'
88
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
89
+ #config.api_key_prefix['Authorization'] = 'Bearer'
90
+ end
91
+
92
+ api_instance = TreezorClient::TaxResidenceApi.new
93
+
94
+ id = 56 # Integer | id of the residence
95
+
96
+ opts = {
97
+ access_signature: "access_signature_example" # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
98
+ }
99
+
100
+ begin
101
+ #delete a residence
102
+ result = api_instance.tax_residences_id_delete(id, opts)
103
+ p result
104
+ rescue TreezorClient::ApiError => e
105
+ puts "Exception when calling TaxResidenceApi->tax_residences_id_delete: #{e}"
106
+ end
107
+ ```
108
+
109
+ ### Parameters
110
+
111
+ Name | Type | Description | Notes
112
+ ------------- | ------------- | ------------- | -------------
113
+ **id** | **Integer**| id of the residence |
114
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
115
+
116
+ ### Return type
117
+
118
+ [**InlineResponse20028**](InlineResponse20028.md)
119
+
120
+ ### Authorization
121
+
122
+ [api_key](../README.md#api_key)
123
+
124
+ ### HTTP request headers
125
+
126
+ - **Content-Type**: Not defined
127
+ - **Accept**: Not defined
128
+
129
+
130
+
131
+ # **tax_residences_id_get**
132
+ > InlineResponse20028 tax_residences_id_get(id, opts)
133
+
134
+ read the informations of a residence
135
+
136
+ Read the informations of a residence that match with id
137
+
138
+ ### Example
139
+ ```ruby
140
+ # load the gem
141
+ require 'treezor_client'
142
+ # setup authorization
143
+ TreezorClient.configure do |config|
144
+ # Configure API key authorization: api_key
145
+ config.api_key['Authorization'] = 'YOUR API KEY'
146
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
147
+ #config.api_key_prefix['Authorization'] = 'Bearer'
148
+ end
149
+
150
+ api_instance = TreezorClient::TaxResidenceApi.new
151
+
152
+ id = 56 # Integer | id of the residence
153
+
154
+ opts = {
155
+ access_signature: "access_signature_example" # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
156
+ }
157
+
158
+ begin
159
+ #read the informations of a residence
160
+ result = api_instance.tax_residences_id_get(id, opts)
161
+ p result
162
+ rescue TreezorClient::ApiError => e
163
+ puts "Exception when calling TaxResidenceApi->tax_residences_id_get: #{e}"
164
+ end
165
+ ```
166
+
167
+ ### Parameters
168
+
169
+ Name | Type | Description | Notes
170
+ ------------- | ------------- | ------------- | -------------
171
+ **id** | **Integer**| id of the residence |
172
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
173
+
174
+ ### Return type
175
+
176
+ [**InlineResponse20028**](InlineResponse20028.md)
177
+
178
+ ### Authorization
179
+
180
+ [api_key](../README.md#api_key)
181
+
182
+ ### HTTP request headers
183
+
184
+ - **Content-Type**: Not defined
185
+ - **Accept**: Not defined
186
+
187
+
188
+
189
+ # **tax_residences_id_put**
190
+ > InlineResponse20028 tax_residences_id_put(id, opts)
191
+
192
+ update the residence
193
+
194
+ Update a residence already created.
195
+
196
+ ### Example
197
+ ```ruby
198
+ # load the gem
199
+ require 'treezor_client'
200
+ # setup authorization
201
+ TreezorClient.configure do |config|
202
+ # Configure API key authorization: api_key
203
+ config.api_key['Authorization'] = 'YOUR API KEY'
204
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
205
+ #config.api_key_prefix['Authorization'] = 'Bearer'
206
+ end
207
+
208
+ api_instance = TreezorClient::TaxResidenceApi.new
209
+
210
+ id = 56 # Integer | residence id
211
+
212
+ opts = {
213
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
214
+ user_id: 56, # Integer | User's id residence
215
+ country: "country_example", # String | country of the resident
216
+ tax_payer_id: "tax_payer_id_example", # String | Tax payer's id
217
+ liability_waiver: true # BOOLEAN | Tax declaration
218
+ }
219
+
220
+ begin
221
+ #update the residence
222
+ result = api_instance.tax_residences_id_put(id, opts)
223
+ p result
224
+ rescue TreezorClient::ApiError => e
225
+ puts "Exception when calling TaxResidenceApi->tax_residences_id_put: #{e}"
226
+ end
227
+ ```
228
+
229
+ ### Parameters
230
+
231
+ Name | Type | Description | Notes
232
+ ------------- | ------------- | ------------- | -------------
233
+ **id** | **Integer**| residence id |
234
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
235
+ **user_id** | **Integer**| User's id residence | [optional]
236
+ **country** | **String**| country of the resident | [optional]
237
+ **tax_payer_id** | **String**| Tax payer's id | [optional]
238
+ **liability_waiver** | **BOOLEAN**| Tax declaration | [optional]
239
+
240
+ ### Return type
241
+
242
+ [**InlineResponse20028**](InlineResponse20028.md)
243
+
244
+ ### Authorization
245
+
246
+ [api_key](../README.md#api_key)
247
+
248
+ ### HTTP request headers
249
+
250
+ - **Content-Type**: Not defined
251
+ - **Accept**: Not defined
252
+
253
+
254
+
255
+ # **tax_residences_post**
256
+ > InlineResponse20028 tax_residences_post(user_id, country, opts)
257
+
258
+ create a residence
259
+
260
+ Create a new tax residence.
261
+
262
+ ### Example
263
+ ```ruby
264
+ # load the gem
265
+ require 'treezor_client'
266
+ # setup authorization
267
+ TreezorClient.configure do |config|
268
+ # Configure API key authorization: api_key
269
+ config.api_key['Authorization'] = 'YOUR API KEY'
270
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
271
+ #config.api_key_prefix['Authorization'] = 'Bearer'
272
+ end
273
+
274
+ api_instance = TreezorClient::TaxResidenceApi.new
275
+
276
+ user_id = 56 # Integer | User's id residence
277
+
278
+ country = "country_example" # String | country of the resident
279
+
280
+ opts = {
281
+ access_signature: "access_signature_example", # String | Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
282
+ tax_payer_id: "tax_payer_id_example", # String | Tax payer's id
283
+ liability_waiver: true # BOOLEAN | When there is no taxPayerId for a residence, this field shall be set to true.
284
+ }
285
+
286
+ begin
287
+ #create a residence
288
+ result = api_instance.tax_residences_post(user_id, country, opts)
289
+ p result
290
+ rescue TreezorClient::ApiError => e
291
+ puts "Exception when calling TaxResidenceApi->tax_residences_post: #{e}"
292
+ end
293
+ ```
294
+
295
+ ### Parameters
296
+
297
+ Name | Type | Description | Notes
298
+ ------------- | ------------- | ------------- | -------------
299
+ **user_id** | **Integer**| User's id residence |
300
+ **country** | **String**| country of the resident |
301
+ **access_signature** | **String**| Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication). | [optional]
302
+ **tax_payer_id** | **String**| Tax payer's id | [optional]
303
+ **liability_waiver** | **BOOLEAN**| When there is no taxPayerId for a residence, this field shall be set to true. | [optional]
304
+
305
+ ### Return type
306
+
307
+ [**InlineResponse20028**](InlineResponse20028.md)
308
+
309
+ ### Authorization
310
+
311
+ [api_key](../README.md#api_key)
312
+
313
+ ### HTTP request headers
314
+
315
+ - **Content-Type**: Not defined
316
+ - **Accept**: Not defined
317
+
318
+
319
+