Class: TreezorClient::CardApi
- Inherits:
-
Object
- Object
- TreezorClient::CardApi
- Defined in:
- lib/treezor_client/api/card_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#cardimages_get(card_id, opts = {}) ⇒ InlineResponse2006
get a card image Return virtual card’s image.
-
#cardimages_get_with_http_info(card_id, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
get a card image Return virtual card's image.
-
#cards_create_virtual_post(user_id, wallet_id, perms_group, card_print, opts = {}) ⇒ InlineResponse2005
create a virtual card Create a new virtual card.
-
#cards_create_virtual_post_with_http_info(user_id, wallet_id, perms_group, card_print, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
create a virtual card Create a new virtual card.
-
#cards_get(opts = {}) ⇒ InlineResponse2005
search cards.
-
#cards_get_with_http_info(opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
search cards.
-
#cards_id_activate_put(id, opts = {}) ⇒ InlineResponse2005
activate a card The Activate endpoint change card status to activate.
-
#cards_id_activate_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
activate a card The Activate endpoint change card status to activate.
-
#cards_id_change_pin_put(id, current_pin, new_pin, confirm_pin, opts = {}) ⇒ InlineResponse2005
change card’s PIN Change card’s PIN code knowing the current one.
-
#cards_id_change_pin_put_with_http_info(id, current_pin, new_pin, confirm_pin, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
change card's PIN Change card's PIN code knowing the current one.
-
#cards_id_convert_virtual_put(id, opts = {}) ⇒ InlineResponse2005
convert card to virtual Convert a virtual card into a physical one.
-
#cards_id_convert_virtual_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
convert card to virtual Convert a virtual card into a physical one.
-
#cards_id_get(id, opts = {}) ⇒ InlineResponse2005
get a card.
-
#cards_id_get_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
get a card.
-
#cards_id_limits_put(id, opts = {}) ⇒ InlineResponse2005
update card’s limits Update of the card limits.
-
#cards_id_limits_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
update card's limits Update of the card limits.
-
#cards_id_lock_unlock_put(id, lock_status, opts = {}) ⇒ InlineResponse2005
update card’s blocking status Block or unblock a card.
-
#cards_id_lock_unlock_put_with_http_info(id, lock_status, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
update card's blocking status Block or unblock a card.
-
#cards_id_options_put(id, foreign, online, atm, nfc, opts = {}) ⇒ InlineResponse2005
update card’s options Allows to update card’s permission group.
-
#cards_id_options_put_with_http_info(id, foreign, online, atm, nfc, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
update card's options Allows to update card's permission group.
-
#cards_id_put(id, opts = {}) ⇒ InlineResponse2005
update card informations Actually update mccRestrictionGroupId and merchantRestrictionGroupId of a card.
-
#cards_id_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
update card informations Actually update mccRestrictionGroupId and merchantRestrictionGroupId of a card.
-
#cards_id_regenerate_put(id, opts = {}) ⇒ InlineResponse2005
regenerate card If card is Lost or Stolen (card’s status), the card itself will get regenerated.
-
#cards_id_regenerate_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
regenerate card If card is Lost or Stolen (card's status), the card itself will get regenerated.
-
#cards_id_set_pin_put(id, new_pin, confirm_pin, opts = {}) ⇒ InlineResponse2005
set card’s PIN Overwrite card’s PIN.
-
#cards_id_set_pin_put_with_http_info(id, new_pin, confirm_pin, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
set card's PIN Overwrite card's PIN.
-
#cards_id_unblock_pin_put(id, opts = {}) ⇒ InlineResponse2005
unblock card’s PIN Unblock card’s PIN code.
-
#cards_id_unblock_pin_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
unblock card's PIN Unblock card's PIN code.
-
#cards_register3_ds_post(card_id, opts = {}) ⇒ InlineResponse2005
Register 3D secure Register a card to 3D secure service.
-
#cards_register3_ds_post_with_http_info(card_id, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
Register 3D secure Register a card to 3D secure service.
-
#cards_request_physical_post(user_id, wallet_id, perms_group, card_tag, card_print, opts = {}) ⇒ InlineResponse2005
create a physical card Create a new physical card.
-
#cards_request_physical_post_with_http_info(user_id, wallet_id, perms_group, card_tag, card_print, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
create a physical card Create a new physical card.
-
#initialize(api_client = ApiClient.default) ⇒ CardApi
constructor
A new instance of CardApi.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/treezor_client/api/card_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#cardimages_get(card_id, opts = {}) ⇒ InlineResponse2006
get a card image Return virtual card’s image
31 32 33 34 |
# File 'lib/treezor_client/api/card_api.rb', line 31 def cardimages_get(card_id, opts = {}) data, _status_code, _headers = cardimages_get_with_http_info(card_id, opts) data end |
#cardimages_get_with_http_info(card_id, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
get a card image Return virtual card's image
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 76 77 78 79 80 81 82 83 84 |
# File 'lib/treezor_client/api/card_api.rb', line 45 def cardimages_get_with_http_info(card_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CardApi.cardimages_get ...' end # verify the required parameter 'card_id' is set if @api_client.config.client_side_validation && card_id.nil? fail ArgumentError, "Missing the required parameter 'card_id' when calling CardApi.cardimages_get" end # resource path local_var_path = '/cardimages' # query parameters query_params = {} query_params[:'cardId'] = card_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? # header parameters header_params = {} # 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 => 'InlineResponse2006') if @api_client.config.debugging @api_client.config.logger.debug "API called: CardApi#cardimages_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#cards_create_virtual_post(user_id, wallet_id, perms_group, card_print, opts = {}) ⇒ InlineResponse2005
create a virtual card Create a new virtual card. To use a card you will need to activate it (/cards/id/Activate/).
116 117 118 119 |
# File 'lib/treezor_client/api/card_api.rb', line 116 def cards_create_virtual_post(user_id, wallet_id, perms_group, card_print, opts = {}) data, _status_code, _headers = cards_create_virtual_post_with_http_info(user_id, wallet_id, perms_group, card_print, opts) data end |
#cards_create_virtual_post_with_http_info(user_id, wallet_id, perms_group, card_print, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
create a virtual card Create a new virtual card. To use a card you will need to activate it (/cards/id/Activate/).
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 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 |
# File 'lib/treezor_client/api/card_api.rb', line 152 def cards_create_virtual_post_with_http_info(user_id, wallet_id, perms_group, card_print, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CardApi.cards_create_virtual_post ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? fail ArgumentError, "Missing the required parameter 'user_id' when calling CardApi.cards_create_virtual_post" 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 CardApi.cards_create_virtual_post" end # verify the required parameter 'perms_group' is set if @api_client.config.client_side_validation && perms_group.nil? fail ArgumentError, "Missing the required parameter 'perms_group' when calling CardApi.cards_create_virtual_post" end # verify the required parameter 'card_print' is set if @api_client.config.client_side_validation && card_print.nil? fail ArgumentError, "Missing the required parameter 'card_print' when calling CardApi.cards_create_virtual_post" end # resource path local_var_path = '/cards/CreateVirtual' # query parameters query_params = {} query_params[:'userId'] = user_id query_params[:'walletId'] = wallet_id query_params[:'permsGroup'] = perms_group query_params[:'cardPrint'] = card_print query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil? query_params[:'cardTag'] = opts[:'card_tag'] if !opts[:'card_tag'].nil? query_params[:'batchDeliveryId'] = opts[:'batch_delivery_id'] if !opts[:'batch_delivery_id'].nil? query_params[:'limitAtmYear'] = opts[:'limit_atm_year'] if !opts[:'limit_atm_year'].nil? query_params[:'limitAtmMonth'] = opts[:'limit_atm_month'] if !opts[:'limit_atm_month'].nil? query_params[:'limitAtmWeek'] = opts[:'limit_atm_week'] if !opts[:'limit_atm_week'].nil? query_params[:'limitAtmDay'] = opts[:'limit_atm_day'] if !opts[:'limit_atm_day'].nil? query_params[:'limitAtmAll'] = opts[:'limit_atm_all'] if !opts[:'limit_atm_all'].nil? query_params[:'limitPaymentYear'] = opts[:'limit_payment_year'] if !opts[:'limit_payment_year'].nil? query_params[:'limitPaymentMonth'] = opts[:'limit_payment_month'] if !opts[:'limit_payment_month'].nil? query_params[:'limitPaymentWeek'] = opts[:'limit_payment_week'] if !opts[:'limit_payment_week'].nil? query_params[:'limitPaymentDay'] = opts[:'limit_payment_day'] if !opts[:'limit_payment_day'].nil? query_params[:'limitPaymentAll'] = opts[:'limit_payment_all'] if !opts[:'limit_payment_all'].nil? query_params[:'paymentDailyLimit'] = opts[:'payment_daily_limit'] if !opts[:'payment_daily_limit'].nil? query_params[:'pin'] = opts[:'pin'] if !opts[:'pin'].nil? query_params[:'anonymous'] = opts[:'anonymous'] if !opts[:'anonymous'].nil? query_params[:'sendToParent'] = opts[:'send_to_parent'] if !opts[:'send_to_parent'].nil? query_params[:'mccRestrictionGroupId'] = opts[:'mcc_restriction_group_id'] if !opts[:'mcc_restriction_group_id'].nil? query_params[:'merchantRestrictionGroupId'] = opts[:'merchant_restriction_group_id'] if !opts[:'merchant_restriction_group_id'].nil? query_params[:'countryRestrictionGroupId'] = opts[:'country_restriction_group_id'] if !opts[:'country_restriction_group_id'].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? # header parameters header_params = {} # 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 => 'InlineResponse2005') if @api_client.config.debugging @api_client.config.logger.debug "API called: CardApi#cards_create_virtual_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#cards_get(opts = {}) ⇒ InlineResponse2005
search cards
252 253 254 255 |
# File 'lib/treezor_client/api/card_api.rb', line 252 def cards_get(opts = {}) data, _status_code, _headers = cards_get_with_http_info(opts) data end |
#cards_get_with_http_info(opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
search cards
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 |
# File 'lib/treezor_client/api/card_api.rb', line 283 def cards_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CardApi.cards_get ...' end # resource path local_var_path = '/cards' # 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[:'cardId'] = opts[:'card_id'] if !opts[:'card_id'].nil? query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil? query_params[:'embossedName'] = opts[:'embossed_name'] if !opts[:'embossed_name'].nil? query_params[:'publicToken'] = opts[:'public_token'] if !opts[:'public_token'].nil? query_params[:'permsGroup'] = opts[:'perms_group'] if !opts[:'perms_group'].nil? query_params[:'isPhysical'] = opts[:'is_physical'] if !opts[:'is_physical'].nil? query_params[:'isConverted'] = opts[:'is_converted'] if !opts[:'is_converted'].nil? query_params[:'lockStatus'] = opts[:'lock_status'] if !opts[:'lock_status'].nil? query_params[:'mccRestrictionGroupId'] = opts[:'mcc_restriction_group_id'] if !opts[:'mcc_restriction_group_id'].nil? query_params[:'merchantRestrictionGroupId'] = opts[:'merchant_restriction_group_id'] if !opts[:'merchant_restriction_group_id'].nil? query_params[:'countryRestrictionGroupId'] = opts[:'country_restriction_group_id'] if !opts[:'country_restriction_group_id'].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? 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? # header parameters header_params = {} # 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 => 'InlineResponse2005') if @api_client.config.debugging @api_client.config.logger.debug "API called: CardApi#cards_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#cards_id_activate_put(id, opts = {}) ⇒ InlineResponse2005
activate a card The Activate endpoint change card status to activate. An activated card can be freely used.
347 348 349 350 |
# File 'lib/treezor_client/api/card_api.rb', line 347 def cards_id_activate_put(id, opts = {}) data, _status_code, _headers = cards_id_activate_put_with_http_info(id, opts) data end |
#cards_id_activate_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
activate a card The Activate endpoint change card status to activate. An activated card can be freely used.
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 |
# File 'lib/treezor_client/api/card_api.rb', line 362 def cards_id_activate_put_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CardApi.cards_id_activate_put ...' 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 CardApi.cards_id_activate_put" end # resource path local_var_path = '/cards/{id}/Activate/'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} query_params[:'accessToken'] = opts[:'access_token'] if !opts[:'access_token'].nil? 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? # header parameters header_params = {} # 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 => 'InlineResponse2005') if @api_client.config.debugging @api_client.config.logger.debug "API called: CardApi#cards_id_activate_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#cards_id_change_pin_put(id, current_pin, new_pin, confirm_pin, opts = {}) ⇒ InlineResponse2005
change card’s PIN Change card’s PIN code knowing the current one.
414 415 416 417 |
# File 'lib/treezor_client/api/card_api.rb', line 414 def cards_id_change_pin_put(id, current_pin, new_pin, confirm_pin, opts = {}) data, _status_code, _headers = cards_id_change_pin_put_with_http_info(id, current_pin, new_pin, confirm_pin, opts) data end |
#cards_id_change_pin_put_with_http_info(id, current_pin, new_pin, confirm_pin, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
change card's PIN Change card's PIN code knowing the current one.
431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 |
# File 'lib/treezor_client/api/card_api.rb', line 431 def cards_id_change_pin_put_with_http_info(id, current_pin, new_pin, confirm_pin, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CardApi.cards_id_change_pin_put ...' 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 CardApi.cards_id_change_pin_put" end # verify the required parameter 'current_pin' is set if @api_client.config.client_side_validation && current_pin.nil? fail ArgumentError, "Missing the required parameter 'current_pin' when calling CardApi.cards_id_change_pin_put" end # verify the required parameter 'new_pin' is set if @api_client.config.client_side_validation && new_pin.nil? fail ArgumentError, "Missing the required parameter 'new_pin' when calling CardApi.cards_id_change_pin_put" end # verify the required parameter 'confirm_pin' is set if @api_client.config.client_side_validation && confirm_pin.nil? fail ArgumentError, "Missing the required parameter 'confirm_pin' when calling CardApi.cards_id_change_pin_put" end # resource path local_var_path = '/cards/{id}/ChangePIN/'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} query_params[:'currentPIN'] = current_pin query_params[:'newPIN'] = new_pin query_params[:'confirmPIN'] = confirm_pin 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? # header parameters header_params = {} # 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 => 'InlineResponse2005') if @api_client.config.debugging @api_client.config.logger.debug "API called: CardApi#cards_id_change_pin_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#cards_id_convert_virtual_put(id, opts = {}) ⇒ InlineResponse2005
convert card to virtual Convert a virtual card into a physical one. The converted card will be both virtual and physical.
494 495 496 497 |
# File 'lib/treezor_client/api/card_api.rb', line 494 def cards_id_convert_virtual_put(id, opts = {}) data, _status_code, _headers = cards_id_convert_virtual_put_with_http_info(id, opts) data end |
#cards_id_convert_virtual_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
convert card to virtual Convert a virtual card into a physical one. The converted card will be both virtual and physical.
508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 |
# File 'lib/treezor_client/api/card_api.rb', line 508 def cards_id_convert_virtual_put_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CardApi.cards_id_convert_virtual_put ...' 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 CardApi.cards_id_convert_virtual_put" end # resource path local_var_path = '/cards/{id}/ConvertVirtual/'.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? # header parameters header_params = {} # 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 => 'InlineResponse2005') if @api_client.config.debugging @api_client.config.logger.debug "API called: CardApi#cards_id_convert_virtual_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#cards_id_get(id, opts = {}) ⇒ InlineResponse2005
get a card
551 552 553 554 |
# File 'lib/treezor_client/api/card_api.rb', line 551 def cards_id_get(id, opts = {}) data, _status_code, _headers = cards_id_get_with_http_info(id, opts) data end |
#cards_id_get_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
get a card
560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 |
# File 'lib/treezor_client/api/card_api.rb', line 560 def cards_id_get_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CardApi.cards_id_get ...' 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 CardApi.cards_id_get" end # resource path local_var_path = '/cards/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} # header parameters header_params = {} # 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 => 'InlineResponse2005') if @api_client.config.debugging @api_client.config.logger.debug "API called: CardApi#cards_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#cards_id_limits_put(id, opts = {}) ⇒ InlineResponse2005
update card’s limits Update of the card limits.
615 616 617 618 |
# File 'lib/treezor_client/api/card_api.rb', line 615 def cards_id_limits_put(id, opts = {}) data, _status_code, _headers = cards_id_limits_put_with_http_info(id, opts) data end |
#cards_id_limits_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
update card's limits Update of the card limits.
640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 |
# File 'lib/treezor_client/api/card_api.rb', line 640 def cards_id_limits_put_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CardApi.cards_id_limits_put ...' 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 CardApi.cards_id_limits_put" end # resource path local_var_path = '/cards/{id}/Limits/'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil? query_params[:'limitAtmYear'] = opts[:'limit_atm_year'] if !opts[:'limit_atm_year'].nil? query_params[:'limitAtmMonth'] = opts[:'limit_atm_month'] if !opts[:'limit_atm_month'].nil? query_params[:'limitAtmWeek'] = opts[:'limit_atm_week'] if !opts[:'limit_atm_week'].nil? query_params[:'limitAtmDay'] = opts[:'limit_atm_day'] if !opts[:'limit_atm_day'].nil? query_params[:'limitAtmAll'] = opts[:'limit_atm_all'] if !opts[:'limit_atm_all'].nil? query_params[:'limitPaymentYear'] = opts[:'limit_payment_year'] if !opts[:'limit_payment_year'].nil? query_params[:'limitPaymentMonth'] = opts[:'limit_payment_month'] if !opts[:'limit_payment_month'].nil? query_params[:'limitPaymentWeek'] = opts[:'limit_payment_week'] if !opts[:'limit_payment_week'].nil? query_params[:'limitPaymentDay'] = opts[:'limit_payment_day'] if !opts[:'limit_payment_day'].nil? query_params[:'limitPaymentAll'] = opts[:'limit_payment_all'] if !opts[:'limit_payment_all'].nil? query_params[:'paymentDailyLimit'] = opts[:'payment_daily_limit'] if !opts[:'payment_daily_limit'].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? # header parameters header_params = {} # 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 => 'InlineResponse2005') if @api_client.config.debugging @api_client.config.logger.debug "API called: CardApi#cards_id_limits_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#cards_id_lock_unlock_put(id, lock_status, opts = {}) ⇒ InlineResponse2005
update card’s blocking status Block or unblock a card.
700 701 702 703 |
# File 'lib/treezor_client/api/card_api.rb', line 700 def cards_id_lock_unlock_put(id, lock_status, opts = {}) data, _status_code, _headers = cards_id_lock_unlock_put_with_http_info(id, lock_status, opts) data end |
#cards_id_lock_unlock_put_with_http_info(id, lock_status, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
update card's blocking status Block or unblock a card.
715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 |
# File 'lib/treezor_client/api/card_api.rb', line 715 def cards_id_lock_unlock_put_with_http_info(id, lock_status, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CardApi.cards_id_lock_unlock_put ...' 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 CardApi.cards_id_lock_unlock_put" end # verify the required parameter 'lock_status' is set if @api_client.config.client_side_validation && lock_status.nil? fail ArgumentError, "Missing the required parameter 'lock_status' when calling CardApi.cards_id_lock_unlock_put" end # resource path local_var_path = '/cards/{id}/LockUnlock/'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} query_params[:'lockStatus'] = lock_status 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? # header parameters header_params = {} # 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 => 'InlineResponse2005') if @api_client.config.debugging @api_client.config.logger.debug "API called: CardApi#cards_id_lock_unlock_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#cards_id_options_put(id, foreign, online, atm, nfc, opts = {}) ⇒ InlineResponse2005
update card’s options Allows to update card’s permission group.
772 773 774 775 |
# File 'lib/treezor_client/api/card_api.rb', line 772 def (id, foreign, online, atm, nfc, opts = {}) data, _status_code, _headers = (id, foreign, online, atm, nfc, opts) data end |
#cards_id_options_put_with_http_info(id, foreign, online, atm, nfc, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
update card's options Allows to update card's permission group.
790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 |
# File 'lib/treezor_client/api/card_api.rb', line 790 def (id, foreign, online, atm, nfc, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CardApi.cards_id_options_put ...' 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 CardApi.cards_id_options_put" end # verify the required parameter 'foreign' is set if @api_client.config.client_side_validation && foreign.nil? fail ArgumentError, "Missing the required parameter 'foreign' when calling CardApi.cards_id_options_put" end # verify the required parameter 'online' is set if @api_client.config.client_side_validation && online.nil? fail ArgumentError, "Missing the required parameter 'online' when calling CardApi.cards_id_options_put" end # verify the required parameter 'atm' is set if @api_client.config.client_side_validation && atm.nil? fail ArgumentError, "Missing the required parameter 'atm' when calling CardApi.cards_id_options_put" end # verify the required parameter 'nfc' is set if @api_client.config.client_side_validation && nfc.nil? fail ArgumentError, "Missing the required parameter 'nfc' when calling CardApi.cards_id_options_put" end # resource path local_var_path = '/cards/{id}/Options/'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} query_params[:'foreign'] = foreign query_params[:'online'] = online query_params[:'atm'] = atm query_params[:'nfc'] = nfc 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? # header parameters header_params = {} # 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 => 'InlineResponse2005') if @api_client.config.debugging @api_client.config.logger.debug "API called: CardApi#cards_id_options_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#cards_id_put(id, opts = {}) ⇒ InlineResponse2005
update card informations Actually update mccRestrictionGroupId and merchantRestrictionGroupId of a card
861 862 863 864 |
# File 'lib/treezor_client/api/card_api.rb', line 861 def cards_id_put(id, opts = {}) data, _status_code, _headers = cards_id_put_with_http_info(id, opts) data end |
#cards_id_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
update card informations Actually update mccRestrictionGroupId and merchantRestrictionGroupId of a card
878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 |
# File 'lib/treezor_client/api/card_api.rb', line 878 def cards_id_put_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CardApi.cards_id_put ...' 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 CardApi.cards_id_put" end # resource path local_var_path = '/cards/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil? query_params[:'mccRestrictionGroupId'] = opts[:'mcc_restriction_group_id'] if !opts[:'mcc_restriction_group_id'].nil? query_params[:'merchantRestrictionGroupId'] = opts[:'merchant_restriction_group_id'] if !opts[:'merchant_restriction_group_id'].nil? query_params[:'countryRestrictionGroupId'] = opts[:'country_restriction_group_id'] if !opts[:'country_restriction_group_id'].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? # header parameters header_params = {} # 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 => 'InlineResponse2005') if @api_client.config.debugging @api_client.config.logger.debug "API called: CardApi#cards_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#cards_id_regenerate_put(id, opts = {}) ⇒ InlineResponse2005
regenerate card If card is Lost or Stolen (card’s status), the card itself will get regenerated. Otherwise only the card image gets recreated.
929 930 931 932 |
# File 'lib/treezor_client/api/card_api.rb', line 929 def cards_id_regenerate_put(id, opts = {}) data, _status_code, _headers = cards_id_regenerate_put_with_http_info(id, opts) data end |
#cards_id_regenerate_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
regenerate card If card is Lost or Stolen (card's status), the card itself will get regenerated. Otherwise only the card image gets recreated.
943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 |
# File 'lib/treezor_client/api/card_api.rb', line 943 def cards_id_regenerate_put_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CardApi.cards_id_regenerate_put ...' 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 CardApi.cards_id_regenerate_put" end # resource path local_var_path = '/cards/{id}/Regenerate/'.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? # header parameters header_params = {} # 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 => 'InlineResponse2005') if @api_client.config.debugging @api_client.config.logger.debug "API called: CardApi#cards_id_regenerate_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#cards_id_set_pin_put(id, new_pin, confirm_pin, opts = {}) ⇒ InlineResponse2005
set card’s PIN Overwrite card’s PIN.
993 994 995 996 |
# File 'lib/treezor_client/api/card_api.rb', line 993 def cards_id_set_pin_put(id, new_pin, confirm_pin, opts = {}) data, _status_code, _headers = cards_id_set_pin_put_with_http_info(id, new_pin, confirm_pin, opts) data end |
#cards_id_set_pin_put_with_http_info(id, new_pin, confirm_pin, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
set card's PIN Overwrite card's PIN.
1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 |
# File 'lib/treezor_client/api/card_api.rb', line 1009 def cards_id_set_pin_put_with_http_info(id, new_pin, confirm_pin, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CardApi.cards_id_set_pin_put ...' 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 CardApi.cards_id_set_pin_put" end # verify the required parameter 'new_pin' is set if @api_client.config.client_side_validation && new_pin.nil? fail ArgumentError, "Missing the required parameter 'new_pin' when calling CardApi.cards_id_set_pin_put" end # verify the required parameter 'confirm_pin' is set if @api_client.config.client_side_validation && confirm_pin.nil? fail ArgumentError, "Missing the required parameter 'confirm_pin' when calling CardApi.cards_id_set_pin_put" end # resource path local_var_path = '/cards/{id}/setPIN/'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} query_params[:'newPIN'] = new_pin query_params[:'confirmPIN'] = confirm_pin 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? # header parameters header_params = {} # 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 => 'InlineResponse2005') if @api_client.config.debugging @api_client.config.logger.debug "API called: CardApi#cards_id_set_pin_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#cards_id_unblock_pin_put(id, opts = {}) ⇒ InlineResponse2005
unblock card’s PIN Unblock card’s PIN code.
1067 1068 1069 1070 |
# File 'lib/treezor_client/api/card_api.rb', line 1067 def cards_id_unblock_pin_put(id, opts = {}) data, _status_code, _headers = cards_id_unblock_pin_put_with_http_info(id, opts) data end |
#cards_id_unblock_pin_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
unblock card's PIN Unblock card's PIN code.
1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 |
# File 'lib/treezor_client/api/card_api.rb', line 1081 def cards_id_unblock_pin_put_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CardApi.cards_id_unblock_pin_put ...' 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 CardApi.cards_id_unblock_pin_put" end # resource path local_var_path = '/cards/{id}/UnblockPIN/'.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? # header parameters header_params = {} # 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 => 'InlineResponse2005') if @api_client.config.debugging @api_client.config.logger.debug "API called: CardApi#cards_id_unblock_pin_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#cards_register3_ds_post(card_id, opts = {}) ⇒ InlineResponse2005
Register 3D secure Register a card to 3D secure service. The user’s mobile number must begin by "+", or "00", and the country dialing code.
1126 1127 1128 1129 |
# File 'lib/treezor_client/api/card_api.rb', line 1126 def cards_register3_ds_post(card_id, opts = {}) data, _status_code, _headers = cards_register3_ds_post_with_http_info(card_id, opts) data end |
#cards_register3_ds_post_with_http_info(card_id, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
Register 3D secure Register a card to 3D secure service. The user's mobile number must begin by "+", or "00", and the country dialing code.
1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 |
# File 'lib/treezor_client/api/card_api.rb', line 1137 def cards_register3_ds_post_with_http_info(card_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CardApi.cards_register3_ds_post ...' end # verify the required parameter 'card_id' is set if @api_client.config.client_side_validation && card_id.nil? fail ArgumentError, "Missing the required parameter 'card_id' when calling CardApi.cards_register3_ds_post" end # resource path local_var_path = '/cards/Register3DS' # query parameters query_params = {} query_params[:'cardId'] = card_id query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil? # header parameters header_params = {} # 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 => 'InlineResponse2005') if @api_client.config.debugging @api_client.config.logger.debug "API called: CardApi#cards_register3_ds_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#cards_request_physical_post(user_id, wallet_id, perms_group, card_tag, card_print, opts = {}) ⇒ InlineResponse2005
create a physical card Create a new physical card. To use a card you will need to activate it (/cards/id/Activate/).
1205 1206 1207 1208 |
# File 'lib/treezor_client/api/card_api.rb', line 1205 def cards_request_physical_post(user_id, wallet_id, perms_group, card_tag, card_print, opts = {}) data, _status_code, _headers = cards_request_physical_post_with_http_info(user_id, wallet_id, perms_group, card_tag, card_print, opts) data end |
#cards_request_physical_post_with_http_info(user_id, wallet_id, perms_group, card_tag, card_print, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)>
create a physical card Create a new physical card. To use a card you will need to activate it (/cards/id/Activate/).
1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 |
# File 'lib/treezor_client/api/card_api.rb', line 1241 def cards_request_physical_post_with_http_info(user_id, wallet_id, perms_group, card_tag, card_print, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: CardApi.cards_request_physical_post ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? fail ArgumentError, "Missing the required parameter 'user_id' when calling CardApi.cards_request_physical_post" 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 CardApi.cards_request_physical_post" end # verify the required parameter 'perms_group' is set if @api_client.config.client_side_validation && perms_group.nil? fail ArgumentError, "Missing the required parameter 'perms_group' when calling CardApi.cards_request_physical_post" end # verify the required parameter 'card_tag' is set if @api_client.config.client_side_validation && card_tag.nil? fail ArgumentError, "Missing the required parameter 'card_tag' when calling CardApi.cards_request_physical_post" end # verify the required parameter 'card_print' is set if @api_client.config.client_side_validation && card_print.nil? fail ArgumentError, "Missing the required parameter 'card_print' when calling CardApi.cards_request_physical_post" end # resource path local_var_path = '/cards/RequestPhysical' # query parameters query_params = {} query_params[:'userId'] = user_id query_params[:'walletId'] = wallet_id query_params[:'permsGroup'] = perms_group query_params[:'cardTag'] = card_tag query_params[:'cardPrint'] = card_print query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil? query_params[:'batchDeliveryId'] = opts[:'batch_delivery_id'] if !opts[:'batch_delivery_id'].nil? query_params[:'limitAtmYear'] = opts[:'limit_atm_year'] if !opts[:'limit_atm_year'].nil? query_params[:'limitAtmMonth'] = opts[:'limit_atm_month'] if !opts[:'limit_atm_month'].nil? query_params[:'limitAtmWeek'] = opts[:'limit_atm_week'] if !opts[:'limit_atm_week'].nil? query_params[:'limitAtmDay'] = opts[:'limit_atm_day'] if !opts[:'limit_atm_day'].nil? query_params[:'limitAtmAll'] = opts[:'limit_atm_all'] if !opts[:'limit_atm_all'].nil? query_params[:'limitPaymentYear'] = opts[:'limit_payment_year'] if !opts[:'limit_payment_year'].nil? query_params[:'limitPaymentMonth'] = opts[:'limit_payment_month'] if !opts[:'limit_payment_month'].nil? query_params[:'limitPaymentWeek'] = opts[:'limit_payment_week'] if !opts[:'limit_payment_week'].nil? query_params[:'limitPaymentDay'] = opts[:'limit_payment_day'] if !opts[:'limit_payment_day'].nil? query_params[:'limitPaymentAll'] = opts[:'limit_payment_all'] if !opts[:'limit_payment_all'].nil? query_params[:'paymentDailyLimit'] = opts[:'payment_daily_limit'] if !opts[:'payment_daily_limit'].nil? query_params[:'pin'] = opts[:'pin'] if !opts[:'pin'].nil? query_params[:'anonymous'] = opts[:'anonymous'] if !opts[:'anonymous'].nil? query_params[:'sendToParent'] = opts[:'send_to_parent'] if !opts[:'send_to_parent'].nil? query_params[:'mccRestrictionGroupId'] = opts[:'mcc_restriction_group_id'] if !opts[:'mcc_restriction_group_id'].nil? query_params[:'merchantRestrictionGroupId'] = opts[:'merchant_restriction_group_id'] if !opts[:'merchant_restriction_group_id'].nil? query_params[:'countryRestrictionGroupId'] = opts[:'country_restriction_group_id'] if !opts[:'country_restriction_group_id'].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? # header parameters header_params = {} # 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 => 'InlineResponse2005') if @api_client.config.debugging @api_client.config.logger.debug "API called: CardApi#cards_request_physical_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |