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 = {}) ⇒ InlineResponse2007
get a card image Return virtual card’s image.
-
#cardimages_get_with_http_info(card_id, opts = {}) ⇒ Array<(InlineResponse2007, Fixnum, Hash)>
get a card image Return virtual card's image.
-
#cards_create_virtual_post(user_id, wallet_id, perms_group, card_print, opts = {}) ⇒ InlineResponse2006
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<(InlineResponse2006, Fixnum, Hash)>
create a virtual card Create a new virtual card.
-
#cards_get(opts = {}) ⇒ InlineResponse2006
search cards.
-
#cards_get_with_http_info(opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
search cards.
-
#cards_id_activate_put(id, opts = {}) ⇒ InlineResponse2006
activate a card The Activate endpoint change card status to activate.
-
#cards_id_activate_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2006, 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 = {}) ⇒ InlineResponse2006
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<(InlineResponse2006, Fixnum, Hash)>
change card's PIN Change card's PIN code knowing the current one.
-
#cards_id_convert_virtual_put(id, opts = {}) ⇒ InlineResponse2006
convert card to virtual Convert a virtual card into a physical one.
-
#cards_id_convert_virtual_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
convert card to virtual Convert a virtual card into a physical one.
-
#cards_id_delete(id, opts = {}) ⇒ InlineResponse2006
deactivate a card.
-
#cards_id_delete_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
deactivate a card.
-
#cards_id_get(id, opts = {}) ⇒ InlineResponse2006
get a card.
-
#cards_id_get_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
get a card.
-
#cards_id_limits_put(id, opts = {}) ⇒ InlineResponse2006
update card’s limits Update of the card limits.
-
#cards_id_limits_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
update card's limits Update of the card limits.
-
#cards_id_lock_unlock_put(id, lock_status, opts = {}) ⇒ InlineResponse2006
update card’s blocking status Block or unblock a card.
-
#cards_id_lock_unlock_put_with_http_info(id, lock_status, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
update card's blocking status Block or unblock a card.
-
#cards_id_options_put(id, foreign, online, atm, nfc, opts = {}) ⇒ InlineResponse2006
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<(InlineResponse2006, Fixnum, Hash)>
update card's options Allows to update card's permission group.
-
#cards_id_put(id, opts = {}) ⇒ InlineResponse2006
update card informations Actually update mccRestrictionGroupId and merchantRestrictionGroupId of a card.
-
#cards_id_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
update card informations Actually update mccRestrictionGroupId and merchantRestrictionGroupId of a card.
-
#cards_id_regenerate_put(id, opts = {}) ⇒ InlineResponse2006
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<(InlineResponse2006, 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 = {}) ⇒ InlineResponse2006
set card’s PIN Overwrite card’s PIN.
-
#cards_id_set_pin_put_with_http_info(id, new_pin, confirm_pin, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
set card's PIN Overwrite card's PIN.
-
#cards_id_unblock_pin_put(id, opts = {}) ⇒ InlineResponse2006
unblock card’s PIN Unblock card’s PIN code.
-
#cards_id_unblock_pin_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
unblock card's PIN Unblock card's PIN code.
-
#cards_request_physical_post(user_id, wallet_id, perms_group, card_tag, card_print, opts = {}) ⇒ InlineResponse2006
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<(InlineResponse2006, 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 = {}) ⇒ InlineResponse2007
get a card image Return virtual card’s image
32 33 34 35 |
# File 'lib/treezor_client/api/card_api.rb', line 32 def cardimages_get(card_id, opts = {}) data, _status_code, _headers = cardimages_get_with_http_info(card_id, opts) return data end |
#cardimages_get_with_http_info(card_id, opts = {}) ⇒ Array<(InlineResponse2007, Fixnum, Hash)>
get a card image Return virtual card's image
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 85 |
# File 'lib/treezor_client/api/card_api.rb', line 46 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 => 'InlineResponse2007') 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 = {}) ⇒ InlineResponse2006
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) return data end |
#cards_create_virtual_post_with_http_info(user_id, wallet_id, perms_group, card_print, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
create a virtual card Create a new virtual card. To use a card you will need to activate it (/cards/id/Activate/).
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 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 |
# File 'lib/treezor_client/api/card_api.rb', line 150 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[:'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[:'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 => 'InlineResponse2006') 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 = {}) ⇒ InlineResponse2006
search cards
250 251 252 253 |
# File 'lib/treezor_client/api/card_api.rb', line 250 def cards_get(opts = {}) data, _status_code, _headers = cards_get_with_http_info(opts) return data end |
#cards_get_with_http_info(opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
search cards
282 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 |
# File 'lib/treezor_client/api/card_api.rb', line 282 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 => 'InlineResponse2006') 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 = {}) ⇒ InlineResponse2006
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) return data end |
#cards_id_activate_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2006, 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 => 'InlineResponse2006') 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 = {}) ⇒ InlineResponse2006
change card’s PIN Change card’s PIN code knowing the current one.
415 416 417 418 |
# File 'lib/treezor_client/api/card_api.rb', line 415 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) return data end |
#cards_id_change_pin_put_with_http_info(id, current_pin, new_pin, confirm_pin, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
change card's PIN Change card's PIN code knowing the current one.
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 485 |
# File 'lib/treezor_client/api/card_api.rb', line 432 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 => 'InlineResponse2006') 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 = {}) ⇒ InlineResponse2006
convert card to virtual Convert a virtual card into a physical one. The converted card will be both virtual and physical.
496 497 498 499 |
# File 'lib/treezor_client/api/card_api.rb', line 496 def cards_id_convert_virtual_put(id, opts = {}) data, _status_code, _headers = cards_id_convert_virtual_put_with_http_info(id, opts) return data end |
#cards_id_convert_virtual_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
convert card to virtual Convert a virtual card into a physical one. The converted card will be both virtual and physical.
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 547 548 |
# File 'lib/treezor_client/api/card_api.rb', line 510 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 => 'InlineResponse2006') 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_delete(id, opts = {}) ⇒ InlineResponse2006
deactivate a card
555 556 557 558 |
# File 'lib/treezor_client/api/card_api.rb', line 555 def cards_id_delete(id, opts = {}) data, _status_code, _headers = cards_id_delete_with_http_info(id, opts) return data end |
#cards_id_delete_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
deactivate a card
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 595 596 597 598 599 |
# File 'lib/treezor_client/api/card_api.rb', line 565 def cards_id_delete_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CardApi.cards_id_delete ..." 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_delete" 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(:DELETE, 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#cards_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#cards_id_get(id, opts = {}) ⇒ InlineResponse2006
get a card
606 607 608 609 |
# File 'lib/treezor_client/api/card_api.rb', line 606 def cards_id_get(id, opts = {}) data, _status_code, _headers = cards_id_get_with_http_info(id, opts) return data end |
#cards_id_get_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
get a card
616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 |
# File 'lib/treezor_client/api/card_api.rb', line 616 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 => 'InlineResponse2006') 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 = {}) ⇒ InlineResponse2006
update card’s limits Update of the card limits.
671 672 673 674 |
# File 'lib/treezor_client/api/card_api.rb', line 671 def cards_id_limits_put(id, opts = {}) data, _status_code, _headers = cards_id_limits_put_with_http_info(id, opts) return data end |
#cards_id_limits_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
update card's limits Update of the card limits.
695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 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 |
# File 'lib/treezor_client/api/card_api.rb', line 695 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[:'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 => 'InlineResponse2006') 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 = {}) ⇒ InlineResponse2006
update card’s blocking status Block or unblock a card.
755 756 757 758 |
# File 'lib/treezor_client/api/card_api.rb', line 755 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) return data end |
#cards_id_lock_unlock_put_with_http_info(id, lock_status, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
update card's blocking status Block or unblock a card.
770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 |
# File 'lib/treezor_client/api/card_api.rb', line 770 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 => 'InlineResponse2006') 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 = {}) ⇒ InlineResponse2006
update card’s options Allows to update card’s permission group.
828 829 830 831 |
# File 'lib/treezor_client/api/card_api.rb', line 828 def (id, foreign, online, atm, nfc, opts = {}) data, _status_code, _headers = (id, foreign, online, atm, nfc, opts) return data end |
#cards_id_options_put_with_http_info(id, foreign, online, atm, nfc, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
update card's options Allows to update card's permission group.
846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 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 |
# File 'lib/treezor_client/api/card_api.rb', line 846 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 => 'InlineResponse2006') 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 = {}) ⇒ InlineResponse2006
update card informations Actually update mccRestrictionGroupId and merchantRestrictionGroupId of a card
918 919 920 921 |
# File 'lib/treezor_client/api/card_api.rb', line 918 def cards_id_put(id, opts = {}) data, _status_code, _headers = cards_id_put_with_http_info(id, opts) return data end |
#cards_id_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
update card informations Actually update mccRestrictionGroupId and merchantRestrictionGroupId of a card
935 936 937 938 939 940 941 942 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 |
# File 'lib/treezor_client/api/card_api.rb', line 935 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 => 'InlineResponse2006') 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 = {}) ⇒ InlineResponse2006
regenerate card If card is Lost or Stolen (card’s status), the card itself will get regenerated. Otherwise only the card image gets recreated.
987 988 989 990 |
# File 'lib/treezor_client/api/card_api.rb', line 987 def cards_id_regenerate_put(id, opts = {}) data, _status_code, _headers = cards_id_regenerate_put_with_http_info(id, opts) return data end |
#cards_id_regenerate_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2006, 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.
1001 1002 1003 1004 1005 1006 1007 1008 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 |
# File 'lib/treezor_client/api/card_api.rb', line 1001 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 => 'InlineResponse2006') 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 = {}) ⇒ InlineResponse2006
set card’s PIN Overwrite card’s PIN.
1052 1053 1054 1055 |
# File 'lib/treezor_client/api/card_api.rb', line 1052 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) return data end |
#cards_id_set_pin_put_with_http_info(id, new_pin, confirm_pin, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
set card's PIN Overwrite card's PIN.
1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 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 |
# File 'lib/treezor_client/api/card_api.rb', line 1068 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 => 'InlineResponse2006') 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 = {}) ⇒ InlineResponse2006
unblock card’s PIN Unblock card’s PIN code.
1127 1128 1129 1130 |
# File 'lib/treezor_client/api/card_api.rb', line 1127 def cards_id_unblock_pin_put(id, opts = {}) data, _status_code, _headers = cards_id_unblock_pin_put_with_http_info(id, opts) return data end |
#cards_id_unblock_pin_put_with_http_info(id, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
unblock card's PIN Unblock card's PIN code.
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 1174 1175 1176 1177 1178 1179 |
# File 'lib/treezor_client/api/card_api.rb', line 1141 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 => 'InlineResponse2006') 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_request_physical_post(user_id, wallet_id, perms_group, card_tag, card_print, opts = {}) ⇒ InlineResponse2006
create a physical card Create a new physical card. To use a card you will need to activate it (/cards/id/Activate/).
1210 1211 1212 1213 |
# File 'lib/treezor_client/api/card_api.rb', line 1210 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) return data end |
#cards_request_physical_post_with_http_info(user_id, wallet_id, perms_group, card_tag, card_print, opts = {}) ⇒ Array<(InlineResponse2006, Fixnum, Hash)>
create a physical card Create a new physical card. To use a card you will need to activate it (/cards/id/Activate/).
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 1319 |
# File 'lib/treezor_client/api/card_api.rb', line 1244 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[:'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[:'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 => 'InlineResponse2006') 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 |