treezor_client 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/docs/BalanceApi.md +3 -3
  4. data/docs/BankaccountApi.md +21 -21
  5. data/docs/BeneficiariesApi.md +18 -18
  6. data/docs/BusinessApi.md +22 -22
  7. data/docs/CardApi.md +66 -66
  8. data/docs/CardDigitalizationsApi.md +9 -9
  9. data/docs/CardReserveApi.md +9 -9
  10. data/docs/CardtransactionApi.md +5 -5
  11. data/docs/CountryRestrictionGroupsApi.md +16 -16
  12. data/docs/DocumentApi.md +23 -23
  13. data/docs/HeartbeatApi.md +3 -3
  14. data/docs/IssuerInitiatedDigitizationDataApi.md +10 -10
  15. data/docs/MandateApi.md +33 -33
  16. data/docs/MccRestrictionGroupsApi.md +16 -16
  17. data/docs/MerchantIdRestrictionGroupsApi.md +15 -15
  18. data/docs/PayinApi.md +28 -28
  19. data/docs/PayinrefundApi.md +20 -20
  20. data/docs/PayoutApi.md +27 -27
  21. data/docs/PayoutRefundsApi.md +6 -6
  22. data/docs/TaxResidenceApi.md +9 -9
  23. data/docs/TransactionApi.md +14 -14
  24. data/docs/TransferApi.md +23 -23
  25. data/docs/TransferrefundApi.md +19 -19
  26. data/docs/UserApi.md +103 -103
  27. data/docs/VirtualibansApi.md +24 -24
  28. data/docs/WalletApi.md +45 -45
  29. data/lib/treezor_client/api/balance_api.rb +5 -6
  30. data/lib/treezor_client/api/bankaccount_api.rb +14 -18
  31. data/lib/treezor_client/api/beneficiaries_api.rb +14 -18
  32. data/lib/treezor_client/api/business_api.rb +11 -13
  33. data/lib/treezor_client/api/card_api.rb +53 -76
  34. data/lib/treezor_client/api/card_digitalizations_api.rb +14 -18
  35. data/lib/treezor_client/api/card_reserve_api.rb +11 -14
  36. data/lib/treezor_client/api/cardtransaction_api.rb +8 -10
  37. data/lib/treezor_client/api/country_restriction_groups_api.rb +17 -22
  38. data/lib/treezor_client/api/document_api.rb +28 -33
  39. data/lib/treezor_client/api/heartbeat_api.rb +5 -6
  40. data/lib/treezor_client/api/issuer_initiated_digitization_data_api.rb +8 -10
  41. data/lib/treezor_client/api/mandate_api.rb +20 -26
  42. data/lib/treezor_client/api/mcc_restriction_groups_api.rb +17 -22
  43. data/lib/treezor_client/api/merchant_id_restriction_groups_api.rb +17 -22
  44. data/lib/treezor_client/api/payin_api.rb +14 -18
  45. data/lib/treezor_client/api/payinrefund_api.rb +14 -18
  46. data/lib/treezor_client/api/payout_api.rb +14 -18
  47. data/lib/treezor_client/api/payout_refunds_api.rb +5 -6
  48. data/lib/treezor_client/api/tax_residence_api.rb +17 -22
  49. data/lib/treezor_client/api/transaction_api.rb +8 -10
  50. data/lib/treezor_client/api/transfer_api.rb +14 -18
  51. data/lib/treezor_client/api/transferrefund_api.rb +14 -18
  52. data/lib/treezor_client/api/user_api.rb +20 -26
  53. data/lib/treezor_client/api/virtualibans_api.rb +14 -18
  54. data/lib/treezor_client/api/wallet_api.rb +17 -22
  55. data/lib/treezor_client/api_client.rb +9 -9
  56. data/lib/treezor_client/api_error.rb +1 -1
  57. data/lib/treezor_client/configuration.rb +2 -2
  58. data/lib/treezor_client/models/balance.rb +6 -11
  59. data/lib/treezor_client/models/bankaccount.rb +9 -13
  60. data/lib/treezor_client/models/beneficiaries_sdd_b2b_whitelist.rb +8 -13
  61. data/lib/treezor_client/models/beneficiary.rb +6 -11
  62. data/lib/treezor_client/models/body.rb +11 -15
  63. data/lib/treezor_client/models/body_1.rb +8 -13
  64. data/lib/treezor_client/models/body_10.rb +9 -13
  65. data/lib/treezor_client/models/body_2.rb +6 -11
  66. data/lib/treezor_client/models/body_3.rb +8 -13
  67. data/lib/treezor_client/models/body_4.rb +8 -13
  68. data/lib/treezor_client/models/body_5.rb +11 -15
  69. data/lib/treezor_client/models/body_6.rb +9 -13
  70. data/lib/treezor_client/models/body_7.rb +11 -15
  71. data/lib/treezor_client/models/body_8.rb +9 -13
  72. data/lib/treezor_client/models/body_9.rb +11 -15
  73. data/lib/treezor_client/models/businesssearchs_businessinformations.rb +9 -13
  74. data/lib/treezor_client/models/card.rb +9 -13
  75. data/lib/treezor_client/models/card_digitalization.rb +6 -11
  76. data/lib/treezor_client/models/country_restriction_group.rb +9 -13
  77. data/lib/treezor_client/models/document.rb +9 -13
  78. data/lib/treezor_client/models/error.rb +6 -11
  79. data/lib/treezor_client/models/inline_response_200.rb +6 -11
  80. data/lib/treezor_client/models/inline_response_200_1.rb +6 -11
  81. data/lib/treezor_client/models/inline_response_200_10.rb +6 -11
  82. data/lib/treezor_client/models/inline_response_200_10_cardtransactions.rb +6 -11
  83. data/lib/treezor_client/models/inline_response_200_11.rb +6 -11
  84. data/lib/treezor_client/models/inline_response_200_11_cardtransactions.rb +6 -11
  85. data/lib/treezor_client/models/inline_response_200_12.rb +6 -11
  86. data/lib/treezor_client/models/inline_response_200_13.rb +6 -11
  87. data/lib/treezor_client/models/inline_response_200_14.rb +6 -11
  88. data/lib/treezor_client/models/inline_response_200_15.rb +6 -11
  89. data/lib/treezor_client/models/inline_response_200_16.rb +6 -11
  90. data/lib/treezor_client/models/inline_response_200_17.rb +6 -11
  91. data/lib/treezor_client/models/inline_response_200_18.rb +6 -11
  92. data/lib/treezor_client/models/inline_response_200_19.rb +6 -11
  93. data/lib/treezor_client/models/inline_response_200_2.rb +6 -11
  94. data/lib/treezor_client/models/inline_response_200_20.rb +6 -11
  95. data/lib/treezor_client/models/inline_response_200_21.rb +6 -11
  96. data/lib/treezor_client/models/inline_response_200_22.rb +6 -11
  97. data/lib/treezor_client/models/inline_response_200_23.rb +6 -11
  98. data/lib/treezor_client/models/inline_response_200_24.rb +6 -11
  99. data/lib/treezor_client/models/inline_response_200_25.rb +6 -11
  100. data/lib/treezor_client/models/inline_response_200_26.rb +6 -11
  101. data/lib/treezor_client/models/inline_response_200_27.rb +6 -11
  102. data/lib/treezor_client/models/inline_response_200_28.rb +6 -11
  103. data/lib/treezor_client/models/inline_response_200_3.rb +6 -11
  104. data/lib/treezor_client/models/inline_response_200_4.rb +6 -11
  105. data/lib/treezor_client/models/inline_response_200_5.rb +6 -11
  106. data/lib/treezor_client/models/inline_response_200_5_businessinformations.rb +21 -25
  107. data/lib/treezor_client/models/inline_response_200_5_users.rb +9 -13
  108. data/lib/treezor_client/models/inline_response_200_6.rb +6 -11
  109. data/lib/treezor_client/models/inline_response_200_7.rb +6 -11
  110. data/lib/treezor_client/models/inline_response_200_7_cardimages.rb +8 -14
  111. data/lib/treezor_client/models/inline_response_200_8.rb +6 -11
  112. data/lib/treezor_client/models/inline_response_200_9.rb +6 -11
  113. data/lib/treezor_client/models/inline_response_default.rb +6 -11
  114. data/lib/treezor_client/models/issuer_initiated_digitization_datas_additionnal_data.rb +8 -13
  115. data/lib/treezor_client/models/mandate.rb +15 -19
  116. data/lib/treezor_client/models/mcc_restriction_group.rb +9 -13
  117. data/lib/treezor_client/models/merchant_id_restriction_group.rb +9 -13
  118. data/lib/treezor_client/models/payin.rb +9 -13
  119. data/lib/treezor_client/models/payinrefund.rb +9 -13
  120. data/lib/treezor_client/models/payout.rb +12 -16
  121. data/lib/treezor_client/models/payout_refund.rb +9 -13
  122. data/lib/treezor_client/models/tav.rb +6 -11
  123. data/lib/treezor_client/models/tax_residence.rb +6 -11
  124. data/lib/treezor_client/models/transaction.rb +6 -11
  125. data/lib/treezor_client/models/transfer.rb +9 -13
  126. data/lib/treezor_client/models/transferrefund.rb +9 -13
  127. data/lib/treezor_client/models/user.rb +12 -16
  128. data/lib/treezor_client/models/virtualiban.rb +6 -11
  129. data/lib/treezor_client/models/wallet.rb +9 -13
  130. data/lib/treezor_client/version.rb +2 -2
  131. data/lib/treezor_client.rb +1 -1
  132. data/pkg/treezor_client-1.3.0.gem +0 -0
  133. data/pkg/treezor_client-1.4.0.gem +0 -0
  134. data/treezor_api_spec.yaml +11 -11
  135. metadata +4 -2
@@ -6,11 +6,11 @@
6
6
  OpenAPI spec version: 0.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.1
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module TreezorClient
16
16
  class DocumentApi
@@ -19,7 +19,6 @@ module TreezorClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # create a document
24
23
  # Search for documents.
25
24
  # @param user_id Document user's id.
@@ -36,7 +35,7 @@ module TreezorClient
36
35
  # @return [InlineResponse20012]
37
36
  def create_documents(user_id, document_type_id, name, file_content_base64, opts = {})
38
37
  data, _status_code, _headers = create_documents_with_http_info(user_id, document_type_id, name, file_content_base64, opts)
39
- return data
38
+ data
40
39
  end
41
40
 
42
41
  # create a document
@@ -55,7 +54,7 @@ module TreezorClient
55
54
  # @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
56
55
  def create_documents_with_http_info(user_id, document_type_id, name, file_content_base64, opts = {})
57
56
  if @api_client.config.debugging
58
- @api_client.config.logger.debug "Calling API: DocumentApi.create_documents ..."
57
+ @api_client.config.logger.debug 'Calling API: DocumentApi.create_documents ...'
59
58
  end
60
59
  # verify the required parameter 'user_id' is set
61
60
  if @api_client.config.client_side_validation && user_id.nil?
@@ -78,30 +77,30 @@ module TreezorClient
78
77
  end
79
78
 
80
79
  # resource path
81
- local_var_path = "/documents"
80
+ local_var_path = '/documents'
82
81
 
83
82
  # query parameters
84
83
  query_params = {}
85
- query_params[:'userId'] = user_id
86
- query_params[:'documentTypeId'] = document_type_id
87
- query_params[:'name'] = name
88
- query_params[:'fileContentBase64'] = file_content_base64
89
- query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
90
- query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
91
- query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
92
- query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
93
- query_params[:'documentTag'] = opts[:'document_tag'] if !opts[:'document_tag'].nil?
94
- query_params[:'residenceId'] = opts[:'residence_id'] if !opts[:'residence_id'].nil?
95
84
 
96
85
  # header parameters
97
86
  header_params = {}
98
87
  # HTTP header 'Accept' (if needed)
99
88
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
100
89
  # HTTP header 'Content-Type'
101
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
90
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
102
91
 
103
92
  # form parameters
104
93
  form_params = {}
94
+ form_params['userId'] = user_id
95
+ form_params['documentTypeId'] = document_type_id
96
+ form_params['name'] = name
97
+ form_params['fileContentBase64'] = file_content_base64
98
+ form_params['accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
99
+ form_params['accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
100
+ form_params['accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
101
+ form_params['accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
102
+ form_params['documentTag'] = opts[:'document_tag'] if !opts[:'document_tag'].nil?
103
+ form_params['residenceId'] = opts[:'residence_id'] if !opts[:'residence_id'].nil?
105
104
 
106
105
  # http body (model)
107
106
  post_body = nil
@@ -118,7 +117,6 @@ module TreezorClient
118
117
  end
119
118
  return data, status_code, headers
120
119
  end
121
-
122
120
  # delete document
123
121
  # Remove a document from the system.
124
122
  # @param id Document&#39;s internal id.
@@ -126,7 +124,7 @@ module TreezorClient
126
124
  # @return [InlineResponse20012]
127
125
  def delete_document(id, opts = {})
128
126
  data, _status_code, _headers = delete_document_with_http_info(id, opts)
129
- return data
127
+ data
130
128
  end
131
129
 
132
130
  # delete document
@@ -136,14 +134,14 @@ module TreezorClient
136
134
  # @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
137
135
  def delete_document_with_http_info(id, opts = {})
138
136
  if @api_client.config.debugging
139
- @api_client.config.logger.debug "Calling API: DocumentApi.delete_document ..."
137
+ @api_client.config.logger.debug 'Calling API: DocumentApi.delete_document ...'
140
138
  end
141
139
  # verify the required parameter 'id' is set
142
140
  if @api_client.config.client_side_validation && id.nil?
143
141
  fail ArgumentError, "Missing the required parameter 'id' when calling DocumentApi.delete_document"
144
142
  end
145
143
  # resource path
146
- local_var_path = "/documents/{id}".sub('{' + 'id' + '}', id.to_s)
144
+ local_var_path = '/documents/{id}'.sub('{' + 'id' + '}', id.to_s)
147
145
 
148
146
  # query parameters
149
147
  query_params = {}
@@ -173,7 +171,6 @@ module TreezorClient
173
171
  end
174
172
  return data, status_code, headers
175
173
  end
176
-
177
174
  # get a document
178
175
  # get a document
179
176
  # @param id Document&#39;s internal id.
@@ -181,7 +178,7 @@ module TreezorClient
181
178
  # @return [InlineResponse20012]
182
179
  def get_document(id, opts = {})
183
180
  data, _status_code, _headers = get_document_with_http_info(id, opts)
184
- return data
181
+ data
185
182
  end
186
183
 
187
184
  # get a document
@@ -191,14 +188,14 @@ module TreezorClient
191
188
  # @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
192
189
  def get_document_with_http_info(id, opts = {})
193
190
  if @api_client.config.debugging
194
- @api_client.config.logger.debug "Calling API: DocumentApi.get_document ..."
191
+ @api_client.config.logger.debug 'Calling API: DocumentApi.get_document ...'
195
192
  end
196
193
  # verify the required parameter 'id' is set
197
194
  if @api_client.config.client_side_validation && id.nil?
198
195
  fail ArgumentError, "Missing the required parameter 'id' when calling DocumentApi.get_document"
199
196
  end
200
197
  # resource path
201
- local_var_path = "/documents/{id}".sub('{' + 'id' + '}', id.to_s)
198
+ local_var_path = '/documents/{id}'.sub('{' + 'id' + '}', id.to_s)
202
199
 
203
200
  # query parameters
204
201
  query_params = {}
@@ -228,7 +225,6 @@ module TreezorClient
228
225
  end
229
226
  return data, status_code, headers
230
227
  end
231
-
232
228
  # search documents
233
229
  # Search for documents.
234
230
  # @param [Hash] opts the optional parameters
@@ -259,7 +255,7 @@ module TreezorClient
259
255
  # @return [InlineResponse20012]
260
256
  def get_documents(opts = {})
261
257
  data, _status_code, _headers = get_documents_with_http_info(opts)
262
- return data
258
+ data
263
259
  end
264
260
 
265
261
  # search documents
@@ -292,13 +288,13 @@ module TreezorClient
292
288
  # @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
293
289
  def get_documents_with_http_info(opts = {})
294
290
  if @api_client.config.debugging
295
- @api_client.config.logger.debug "Calling API: DocumentApi.get_documents ..."
291
+ @api_client.config.logger.debug 'Calling API: DocumentApi.get_documents ...'
296
292
  end
297
293
  if @api_client.config.client_side_validation && opts[:'document_status'] && !['PENDING', 'CANCELED', 'VALIDATED'].include?(opts[:'document_status'])
298
294
  fail ArgumentError, 'invalid value for "document_status", must be one of PENDING, CANCELED, VALIDATED'
299
295
  end
300
296
  # resource path
301
- local_var_path = "/documents"
297
+ local_var_path = '/documents'
302
298
 
303
299
  # query parameters
304
300
  query_params = {}
@@ -352,7 +348,6 @@ module TreezorClient
352
348
  end
353
349
  return data, status_code, headers
354
350
  end
355
-
356
351
  # update a document
357
352
  # Update a document.
358
353
  # @param id Document&#39;s internal id.
@@ -360,7 +355,7 @@ module TreezorClient
360
355
  # @return [InlineResponse20012]
361
356
  def put_document(id, opts = {})
362
357
  data, _status_code, _headers = put_document_with_http_info(id, opts)
363
- return data
358
+ data
364
359
  end
365
360
 
366
361
  # update a document
@@ -370,14 +365,14 @@ module TreezorClient
370
365
  # @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
371
366
  def put_document_with_http_info(id, opts = {})
372
367
  if @api_client.config.debugging
373
- @api_client.config.logger.debug "Calling API: DocumentApi.put_document ..."
368
+ @api_client.config.logger.debug 'Calling API: DocumentApi.put_document ...'
374
369
  end
375
370
  # verify the required parameter 'id' is set
376
371
  if @api_client.config.client_side_validation && id.nil?
377
372
  fail ArgumentError, "Missing the required parameter 'id' when calling DocumentApi.put_document"
378
373
  end
379
374
  # resource path
380
- local_var_path = "/documents/{id}".sub('{' + 'id' + '}', id.to_s)
375
+ local_var_path = '/documents/{id}'.sub('{' + 'id' + '}', id.to_s)
381
376
 
382
377
  # query parameters
383
378
  query_params = {}
@@ -6,11 +6,11 @@
6
6
  OpenAPI spec version: 0.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.1
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module TreezorClient
16
16
  class HeartbeatApi
@@ -19,7 +19,6 @@ module TreezorClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # Get the status of the API
24
23
  # Get Heartbeat of Treezor API
25
24
  # @param [Hash] opts the optional parameters
@@ -30,7 +29,7 @@ module TreezorClient
30
29
  # @return [nil]
31
30
  def get_heartbeat(opts = {})
32
31
  get_heartbeat_with_http_info(opts)
33
- return nil
32
+ nil
34
33
  end
35
34
 
36
35
  # Get the status of the API
@@ -43,10 +42,10 @@ module TreezorClient
43
42
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
44
43
  def get_heartbeat_with_http_info(opts = {})
45
44
  if @api_client.config.debugging
46
- @api_client.config.logger.debug "Calling API: HeartbeatApi.get_heartbeat ..."
45
+ @api_client.config.logger.debug 'Calling API: HeartbeatApi.get_heartbeat ...'
47
46
  end
48
47
  # resource path
49
- local_var_path = "/heartbeats"
48
+ local_var_path = '/heartbeats'
50
49
 
51
50
  # query parameters
52
51
  query_params = {}
@@ -6,11 +6,11 @@
6
6
  OpenAPI spec version: 0.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.1
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module TreezorClient
16
16
  class IssuerInitiatedDigitizationDataApi
@@ -19,7 +19,6 @@ module TreezorClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # Request the issuerInitiatedDigitizationData
24
23
  # Create a new issuerInitiatedDigitizationData request
25
24
  # @param [Hash] opts the optional parameters
@@ -31,7 +30,7 @@ module TreezorClient
31
30
  # @return [InlineResponse200]
32
31
  def tav_request_post(opts = {})
33
32
  data, _status_code, _headers = tav_request_post_with_http_info(opts)
34
- return data
33
+ data
35
34
  end
36
35
 
37
36
  # Request the issuerInitiatedDigitizationData
@@ -45,10 +44,10 @@ module TreezorClient
45
44
  # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
46
45
  def tav_request_post_with_http_info(opts = {})
47
46
  if @api_client.config.debugging
48
- @api_client.config.logger.debug "Calling API: IssuerInitiatedDigitizationDataApi.tav_request_post ..."
47
+ @api_client.config.logger.debug 'Calling API: IssuerInitiatedDigitizationDataApi.tav_request_post ...'
49
48
  end
50
49
  # resource path
51
- local_var_path = "/issuerInitiatedDigitizationDatas"
50
+ local_var_path = '/issuerInitiatedDigitizationDatas'
52
51
 
53
52
  # query parameters
54
53
  query_params = {}
@@ -82,7 +81,6 @@ module TreezorClient
82
81
  end
83
82
  return data, status_code, headers
84
83
  end
85
-
86
84
  # Search issuerInitiatedDigitizationData requests
87
85
  # Search tav issuerInitiatedDigitizationData requests that match search criteria.
88
86
  # @param [Hash] opts the optional parameters
@@ -99,7 +97,7 @@ module TreezorClient
99
97
  # @return [InlineResponse200]
100
98
  def tavrequestget(opts = {})
101
99
  data, _status_code, _headers = tavrequestget_with_http_info(opts)
102
- return data
100
+ data
103
101
  end
104
102
 
105
103
  # Search issuerInitiatedDigitizationData requests
@@ -118,10 +116,10 @@ module TreezorClient
118
116
  # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
119
117
  def tavrequestget_with_http_info(opts = {})
120
118
  if @api_client.config.debugging
121
- @api_client.config.logger.debug "Calling API: IssuerInitiatedDigitizationDataApi.tavrequestget ..."
119
+ @api_client.config.logger.debug 'Calling API: IssuerInitiatedDigitizationDataApi.tavrequestget ...'
122
120
  end
123
121
  # resource path
124
- local_var_path = "/issuerInitiatedDigitizationDatas"
122
+ local_var_path = '/issuerInitiatedDigitizationDatas'
125
123
 
126
124
  # query parameters
127
125
  query_params = {}
@@ -6,11 +6,11 @@
6
6
  OpenAPI spec version: 0.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.1
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module TreezorClient
16
16
  class MandateApi
@@ -19,7 +19,6 @@ module TreezorClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
22
  # revoke a mandate
24
23
  # Change mandate's status to canceled.
25
24
  # @param id Mandate&#39;s internal id.
@@ -28,7 +27,7 @@ module TreezorClient
28
27
  # @return [InlineResponse20013]
29
28
  def delete_mandate(id, origin, opts = {})
30
29
  data, _status_code, _headers = delete_mandate_with_http_info(id, origin, opts)
31
- return data
30
+ data
32
31
  end
33
32
 
34
33
  # revoke a mandate
@@ -39,7 +38,7 @@ module TreezorClient
39
38
  # @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
40
39
  def delete_mandate_with_http_info(id, origin, opts = {})
41
40
  if @api_client.config.debugging
42
- @api_client.config.logger.debug "Calling API: MandateApi.delete_mandate ..."
41
+ @api_client.config.logger.debug 'Calling API: MandateApi.delete_mandate ...'
43
42
  end
44
43
  # verify the required parameter 'id' is set
45
44
  if @api_client.config.client_side_validation && id.nil?
@@ -54,7 +53,7 @@ module TreezorClient
54
53
  fail ArgumentError, "invalid value for 'origin', must be one of CREDITOR, DEBITOR"
55
54
  end
56
55
  # resource path
57
- local_var_path = "/mandates/{id}".sub('{' + 'id' + '}', id.to_s)
56
+ local_var_path = '/mandates/{id}'.sub('{' + 'id' + '}', id.to_s)
58
57
 
59
58
  # query parameters
60
59
  query_params = {}
@@ -85,7 +84,6 @@ module TreezorClient
85
84
  end
86
85
  return data, status_code, headers
87
86
  end
88
-
89
87
  # get mandate
90
88
  # Get a mandate from the system.
91
89
  # @param id Mandate&#39;s internal id.
@@ -93,7 +91,7 @@ module TreezorClient
93
91
  # @return [InlineResponse20013]
94
92
  def get_mandate(id, opts = {})
95
93
  data, _status_code, _headers = get_mandate_with_http_info(id, opts)
96
- return data
94
+ data
97
95
  end
98
96
 
99
97
  # get mandate
@@ -103,14 +101,14 @@ module TreezorClient
103
101
  # @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
104
102
  def get_mandate_with_http_info(id, opts = {})
105
103
  if @api_client.config.debugging
106
- @api_client.config.logger.debug "Calling API: MandateApi.get_mandate ..."
104
+ @api_client.config.logger.debug 'Calling API: MandateApi.get_mandate ...'
107
105
  end
108
106
  # verify the required parameter 'id' is set
109
107
  if @api_client.config.client_side_validation && id.nil?
110
108
  fail ArgumentError, "Missing the required parameter 'id' when calling MandateApi.get_mandate"
111
109
  end
112
110
  # resource path
113
- local_var_path = "/mandates/{id}".sub('{' + 'id' + '}', id.to_s)
111
+ local_var_path = '/mandates/{id}'.sub('{' + 'id' + '}', id.to_s)
114
112
 
115
113
  # query parameters
116
114
  query_params = {}
@@ -140,7 +138,6 @@ module TreezorClient
140
138
  end
141
139
  return data, status_code, headers
142
140
  end
143
-
144
141
  # search mandates
145
142
  # Get mandates that match search criteria.
146
143
  # @param [Hash] opts the optional parameters
@@ -156,7 +153,7 @@ module TreezorClient
156
153
  # @return [InlineResponse20013]
157
154
  def get_mandates(opts = {})
158
155
  data, _status_code, _headers = get_mandates_with_http_info(opts)
159
- return data
156
+ data
160
157
  end
161
158
 
162
159
  # search mandates
@@ -174,10 +171,10 @@ module TreezorClient
174
171
  # @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
175
172
  def get_mandates_with_http_info(opts = {})
176
173
  if @api_client.config.debugging
177
- @api_client.config.logger.debug "Calling API: MandateApi.get_mandates ..."
174
+ @api_client.config.logger.debug 'Calling API: MandateApi.get_mandates ...'
178
175
  end
179
176
  # resource path
180
- local_var_path = "/mandates"
177
+ local_var_path = '/mandates'
181
178
 
182
179
  # query parameters
183
180
  query_params = {}
@@ -216,7 +213,6 @@ module TreezorClient
216
213
  end
217
214
  return data, status_code, headers
218
215
  end
219
-
220
216
  # send an OTP
221
217
  # Send an OTP to sign a specific mandate. The OTP will be sent to the user's mobile phone OR to a specific mobile phone number in the request.
222
218
  # @param id Mandate&#39;s id.
@@ -231,7 +227,7 @@ module TreezorClient
231
227
  # @return [InlineResponse20013]
232
228
  def mandates_id_resend_otp_put(id, access_token, access_signature, user_id, opts = {})
233
229
  data, _status_code, _headers = mandates_id_resend_otp_put_with_http_info(id, access_token, access_signature, user_id, opts)
234
- return data
230
+ data
235
231
  end
236
232
 
237
233
  # send an OTP
@@ -248,7 +244,7 @@ module TreezorClient
248
244
  # @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
249
245
  def mandates_id_resend_otp_put_with_http_info(id, access_token, access_signature, user_id, opts = {})
250
246
  if @api_client.config.debugging
251
- @api_client.config.logger.debug "Calling API: MandateApi.mandates_id_resend_otp_put ..."
247
+ @api_client.config.logger.debug 'Calling API: MandateApi.mandates_id_resend_otp_put ...'
252
248
  end
253
249
  # verify the required parameter 'id' is set
254
250
  if @api_client.config.client_side_validation && id.nil?
@@ -267,7 +263,7 @@ module TreezorClient
267
263
  fail ArgumentError, "Missing the required parameter 'user_id' when calling MandateApi.mandates_id_resend_otp_put"
268
264
  end
269
265
  # resource path
270
- local_var_path = "/mandates/{id}/ResendOtp/".sub('{' + 'id' + '}', id.to_s)
266
+ local_var_path = '/mandates/{id}/ResendOtp/'.sub('{' + 'id' + '}', id.to_s)
271
267
 
272
268
  # query parameters
273
269
  query_params = {}
@@ -300,7 +296,6 @@ module TreezorClient
300
296
  end
301
297
  return data, status_code, headers
302
298
  end
303
-
304
299
  # sign a mandate
305
300
  # Sign a mandate with the received OTP.
306
301
  # @param id Mandate&#39;s id.
@@ -316,7 +311,7 @@ module TreezorClient
316
311
  # @return [InlineResponse20013]
317
312
  def mandates_id_sign_put(id, access_token, access_signature, user_id, otp, opts = {})
318
313
  data, _status_code, _headers = mandates_id_sign_put_with_http_info(id, access_token, access_signature, user_id, otp, opts)
319
- return data
314
+ data
320
315
  end
321
316
 
322
317
  # sign a mandate
@@ -334,7 +329,7 @@ module TreezorClient
334
329
  # @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
335
330
  def mandates_id_sign_put_with_http_info(id, access_token, access_signature, user_id, otp, opts = {})
336
331
  if @api_client.config.debugging
337
- @api_client.config.logger.debug "Calling API: MandateApi.mandates_id_sign_put ..."
332
+ @api_client.config.logger.debug 'Calling API: MandateApi.mandates_id_sign_put ...'
338
333
  end
339
334
  # verify the required parameter 'id' is set
340
335
  if @api_client.config.client_side_validation && id.nil?
@@ -357,7 +352,7 @@ module TreezorClient
357
352
  fail ArgumentError, "Missing the required parameter 'otp' when calling MandateApi.mandates_id_sign_put"
358
353
  end
359
354
  # resource path
360
- local_var_path = "/mandates/{id}/Sign/".sub('{' + 'id' + '}', id.to_s)
355
+ local_var_path = '/mandates/{id}/Sign/'.sub('{' + 'id' + '}', id.to_s)
361
356
 
362
357
  # query parameters
363
358
  query_params = {}
@@ -391,7 +386,6 @@ module TreezorClient
391
386
  end
392
387
  return data, status_code, headers
393
388
  end
394
-
395
389
  # create a mandate
396
390
  # Create a new mandate in the system.
397
391
  # @param sdd_type Type of mandate. | Type | Description | | ---- | ----------- | | core | Sepa Direct Debit Core | | b2b | Sepa Direct Debit Business 2 Business |
@@ -415,7 +409,7 @@ module TreezorClient
415
409
  # @return [InlineResponse20013]
416
410
  def post_mandates(sdd_type, is_paper, user_id, debtor_name, debtor_address, debtor_city, debtor_zip_code, debtor_country, debtor_iban, sequence_type, created_ip, opts = {})
417
411
  data, _status_code, _headers = post_mandates_with_http_info(sdd_type, is_paper, user_id, debtor_name, debtor_address, debtor_city, debtor_zip_code, debtor_country, debtor_iban, sequence_type, created_ip, opts)
418
- return data
412
+ data
419
413
  end
420
414
 
421
415
  # create a mandate
@@ -441,7 +435,7 @@ module TreezorClient
441
435
  # @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
442
436
  def post_mandates_with_http_info(sdd_type, is_paper, user_id, debtor_name, debtor_address, debtor_city, debtor_zip_code, debtor_country, debtor_iban, sequence_type, created_ip, opts = {})
443
437
  if @api_client.config.debugging
444
- @api_client.config.logger.debug "Calling API: MandateApi.post_mandates ..."
438
+ @api_client.config.logger.debug 'Calling API: MandateApi.post_mandates ...'
445
439
  end
446
440
  # verify the required parameter 'sdd_type' is set
447
441
  if @api_client.config.client_side_validation && sdd_type.nil?
@@ -492,7 +486,7 @@ module TreezorClient
492
486
  fail ArgumentError, "Missing the required parameter 'created_ip' when calling MandateApi.post_mandates"
493
487
  end
494
488
  # resource path
495
- local_var_path = "/mandates"
489
+ local_var_path = '/mandates'
496
490
 
497
491
  # query parameters
498
492
  query_params = {}