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
@@ -0,0 +1,319 @@
1
+ =begin
2
+ #Treezor
3
+
4
+ #Treezor API. more info [here](https://www.treezor.com).
5
+
6
+ OpenAPI spec version: 0.1.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module TreezorClient
16
+ class TaxResidenceApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # search a residence
24
+ # Search a residence that match search criteria
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
27
+ # @option opts [Integer] :id id of the residence
28
+ # @option opts [Integer] :user_id User's id residence
29
+ # @return [InlineResponse20028]
30
+ def tax_residences_get(opts = {})
31
+ data, _status_code, _headers = tax_residences_get_with_http_info(opts)
32
+ return data
33
+ end
34
+
35
+ # search a residence
36
+ # Search a residence that match search criteria
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
39
+ # @option opts [Integer] :id id of the residence
40
+ # @option opts [Integer] :user_id User's id residence
41
+ # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
42
+ def tax_residences_get_with_http_info(opts = {})
43
+ if @api_client.config.debugging
44
+ @api_client.config.logger.debug "Calling API: TaxResidenceApi.tax_residences_get ..."
45
+ end
46
+ # resource path
47
+ local_var_path = "/taxResidences"
48
+
49
+ # query parameters
50
+ query_params = {}
51
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
52
+ query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
53
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
54
+
55
+ # header parameters
56
+ header_params = {}
57
+
58
+ # form parameters
59
+ form_params = {}
60
+
61
+ # http body (model)
62
+ post_body = nil
63
+ auth_names = ['api_key']
64
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
65
+ :header_params => header_params,
66
+ :query_params => query_params,
67
+ :form_params => form_params,
68
+ :body => post_body,
69
+ :auth_names => auth_names,
70
+ :return_type => 'InlineResponse20028')
71
+ if @api_client.config.debugging
72
+ @api_client.config.logger.debug "API called: TaxResidenceApi#tax_residences_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ end
74
+ return data, status_code, headers
75
+ end
76
+
77
+ # delete a residence
78
+ # Delete a residence that match id
79
+ # @param id id of the residence
80
+ # @param [Hash] opts the optional parameters
81
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
82
+ # @return [InlineResponse20028]
83
+ def tax_residences_id_delete(id, opts = {})
84
+ data, _status_code, _headers = tax_residences_id_delete_with_http_info(id, opts)
85
+ return data
86
+ end
87
+
88
+ # delete a residence
89
+ # Delete a residence that match id
90
+ # @param id id of the residence
91
+ # @param [Hash] opts the optional parameters
92
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
93
+ # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
94
+ def tax_residences_id_delete_with_http_info(id, opts = {})
95
+ if @api_client.config.debugging
96
+ @api_client.config.logger.debug "Calling API: TaxResidenceApi.tax_residences_id_delete ..."
97
+ end
98
+ # verify the required parameter 'id' is set
99
+ if @api_client.config.client_side_validation && id.nil?
100
+ fail ArgumentError, "Missing the required parameter 'id' when calling TaxResidenceApi.tax_residences_id_delete"
101
+ end
102
+ # resource path
103
+ local_var_path = "/taxResidences/{id}".sub('{' + 'id' + '}', id.to_s)
104
+
105
+ # query parameters
106
+ query_params = {}
107
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
108
+
109
+ # header parameters
110
+ header_params = {}
111
+
112
+ # form parameters
113
+ form_params = {}
114
+
115
+ # http body (model)
116
+ post_body = nil
117
+ auth_names = ['api_key']
118
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
119
+ :header_params => header_params,
120
+ :query_params => query_params,
121
+ :form_params => form_params,
122
+ :body => post_body,
123
+ :auth_names => auth_names,
124
+ :return_type => 'InlineResponse20028')
125
+ if @api_client.config.debugging
126
+ @api_client.config.logger.debug "API called: TaxResidenceApi#tax_residences_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
127
+ end
128
+ return data, status_code, headers
129
+ end
130
+
131
+ # read the informations of a residence
132
+ # Read the informations of a residence that match with id
133
+ # @param id id of the residence
134
+ # @param [Hash] opts the optional parameters
135
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
136
+ # @return [InlineResponse20028]
137
+ def tax_residences_id_get(id, opts = {})
138
+ data, _status_code, _headers = tax_residences_id_get_with_http_info(id, opts)
139
+ return data
140
+ end
141
+
142
+ # read the informations of a residence
143
+ # Read the informations of a residence that match with id
144
+ # @param id id of the residence
145
+ # @param [Hash] opts the optional parameters
146
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
147
+ # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
148
+ def tax_residences_id_get_with_http_info(id, opts = {})
149
+ if @api_client.config.debugging
150
+ @api_client.config.logger.debug "Calling API: TaxResidenceApi.tax_residences_id_get ..."
151
+ end
152
+ # verify the required parameter 'id' is set
153
+ if @api_client.config.client_side_validation && id.nil?
154
+ fail ArgumentError, "Missing the required parameter 'id' when calling TaxResidenceApi.tax_residences_id_get"
155
+ end
156
+ # resource path
157
+ local_var_path = "/taxResidences/{id}".sub('{' + 'id' + '}', id.to_s)
158
+
159
+ # query parameters
160
+ query_params = {}
161
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
162
+
163
+ # header parameters
164
+ header_params = {}
165
+
166
+ # form parameters
167
+ form_params = {}
168
+
169
+ # http body (model)
170
+ post_body = nil
171
+ auth_names = ['api_key']
172
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
173
+ :header_params => header_params,
174
+ :query_params => query_params,
175
+ :form_params => form_params,
176
+ :body => post_body,
177
+ :auth_names => auth_names,
178
+ :return_type => 'InlineResponse20028')
179
+ if @api_client.config.debugging
180
+ @api_client.config.logger.debug "API called: TaxResidenceApi#tax_residences_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
181
+ end
182
+ return data, status_code, headers
183
+ end
184
+
185
+ # update the residence
186
+ # Update a residence already created.
187
+ # @param id residence id
188
+ # @param [Hash] opts the optional parameters
189
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
190
+ # @option opts [Integer] :user_id User&#39;s id residence
191
+ # @option opts [String] :country country of the resident
192
+ # @option opts [String] :tax_payer_id Tax payer&#39;s id
193
+ # @option opts [BOOLEAN] :liability_waiver Tax declaration
194
+ # @return [InlineResponse20028]
195
+ def tax_residences_id_put(id, opts = {})
196
+ data, _status_code, _headers = tax_residences_id_put_with_http_info(id, opts)
197
+ return data
198
+ end
199
+
200
+ # update the residence
201
+ # Update a residence already created.
202
+ # @param id residence id
203
+ # @param [Hash] opts the optional parameters
204
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
205
+ # @option opts [Integer] :user_id User&#39;s id residence
206
+ # @option opts [String] :country country of the resident
207
+ # @option opts [String] :tax_payer_id Tax payer&#39;s id
208
+ # @option opts [BOOLEAN] :liability_waiver Tax declaration
209
+ # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
210
+ def tax_residences_id_put_with_http_info(id, opts = {})
211
+ if @api_client.config.debugging
212
+ @api_client.config.logger.debug "Calling API: TaxResidenceApi.tax_residences_id_put ..."
213
+ end
214
+ # verify the required parameter 'id' is set
215
+ if @api_client.config.client_side_validation && id.nil?
216
+ fail ArgumentError, "Missing the required parameter 'id' when calling TaxResidenceApi.tax_residences_id_put"
217
+ end
218
+ # resource path
219
+ local_var_path = "/taxResidences/{id}".sub('{' + 'id' + '}', id.to_s)
220
+
221
+ # query parameters
222
+ query_params = {}
223
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
224
+ query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
225
+ query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
226
+ query_params[:'taxPayerId'] = opts[:'tax_payer_id'] if !opts[:'tax_payer_id'].nil?
227
+ query_params[:'liabilityWaiver'] = opts[:'liability_waiver'] if !opts[:'liability_waiver'].nil?
228
+
229
+ # header parameters
230
+ header_params = {}
231
+
232
+ # form parameters
233
+ form_params = {}
234
+
235
+ # http body (model)
236
+ post_body = nil
237
+ auth_names = ['api_key']
238
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
239
+ :header_params => header_params,
240
+ :query_params => query_params,
241
+ :form_params => form_params,
242
+ :body => post_body,
243
+ :auth_names => auth_names,
244
+ :return_type => 'InlineResponse20028')
245
+ if @api_client.config.debugging
246
+ @api_client.config.logger.debug "API called: TaxResidenceApi#tax_residences_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
247
+ end
248
+ return data, status_code, headers
249
+ end
250
+
251
+ # create a residence
252
+ # Create a new tax residence.
253
+ # @param user_id User&#39;s id residence
254
+ # @param country country of the resident
255
+ # @param [Hash] opts the optional parameters
256
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
257
+ # @option opts [String] :tax_payer_id Tax payer&#39;s id
258
+ # @option opts [BOOLEAN] :liability_waiver When there is no taxPayerId for a residence, this field shall be set to true.
259
+ # @return [InlineResponse20028]
260
+ def tax_residences_post(user_id, country, opts = {})
261
+ data, _status_code, _headers = tax_residences_post_with_http_info(user_id, country, opts)
262
+ return data
263
+ end
264
+
265
+ # create a residence
266
+ # Create a new tax residence.
267
+ # @param user_id User&#39;s id residence
268
+ # @param country country of the resident
269
+ # @param [Hash] opts the optional parameters
270
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
271
+ # @option opts [String] :tax_payer_id Tax payer&#39;s id
272
+ # @option opts [BOOLEAN] :liability_waiver When there is no taxPayerId for a residence, this field shall be set to true.
273
+ # @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
274
+ def tax_residences_post_with_http_info(user_id, country, opts = {})
275
+ if @api_client.config.debugging
276
+ @api_client.config.logger.debug "Calling API: TaxResidenceApi.tax_residences_post ..."
277
+ end
278
+ # verify the required parameter 'user_id' is set
279
+ if @api_client.config.client_side_validation && user_id.nil?
280
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling TaxResidenceApi.tax_residences_post"
281
+ end
282
+ # verify the required parameter 'country' is set
283
+ if @api_client.config.client_side_validation && country.nil?
284
+ fail ArgumentError, "Missing the required parameter 'country' when calling TaxResidenceApi.tax_residences_post"
285
+ end
286
+ # resource path
287
+ local_var_path = "/taxResidences"
288
+
289
+ # query parameters
290
+ query_params = {}
291
+ query_params[:'userId'] = user_id
292
+ query_params[:'country'] = country
293
+ query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
294
+ query_params[:'taxPayerId'] = opts[:'tax_payer_id'] if !opts[:'tax_payer_id'].nil?
295
+ query_params[:'liabilityWaiver'] = opts[:'liability_waiver'] if !opts[:'liability_waiver'].nil?
296
+
297
+ # header parameters
298
+ header_params = {}
299
+
300
+ # form parameters
301
+ form_params = {}
302
+
303
+ # http body (model)
304
+ post_body = nil
305
+ auth_names = ['api_key']
306
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
307
+ :header_params => header_params,
308
+ :query_params => query_params,
309
+ :form_params => form_params,
310
+ :body => post_body,
311
+ :auth_names => auth_names,
312
+ :return_type => 'InlineResponse20028')
313
+ if @api_client.config.debugging
314
+ @api_client.config.logger.debug "API called: TaxResidenceApi#tax_residences_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
315
+ end
316
+ return data, status_code, headers
317
+ end
318
+ end
319
+ end
@@ -24,7 +24,7 @@ module TreezorClient
24
24
  # Get a transaction from the system.
25
25
  # @param id Transaction&#39;s internal id.
26
26
  # @param [Hash] opts the optional parameters
27
- # @return [InlineResponse20020]
27
+ # @return [InlineResponse20022]
28
28
  def get_transaction(id, opts = {})
29
29
  data, _status_code, _headers = get_transaction_with_http_info(id, opts)
30
30
  return data
@@ -34,7 +34,7 @@ module TreezorClient
34
34
  # Get a transaction from the system.
35
35
  # @param id Transaction&#39;s internal id.
36
36
  # @param [Hash] opts the optional parameters
37
- # @return [Array<(InlineResponse20020, Fixnum, Hash)>] InlineResponse20020 data, response status code and response headers
37
+ # @return [Array<(InlineResponse20022, Fixnum, Hash)>] InlineResponse20022 data, response status code and response headers
38
38
  def get_transaction_with_http_info(id, opts = {})
39
39
  if @api_client.config.debugging
40
40
  @api_client.config.logger.debug "Calling API: TransactionApi.get_transaction ..."
@@ -68,7 +68,7 @@ module TreezorClient
68
68
  :form_params => form_params,
69
69
  :body => post_body,
70
70
  :auth_names => auth_names,
71
- :return_type => 'InlineResponse20020')
71
+ :return_type => 'InlineResponse20022')
72
72
  if @api_client.config.debugging
73
73
  @api_client.config.logger.debug "API called: TransactionApi#get_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
74
74
  end
@@ -78,10 +78,10 @@ module TreezorClient
78
78
  # search transactions
79
79
  # Get transactions that match search criteria.
80
80
  # @param [Hash] opts the optional parameters
81
- # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
82
- # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
83
- # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
84
- # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
81
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
82
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
83
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
84
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
85
85
  # @option opts [Integer] :transaction_id Transaction&#39;s Id
86
86
  # @option opts [String] :transaction_type Transaction types. Possible values: * Payin * Payout * Transfer * Transfer Refund * Payin Refund * Discount * Bill
87
87
  # @option opts [Integer] :wallet_id Transactions&#39; wallet id.
@@ -92,13 +92,13 @@ module TreezorClient
92
92
  # @option opts [String] :currency Transfert amount currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217).
93
93
  # @option opts [DateTime] :value_date The value date of the transaction (date applied for the payment) Format : YYYY-MM-DD HH:MM:SS
94
94
  # @option opts [DateTime] :execution_date Date of the execution of the transaction Format : YYYY-MM-DD HH:MM:SS
95
- # @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
96
- # @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
97
- # @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
95
+ # @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
96
+ # @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
97
+ # @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
98
98
  # @option opts [String] :sort_order 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).
99
- # @option opts [DateTime] :created_date_from 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)
100
- # @option opts [DateTime] :created_date_to 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)
101
- # @return [InlineResponse20020]
99
+ # @option opts [DateTime] :created_date_from 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)
100
+ # @option opts [DateTime] :created_date_to 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)
101
+ # @return [InlineResponse20022]
102
102
  def get_transactions(opts = {})
103
103
  data, _status_code, _headers = get_transactions_with_http_info(opts)
104
104
  return data
@@ -107,10 +107,10 @@ module TreezorClient
107
107
  # search transactions
108
108
  # Get transactions that match search criteria.
109
109
  # @param [Hash] opts the optional parameters
110
- # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
111
- # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
112
- # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
113
- # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
110
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
111
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
112
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
113
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
114
114
  # @option opts [Integer] :transaction_id Transaction&#39;s Id
115
115
  # @option opts [String] :transaction_type Transaction types. Possible values: * Payin * Payout * Transfer * Transfer Refund * Payin Refund * Discount * Bill
116
116
  # @option opts [Integer] :wallet_id Transactions&#39; wallet id.
@@ -121,13 +121,13 @@ module TreezorClient
121
121
  # @option opts [String] :currency Transfert amount currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217).
122
122
  # @option opts [DateTime] :value_date The value date of the transaction (date applied for the payment) Format : YYYY-MM-DD HH:MM:SS
123
123
  # @option opts [DateTime] :execution_date Date of the execution of the transaction Format : YYYY-MM-DD HH:MM:SS
124
- # @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
125
- # @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
126
- # @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
124
+ # @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
125
+ # @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
126
+ # @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
127
127
  # @option opts [String] :sort_order 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).
128
- # @option opts [DateTime] :created_date_from 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)
129
- # @option opts [DateTime] :created_date_to 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)
130
- # @return [Array<(InlineResponse20020, Fixnum, Hash)>] InlineResponse20020 data, response status code and response headers
128
+ # @option opts [DateTime] :created_date_from 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)
129
+ # @option opts [DateTime] :created_date_to 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)
130
+ # @return [Array<(InlineResponse20022, Fixnum, Hash)>] InlineResponse20022 data, response status code and response headers
131
131
  def get_transactions_with_http_info(opts = {})
132
132
  if @api_client.config.debugging
133
133
  @api_client.config.logger.debug "Calling API: TransactionApi.get_transactions ..."
@@ -177,7 +177,7 @@ module TreezorClient
177
177
  :form_params => form_params,
178
178
  :body => post_body,
179
179
  :auth_names => auth_names,
180
- :return_type => 'InlineResponse20020')
180
+ :return_type => 'InlineResponse20022')
181
181
  if @api_client.config.debugging
182
182
  @api_client.config.logger.debug "API called: TransactionApi#get_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
183
183
  end
@@ -24,7 +24,7 @@ module TreezorClient
24
24
  # Change transfer's status to CANCELED. A validated transfer can't be cancelled.
25
25
  # @param id Transfert internal id.
26
26
  # @param [Hash] opts the optional parameters
27
- # @return [InlineResponse20021]
27
+ # @return [InlineResponse20023]
28
28
  def delete_transfer(id, opts = {})
29
29
  data, _status_code, _headers = delete_transfer_with_http_info(id, opts)
30
30
  return data
@@ -34,7 +34,7 @@ module TreezorClient
34
34
  # Change transfer&#39;s status to CANCELED. A validated transfer can&#39;t be cancelled.
35
35
  # @param id Transfert internal id.
36
36
  # @param [Hash] opts the optional parameters
37
- # @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
37
+ # @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
38
38
  def delete_transfer_with_http_info(id, opts = {})
39
39
  if @api_client.config.debugging
40
40
  @api_client.config.logger.debug "Calling API: TransferApi.delete_transfer ..."
@@ -68,7 +68,7 @@ module TreezorClient
68
68
  :form_params => form_params,
69
69
  :body => post_body,
70
70
  :auth_names => auth_names,
71
- :return_type => 'InlineResponse20021')
71
+ :return_type => 'InlineResponse20023')
72
72
  if @api_client.config.debugging
73
73
  @api_client.config.logger.debug "API called: TransferApi#delete_transfer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
74
74
  end
@@ -79,7 +79,7 @@ module TreezorClient
79
79
  # Get a transfert from the system.
80
80
  # @param id Transfers internal id.
81
81
  # @param [Hash] opts the optional parameters
82
- # @return [InlineResponse20021]
82
+ # @return [InlineResponse20023]
83
83
  def get_transfer(id, opts = {})
84
84
  data, _status_code, _headers = get_transfer_with_http_info(id, opts)
85
85
  return data
@@ -89,7 +89,7 @@ module TreezorClient
89
89
  # Get a transfert from the system.
90
90
  # @param id Transfers internal id.
91
91
  # @param [Hash] opts the optional parameters
92
- # @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
92
+ # @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
93
93
  def get_transfer_with_http_info(id, opts = {})
94
94
  if @api_client.config.debugging
95
95
  @api_client.config.logger.debug "Calling API: TransferApi.get_transfer ..."
@@ -123,7 +123,7 @@ module TreezorClient
123
123
  :form_params => form_params,
124
124
  :body => post_body,
125
125
  :auth_names => auth_names,
126
- :return_type => 'InlineResponse20021')
126
+ :return_type => 'InlineResponse20023')
127
127
  if @api_client.config.debugging
128
128
  @api_client.config.logger.debug "API called: TransferApi#get_transfer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
129
129
  end
@@ -133,10 +133,10 @@ module TreezorClient
133
133
  # search transfers
134
134
  # Search for transfers in the system.
135
135
  # @param [Hash] opts the optional parameters
136
- # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
137
- # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
138
- # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
139
- # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
136
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
137
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
138
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
139
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
140
140
  # @option opts [Integer] :transfer_id Transfer&#39;s id.
141
141
  # @option opts [String] :transfer_tag Custom data.
142
142
  # @option opts [String] :transfer_status Transfer&#39;s status. Possible values: * PENDING * CANCELED * VALIDATED
@@ -149,19 +149,19 @@ module TreezorClient
149
149
  # @option opts [Integer] :beneficiary_wallet_type_id Credited wallet&#39;s type id.
150
150
  # @option opts [Integer] :user_id Debited wallet user&#39;s id.
151
151
  # @option opts [Integer] :beneficiary_user_id Credited wallet user&#39;s id.
152
- # @option opts [DateTime] :transfer_date Transfert&#39;s date. Format : YYYY-MM-DD HH:MM:SS
152
+ # @option opts [DateTime] :transfer_date Transfer&#39;s date. Format : YYYY-MM-DD HH:MM:SS
153
153
  # @option opts [String] :amount Transfert&#39;s amount.
154
154
  # @option opts [String] :currency Transfert amount currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217).
155
155
  # @option opts [Integer] :transfer_type_id The Type Id of the Transfer: | ID | Description | |-----|-----| | 1 | Wallet to wallet | | 2 | Card transaction | | 3 | Client fees | | 4 | Credit note |
156
- # @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
157
- # @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
158
- # @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
156
+ # @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
157
+ # @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
158
+ # @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
159
159
  # @option opts [String] :sort_order 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).
160
- # @option opts [DateTime] :created_date_from 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)
161
- # @option opts [DateTime] :created_date_to 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)
162
- # @option opts [DateTime] :updated_date_from 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)
163
- # @option opts [DateTime] :updated_date_to 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)
164
- # @return [InlineResponse20021]
160
+ # @option opts [DateTime] :created_date_from 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)
161
+ # @option opts [DateTime] :created_date_to 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)
162
+ # @option opts [DateTime] :updated_date_from 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)
163
+ # @option opts [DateTime] :updated_date_to 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)
164
+ # @return [InlineResponse20023]
165
165
  def get_transfers(opts = {})
166
166
  data, _status_code, _headers = get_transfers_with_http_info(opts)
167
167
  return data
@@ -170,10 +170,10 @@ module TreezorClient
170
170
  # search transfers
171
171
  # Search for transfers in the system.
172
172
  # @param [Hash] opts the optional parameters
173
- # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
174
- # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
175
- # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
176
- # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
173
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
174
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
175
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
176
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
177
177
  # @option opts [Integer] :transfer_id Transfer&#39;s id.
178
178
  # @option opts [String] :transfer_tag Custom data.
179
179
  # @option opts [String] :transfer_status Transfer&#39;s status. Possible values: * PENDING * CANCELED * VALIDATED
@@ -186,19 +186,19 @@ module TreezorClient
186
186
  # @option opts [Integer] :beneficiary_wallet_type_id Credited wallet&#39;s type id.
187
187
  # @option opts [Integer] :user_id Debited wallet user&#39;s id.
188
188
  # @option opts [Integer] :beneficiary_user_id Credited wallet user&#39;s id.
189
- # @option opts [DateTime] :transfer_date Transfert&#39;s date. Format : YYYY-MM-DD HH:MM:SS
189
+ # @option opts [DateTime] :transfer_date Transfer&#39;s date. Format : YYYY-MM-DD HH:MM:SS
190
190
  # @option opts [String] :amount Transfert&#39;s amount.
191
191
  # @option opts [String] :currency Transfert amount currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217).
192
192
  # @option opts [Integer] :transfer_type_id The Type Id of the Transfer: | ID | Description | |-----|-----| | 1 | Wallet to wallet | | 2 | Card transaction | | 3 | Client fees | | 4 | Credit note |
193
- # @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
194
- # @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
195
- # @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
193
+ # @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
194
+ # @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
195
+ # @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
196
196
  # @option opts [String] :sort_order 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).
197
- # @option opts [DateTime] :created_date_from 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)
198
- # @option opts [DateTime] :created_date_to 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)
199
- # @option opts [DateTime] :updated_date_from 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)
200
- # @option opts [DateTime] :updated_date_to 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)
201
- # @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
197
+ # @option opts [DateTime] :created_date_from 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)
198
+ # @option opts [DateTime] :created_date_to 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)
199
+ # @option opts [DateTime] :updated_date_from 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)
200
+ # @option opts [DateTime] :updated_date_to 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)
201
+ # @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
202
202
  def get_transfers_with_http_info(opts = {})
203
203
  if @api_client.config.debugging
204
204
  @api_client.config.logger.debug "Calling API: TransferApi.get_transfers ..."
@@ -256,7 +256,7 @@ module TreezorClient
256
256
  :form_params => form_params,
257
257
  :body => post_body,
258
258
  :auth_names => auth_names,
259
- :return_type => 'InlineResponse20021')
259
+ :return_type => 'InlineResponse20023')
260
260
  if @api_client.config.debugging
261
261
  @api_client.config.logger.debug "API called: TransferApi#get_transfers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
262
262
  end
@@ -268,16 +268,16 @@ module TreezorClient
268
268
  # @param wallet_id Debited wallet&#39;s ID
269
269
  # @param beneficiary_wallet_id Credited wallet&#39;s ID
270
270
  # @param amount Transfer&#39;s amount
271
- # @param currency Transfert&#39;s currency. Debited wallet and credited wallet must share same currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217).
271
+ # @param currency Transfert&#39;s currency. Debited wallet and credited wallet must share same currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217).
272
272
  # @param [Hash] opts the optional parameters
273
- # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
274
- # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
275
- # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
276
- # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
273
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
274
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
275
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
276
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
277
277
  # @option opts [String] :transfer_tag Custom data.
278
278
  # @option opts [String] :label Custom data.
279
279
  # @option opts [Integer] :transfer_type_id The Type Id of the Transfer: | ID | Description | |-----|-----| | 1 | Wallet to wallet (default value) | | 3 | Client fees | | 4 | Credit note |
280
- # @return [InlineResponse20021]
280
+ # @return [InlineResponse20023]
281
281
  def post_transfers(wallet_id, beneficiary_wallet_id, amount, currency, opts = {})
282
282
  data, _status_code, _headers = post_transfers_with_http_info(wallet_id, beneficiary_wallet_id, amount, currency, opts)
283
283
  return data
@@ -288,16 +288,16 @@ module TreezorClient
288
288
  # @param wallet_id Debited wallet&#39;s ID
289
289
  # @param beneficiary_wallet_id Credited wallet&#39;s ID
290
290
  # @param amount Transfer&#39;s amount
291
- # @param currency Transfert&#39;s currency. Debited wallet and credited wallet must share same currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217).
291
+ # @param currency Transfert&#39;s currency. Debited wallet and credited wallet must share same currency. Format: [ISO 4217](https://fr.wikipedia.org/wiki/ISO_4217).
292
292
  # @param [Hash] opts the optional parameters
293
- # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
294
- # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
295
- # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
296
- # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
293
+ # @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
294
+ # @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
295
+ # @option opts [Integer] :access_user_id Access user&#39;s id is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
296
+ # @option opts [String] :access_user_ip Access user&#39;s ip is used for user&#39;s action restriction. More info [here](https://agent.treezor.com/basics).
297
297
  # @option opts [String] :transfer_tag Custom data.
298
298
  # @option opts [String] :label Custom data.
299
299
  # @option opts [Integer] :transfer_type_id The Type Id of the Transfer: | ID | Description | |-----|-----| | 1 | Wallet to wallet (default value) | | 3 | Client fees | | 4 | Credit note |
300
- # @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
300
+ # @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
301
301
  def post_transfers_with_http_info(wallet_id, beneficiary_wallet_id, amount, currency, opts = {})
302
302
  if @api_client.config.debugging
303
303
  @api_client.config.logger.debug "Calling API: TransferApi.post_transfers ..."
@@ -354,7 +354,7 @@ module TreezorClient
354
354
  :form_params => form_params,
355
355
  :body => post_body,
356
356
  :auth_names => auth_names,
357
- :return_type => 'InlineResponse20021')
357
+ :return_type => 'InlineResponse20023')
358
358
  if @api_client.config.debugging
359
359
  @api_client.config.logger.debug "API called: TransferApi#post_transfers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
360
360
  end