Class: TreezorClient::VirtualibansApi
- Inherits:
-
Object
- Object
- TreezorClient::VirtualibansApi
- Defined in:
- lib/treezor_client/api/virtualibans_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#getvirtualiban(id, opts = {}) ⇒ InlineResponse20027
get a virtualiban by Id Get a virtualiban from the system by its id.
-
#getvirtualiban_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse20027, Fixnum, Hash)>
get a virtualiban by Id Get a virtualiban from the system by its id.
-
#getvirtualibans(valid_from, opts = {}) ⇒ InlineResponse20027
search virtualibans Get virtualiban that match search criteria.
-
#getvirtualibans_with_http_info(valid_from, opts = {}) ⇒ Array<(InlineResponse20027, Fixnum, Hash)>
search virtualibans Get virtualiban that match search criteria.
-
#initialize(api_client = ApiClient.default) ⇒ VirtualibansApi
constructor
A new instance of VirtualibansApi.
-
#post_virtual_iban(wallet_id, type_id, opts = {}) ⇒ InlineResponse20027
create a virtual IBAN Create a new virtual IBAN in in the system.
-
#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.
-
#put_virtual_iban(id, opts = {}) ⇒ InlineResponse20027
update a Virtual IBAN Update Virtual IBAN’s information.
-
#put_virtual_iban_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse20027, Fixnum, Hash)>
update a Virtual IBAN Update Virtual IBAN's information.
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_client ⇒ Object
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.
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.
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.
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.
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.
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.
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.
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's information.
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 |