Class: TreezorClient::VirtualibansApi

Inherits:
Object
  • Object
show all
Defined in:
lib/treezor_client/api/virtualibans_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ VirtualibansApi

Returns a new instance of VirtualibansApi.


19
20
21
# File 'lib/treezor_client/api/virtualibans_api.rb', line 19

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.


17
18
19
# File 'lib/treezor_client/api/virtualibans_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#getvirtualiban(id, opts = {}) ⇒ InlineResponse20027

get a virtualiban by Id Get a virtualiban from the system by its id.

Parameters:

  • id

    VirtualIban's id.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:


27
28
29
30
# File 'lib/treezor_client/api/virtualibans_api.rb', line 27

def getvirtualiban(id, opts = {})
  data, _status_code, _headers = getvirtualiban_with_http_info(id, opts)
  data
end

#getvirtualiban_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse20027, Fixnum, Hash)>

get a virtualiban by Id Get a virtualiban from the system by its id.

Parameters:

  • id

    VirtualIban&#39;s id.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(InlineResponse20027, Fixnum, Hash)>)

    InlineResponse20027 data, response status code and response headers


37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/treezor_client/api/virtualibans_api.rb', line 37

def getvirtualiban_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VirtualibansApi.getvirtualiban ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VirtualibansApi.getvirtualiban"
  end
  # resource path
  local_var_path = '/virtualibans/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20027')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VirtualibansApi#getvirtualiban\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#getvirtualibans(valid_from, opts = {}) ⇒ InlineResponse20027

search virtualibans Get virtualiban that match search criteria.

Parameters:

  • valid_from

    The beginning date of validity.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :access_signature (String)

    Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](agent.treezor.com/security-authentication).

  • :access_tag (String)

    Access tag is used for idem potency query. More info [here](agent.treezor.com/basics).

  • :access_user_id (Integer)

    Access user&#39;s id is used for user&#39;s action restriction. More info [here](agent.treezor.com/basics).

  • :access_user_ip (Integer)

    Access user&#39;s ip is used for user&#39;s action restriction. More info [here](agent.treezor.com/basics).

  • :virtual_iban_id (Integer)

    VirtualIban&#39;s id.

  • :wallet_id (Integer)

    VirtualIban&#39;s wallet id.

  • :type_id (Integer)

    VirtualIban&#39;s type id.

  • :tag (Integer)

    A tag generated by the client

  • :reference (String)

    The client&#39;s internal reference of the vitual IBAN.

  • :valid_to (Date)

    The limit date of validity.

  • :max_usage (String)

    The maximum number of usage authorized.

  • :max_amount (Float)

    The maximum amount authorized.

  • :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](agent.treezor.com/lists)

  • :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](agent.treezor.com/lists)

  • :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](agent.treezor.com/lists)

  • :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](agent.treezor.com/lists)

  • :page_number (Integer)

    Pagination page number. More info [here](agent.treezor.com/lists).

  • :page_count (Integer)

    The number of items per page. More info [here](agent.treezor.com/lists).

  • :sort_by (String)

    The transaction element you want to sort the list with. Default value : createdDate. More info [here](agent.treezor.com/lists).

  • :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](agent.treezor.com/lists).

Returns:


101
102
103
104
# File 'lib/treezor_client/api/virtualibans_api.rb', line 101

def getvirtualibans(valid_from, opts = {})
  data, _status_code, _headers = getvirtualibans_with_http_info(valid_from, opts)
  data
end

#getvirtualibans_with_http_info(valid_from, opts = {}) ⇒ Array<(InlineResponse20027, Fixnum, Hash)>

search virtualibans Get virtualiban that match search criteria.

Parameters:

  • valid_from

    The beginning date of validity.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :access_signature (String)

    Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](agent.treezor.com/security-authentication).

  • :access_tag (String)

    Access tag is used for idem potency query. More info [here](agent.treezor.com/basics).

  • :access_user_id (Integer)

    Access user&#39;s id is used for user&#39;s action restriction. More info [here](agent.treezor.com/basics).

  • :access_user_ip (Integer)

    Access user&#39;s ip is used for user&#39;s action restriction. More info [here](agent.treezor.com/basics).

  • :virtual_iban_id (Integer)

    VirtualIban&#39;s id.

  • :wallet_id (Integer)

    VirtualIban&#39;s wallet id.

  • :type_id (Integer)

    VirtualIban&#39;s type id.

  • :tag (Integer)

    A tag generated by the client

  • :reference (String)

    The client&#39;s internal reference of the vitual IBAN.

  • :valid_to (Date)

    The limit date of validity.

  • :max_usage (String)

    The maximum number of usage authorized.

  • :max_amount (Float)

    The maximum amount authorized.

  • :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](agent.treezor.com/lists)

  • :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](agent.treezor.com/lists)

  • :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](agent.treezor.com/lists)

  • :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](agent.treezor.com/lists)

  • :page_number (Integer)

    Pagination page number. More info [here](agent.treezor.com/lists).

  • :page_count (Integer)

    The number of items per page. More info [here](agent.treezor.com/lists).

  • :sort_by (String)

    The transaction element you want to sort the list with. Default value : createdDate. More info [here](agent.treezor.com/lists).

  • :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](agent.treezor.com/lists).

Returns:

  • (Array<(InlineResponse20027, Fixnum, Hash)>)

    InlineResponse20027 data, response status code and response headers


131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
# File 'lib/treezor_client/api/virtualibans_api.rb', line 131

def getvirtualibans_with_http_info(valid_from, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VirtualibansApi.getvirtualibans ...'
  end
  # verify the required parameter 'valid_from' is set
  if @api_client.config.client_side_validation && valid_from.nil?
    fail ArgumentError, "Missing the required parameter 'valid_from' when calling VirtualibansApi.getvirtualibans"
  end
  # resource path
  local_var_path = '/virtualibans'

  # query parameters
  query_params = {}
  query_params[:'validFrom'] = valid_from
  query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
  query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
  query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
  query_params[:'accessUserIP'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
  query_params[:'virtualIbanId'] = opts[:'virtual_iban_id'] if !opts[:'virtual_iban_id'].nil?
  query_params[:'walletId'] = opts[:'wallet_id'] if !opts[:'wallet_id'].nil?
  query_params[:'typeId'] = opts[:'type_id'] if !opts[:'type_id'].nil?
  query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
  query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
  query_params[:'validTo'] = opts[:'valid_to'] if !opts[:'valid_to'].nil?
  query_params[:'maxUsage'] = opts[:'max_usage'] if !opts[:'max_usage'].nil?
  query_params[:'maxAmount'] = opts[:'max_amount'] if !opts[:'max_amount'].nil?
  query_params[:'createdDateFrom'] = opts[:'created_date_from'] if !opts[:'created_date_from'].nil?
  query_params[:'createdDateTo'] = opts[:'created_date_to'] if !opts[:'created_date_to'].nil?
  query_params[:'updatedDateFrom'] = opts[:'updated_date_from'] if !opts[:'updated_date_from'].nil?
  query_params[:'updatedDateTo'] = opts[:'updated_date_to'] if !opts[:'updated_date_to'].nil?
  query_params[:'pageNumber'] = opts[:'page_number'] if !opts[:'page_number'].nil?
  query_params[:'pageCount'] = opts[:'page_count'] if !opts[:'page_count'].nil?
  query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
  query_params[:'sortOrder'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20027')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VirtualibansApi#getvirtualibans\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_virtual_iban(wallet_id, type_id, opts = {}) ⇒ InlineResponse20027

create a virtual IBAN Create a new virtual IBAN in in the system.

Parameters:

  • wallet_id

    The Id Of the Wallet. The Wallet must be in validated status. The wallet must be of type &quot;payment&quot; or &quot;electronic money&quot;

  • type_id

    | Type Id | Virtual IBAN Type| | —| — | | 1 | DEBIT | | 2 | CREDIT |

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :access_signature (String)

    Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](agent.treezor.com/security-authentication).

  • :access_tag (String)

    Access tag is used for idem potency query. More info [here](agent.treezor.com/basics).

  • :access_user_id (Integer)

    Access user&#39;s id is used for user&#39;s action restriction. More info [here](agent.treezor.com/basics).

  • :access_user_ip (String)

    Access user&#39;s ip is used for user&#39;s action restriction. More info [here](agent.treezor.com/basics).

  • :tag (Integer)

    A tag generated by the client

  • :reference (String)

    The client&#39;s internal reference of the vitual IBAN. Less than 255 characters.

  • :valid_from (Date)

    The beginning date of validity. The beginning date must not be less than today&#39;s date.

  • :valid_to (Date)

    The limit date of validity. Cannot be less or equal to the validFrom date.

  • :max_usage (Integer)

    The maximum number of usage authorized. If you want to set no maximum usage limitation you can omit the parameter or set it to null. If you want to limit usage please send an integer in that field. This integer cannot be less than 1.

  • :max_amount (Float)

    The maximum amount authorized.If you want to set no maximum usage amount limitation you can omit the parameter or set it to null. If you want to limit the amount please send a DECIMAL (with a point as separator) in that field. This decimal cannot be less than 0.00.

Returns:


207
208
209
210
# File 'lib/treezor_client/api/virtualibans_api.rb', line 207

def post_virtual_iban(wallet_id, type_id, opts = {})
  data, _status_code, _headers = post_virtual_iban_with_http_info(wallet_id, type_id, opts)
  data
end

#post_virtual_iban_with_http_info(wallet_id, type_id, opts = {}) ⇒ Array<(InlineResponse20027, Fixnum, Hash)>

create a virtual IBAN Create a new virtual IBAN in in the system.

Parameters:

  • wallet_id

    The Id Of the Wallet. The Wallet must be in validated status. The wallet must be of type &quot;payment&quot; or &quot;electronic money&quot;

  • type_id

    | Type Id | Virtual IBAN Type| | —| — | | 1 | DEBIT | | 2 | CREDIT |

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :access_signature (String)

    Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](agent.treezor.com/security-authentication).

  • :access_tag (String)

    Access tag is used for idem potency query. More info [here](agent.treezor.com/basics).

  • :access_user_id (Integer)

    Access user&#39;s id is used for user&#39;s action restriction. More info [here](agent.treezor.com/basics).

  • :access_user_ip (String)

    Access user&#39;s ip is used for user&#39;s action restriction. More info [here](agent.treezor.com/basics).

  • :tag (Integer)

    A tag generated by the client

  • :reference (String)

    The client&#39;s internal reference of the vitual IBAN. Less than 255 characters.

  • :valid_from (Date)

    The beginning date of validity. The beginning date must not be less than today&#39;s date.

  • :valid_to (Date)

    The limit date of validity. Cannot be less or equal to the validFrom date.

  • :max_usage (Integer)

    The maximum number of usage authorized. If you want to set no maximum usage limitation you can omit the parameter or set it to null. If you want to limit usage please send an integer in that field. This integer cannot be less than 1.

  • :max_amount (Float)

    The maximum amount authorized.If you want to set no maximum usage amount limitation you can omit the parameter or set it to null. If you want to limit the amount please send a DECIMAL (with a point as separator) in that field. This decimal cannot be less than 0.00.

Returns:

  • (Array<(InlineResponse20027, Fixnum, Hash)>)

    InlineResponse20027 data, response status code and response headers


228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
# File 'lib/treezor_client/api/virtualibans_api.rb', line 228

def post_virtual_iban_with_http_info(wallet_id, type_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VirtualibansApi.post_virtual_iban ...'
  end
  # verify the required parameter 'wallet_id' is set
  if @api_client.config.client_side_validation && wallet_id.nil?
    fail ArgumentError, "Missing the required parameter 'wallet_id' when calling VirtualibansApi.post_virtual_iban"
  end
  # verify the required parameter 'type_id' is set
  if @api_client.config.client_side_validation && type_id.nil?
    fail ArgumentError, "Missing the required parameter 'type_id' when calling VirtualibansApi.post_virtual_iban"
  end
  # resource path
  local_var_path = '/virtualibans'

  # query parameters
  query_params = {}
  query_params[:'walletId'] = wallet_id
  query_params[:'typeId'] = type_id
  query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
  query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
  query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
  query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
  query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
  query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
  query_params[:'validFrom'] = opts[:'valid_from'] if !opts[:'valid_from'].nil?
  query_params[:'validTo'] = opts[:'valid_to'] if !opts[:'valid_to'].nil?
  query_params[:'maxUsage'] = opts[:'max_usage'] if !opts[:'max_usage'].nil?
  query_params[:'maxAmount'] = opts[:'max_amount'] if !opts[:'max_amount'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20027')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VirtualibansApi#post_virtual_iban\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#put_virtual_iban(id, opts = {}) ⇒ InlineResponse20027

update a Virtual IBAN Update Virtual IBAN's information.

Parameters:

  • id

    VirtualIban&#39;s id.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :access_signature (String)

    Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](agent.treezor.com/security-authentication).

  • :access_tag (String)

    Access tag is used for idem potency query. More info [here](agent.treezor.com/basics).

  • :access_user_id (Integer)

    Access user&#39;s id is used for user&#39;s action restriction. More info [here](agent.treezor.com/basics).

  • :access_user_ip (String)

    Access user&#39;s ip is used for user&#39;s action restriction. More info [here](agent.treezor.com/basics).

  • :reference (String)

    The client&#39;s internal reference of the vitual IBAN.

  • :valid_from (Date)

    The beginning date of validity. Date of validity can be changed. It must follow the rules explained in the POST endpoint.

  • :valid_to (Date)

    The limit date of validity. It must follow the rules of creation. It must follow the rules explained in the POST endpoint.

  • :max_usage (Integer)

    The maximum number of usage authorized. It must follow the rules explained in the POST endpoint AND the maximum usage cannot be strictly less than the transaction counter of the Virtual Iban.

  • :max_amount (Float)

    The maximum amount authorized. It must follow the rules explained in the POST endpoint AND the maximum amount cannot be strictly less than the cumulated amount of this Virtual Iban.

Returns:


297
298
299
300
# File 'lib/treezor_client/api/virtualibans_api.rb', line 297

def put_virtual_iban(id, opts = {})
  data, _status_code, _headers = put_virtual_iban_with_http_info(id, opts)
  data
end

#put_virtual_iban_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse20027, Fixnum, Hash)>

update a Virtual IBAN Update Virtual IBAN&#39;s information.

Parameters:

  • id

    VirtualIban&#39;s id.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :access_signature (String)

    Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](agent.treezor.com/security-authentication).

  • :access_tag (String)

    Access tag is used for idem potency query. More info [here](agent.treezor.com/basics).

  • :access_user_id (Integer)

    Access user&#39;s id is used for user&#39;s action restriction. More info [here](agent.treezor.com/basics).

  • :access_user_ip (String)

    Access user&#39;s ip is used for user&#39;s action restriction. More info [here](agent.treezor.com/basics).

  • :reference (String)

    The client&#39;s internal reference of the vitual IBAN.

  • :valid_from (Date)

    The beginning date of validity. Date of validity can be changed. It must follow the rules explained in the POST endpoint.

  • :valid_to (Date)

    The limit date of validity. It must follow the rules of creation. It must follow the rules explained in the POST endpoint.

  • :max_usage (Integer)

    The maximum number of usage authorized. It must follow the rules explained in the POST endpoint AND the maximum usage cannot be strictly less than the transaction counter of the Virtual Iban.

  • :max_amount (Float)

    The maximum amount authorized. It must follow the rules explained in the POST endpoint AND the maximum amount cannot be strictly less than the cumulated amount of this Virtual Iban.

Returns:

  • (Array<(InlineResponse20027, Fixnum, Hash)>)

    InlineResponse20027 data, response status code and response headers


316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
# File 'lib/treezor_client/api/virtualibans_api.rb', line 316

def put_virtual_iban_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: VirtualibansApi.put_virtual_iban ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling VirtualibansApi.put_virtual_iban"
  end
  # resource path
  local_var_path = '/virtualibans/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}
  query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
  query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
  query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
  query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
  query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
  query_params[:'validFrom'] = opts[:'valid_from'] if !opts[:'valid_from'].nil?
  query_params[:'validTo'] = opts[:'valid_to'] if !opts[:'valid_to'].nil?
  query_params[:'maxUsage'] = opts[:'max_usage'] if !opts[:'max_usage'].nil?
  query_params[:'maxAmount'] = opts[:'max_amount'] if !opts[:'max_amount'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20027')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: VirtualibansApi#put_virtual_iban\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end