Class: ShellCardManagementApIs::CardDetailsResponse
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- ShellCardManagementApIs::CardDetailsResponse
- Defined in:
- lib/shell_card_management_ap_is/models/card_details_response.rb
Overview
CardDetailsResponse Model.
Instance Attribute Summary collapse
-
#account_id ⇒ Integer
Account Id (i.e. Customer Id of the Customer in the Shell Card Platform) of the customer.
-
#account_number ⇒ String
Account Number of the customer.
-
#account_short_name ⇒ String
Account short name.
-
#bundle_id ⇒ String
Bundle Id associated with card in the Gateway.
-
#card_block_schedules ⇒ Array[CardDetailsResponseCardBlockSchedulesItemsAllOf0]
Bundle Id associated with card in the Gateway.
-
#card_delivery_address ⇒ CardDeliveryAddress
Bundle Id associated with card in the Gateway.
-
#card_group_id ⇒ Integer
Existing Card Group ID, under which the replacement card is to be created.
-
#card_group_name ⇒ String
Card group name.
-
#card_id ⇒ Integer
Unique Card Id in Cards platform.
-
#card_type_code ⇒ String
ISO code of the card i.e.
-
#card_type_id ⇒ Integer
Card Type ID.
-
#card_type_name ⇒ String
Card Type Name.
-
#col_co_country_code ⇒ String
ISO 3166 Alpha-2 Country Code for the customer and card owning country.
-
#creation_date ⇒ String
Card Creation Date time.
-
#driver_name ⇒ String
Driver name of the card.
-
#effective_date ⇒ String
Effective date for the Card.
-
#emboss_text ⇒ String
Text printed on the card as account name.
-
#error ⇒ ErrorStatus
Bundle Id associated with card in the Gateway.
-
#expiry_date ⇒ String
Expiry date of the card.
-
#fleet_id_prompt ⇒ TrueClass | FalseClass
True if fleet id input is enabled, else false.
-
#fuel_sets ⇒ Array[CardDetailsResponseFuelSetsItems]
List of active fuel type product restrictions applied on the card.
-
#has_pin ⇒ TrueClass | FalseClass
True if card has PIN, else false.
-
#international_pos_language_code ⇒ CardDetailsResponseInternationalPOSLanguageCodeEnum
Issue number of the card.
-
#international_pos_language_id ⇒ CardDetailsResponseInternationalPOSLanguageIDEnum
Issue number of the card.
-
#is_chip_card ⇒ TrueClass | FalseClass
True if a chip card, else false.
-
#is_crt ⇒ TrueClass | FalseClass
True if it is a Commercial Road Transport (CRT) card, else false.
-
#is_fleet ⇒ TrueClass | FalseClass
True if it is a Fleet card, else false.
-
#is_international ⇒ TrueClass | FalseClass
True if it is an international card, else false.
-
#is_mag_strip_card ⇒ TrueClass | FalseClass
True if it is a magnetic stripe card, else false.
-
#is_national ⇒ TrueClass | FalseClass
True if it is a national card, else false.
-
#is_partner_sites_included ⇒ TrueClass | FalseClass
True if it is allowed at all partner sites, else false.
-
#is_self_selected_pin ⇒ TrueClass | FalseClass
True if card has Self Selected PIN, else false.
-
#is_shell_sites_only ⇒ TrueClass | FalseClass
True if it is only allowed at Shell sites, else false.
-
#is_virtual_card ⇒ TrueClass | FalseClass
True if it is a virtual card, else false.
-
#issue_number ⇒ Integer
Issue number of the card.
-
#issued_date ⇒ String
Card issue date.
-
#last_modified_date ⇒ String
Card last modified date.
-
#last_used_date ⇒ String
Card last used date.
-
#local_currency_code ⇒ String
ISO 4217 Curreny Code of the local currency.
-
#local_currency_symbol ⇒ String
Currency symbol of local currency.
-
#local_pos_language_code ⇒ CardDetailsResponseInternationalPOSLanguageCodeEnum
Issue number of the card.
-
#local_pos_language_id ⇒ CardDetailsResponseInternationalPOSLanguageIDEnum
Issue number of the card.
-
#misuse_date ⇒ String
Last misused date of the card.
-
#non_fuel_sets ⇒ Array[CardDetailsResponseNonFuelSetsItems]
List of active non-fuel type product restrictions applied on the card.
-
#odometer_prompt ⇒ TrueClass | FalseClass
True if odometer input is enabled on the card, else false.
-
#pan ⇒ String
Card PAN **PAN attribute will be deprecated so use PANID instead**.
-
#payer_id ⇒ Integer
Payer Id (i.e. Customer Id of the Payment Customer in the Shell Card Platform) of the selected payer.
-
#payer_number ⇒ String
Payer Number of the selected payer.
-
#permanent_block_allowed ⇒ TrueClass | FalseClass
True if card can be blocked permanently, else false.
-
#pin_delivery_address ⇒ PINDeliveryAddress
Bundle Id associated with card in the Gateway.
-
#pin_type ⇒ CardDetailsResponsePINTypeEnum
True if fleet id input is enabled, else false.
-
#purchase_category_code ⇒ String
Purchase category code of the card.
-
#purchase_category_id ⇒ Integer
Purchase category identifier in the Shell Card Platform.
-
#purchase_category_name ⇒ String
Purchase category name.
-
#reissue_setting ⇒ Object
Issue number of the card.
-
#renewal_date ⇒ String
Renewal date of the card.
-
#renewed_card_expiry_date ⇒ String
Renewed card expiry date.
-
#renewed_card_id ⇒ Integer
Renewed card id.
-
#renewed_card_issue_number ⇒ Integer
Renewed card issue number.
-
#renewed_card_reissue_setting ⇒ CardDetailsResponseRenewedCardReissueSettingEnum
Renewed card issue number.
-
#renewed_card_status ⇒ String
Renewed card status description.
-
#renewed_card_status_id ⇒ Integer
Renewed card status id.
-
#request_id ⇒ String
API Request.
-
#status ⇒ String
Possible Id’s and description: * 1 Active * 7 Blocked Card * 8 Expired * 9 Cancelled * 10 New * 23 Pending Renewal * 31 Replaced * 41 Temporary Block (Customer) * 42 Temporary Block (Shell) * 43 Fraud * 101 Active (Block in progress) * * 102 Blocked Card (Unblock in progress) * * 103 Active (Cancel in progress) * * 104 Active (Marked as damaged) * * 105 New (Cancel as damaged) * * 106 Active(Scheduled for block) ”# * 107 Blocked Card(Scheduled for unblock) *# * 108 Blocked Card (Cancel in progress) * > Note: • Items marked with * are intermediate statuses to indicate that there are pending requests in progress.
-
#status_id ⇒ CardDetailsResponseStatusIdEnum
Card PAN **PAN attribute will be deprecated so use PANID instead**.
-
#temperature ⇒ String
Hot-list status.
-
#temporary_block_allowed ⇒ TrueClass | FalseClass
True if card can be blocked temporarily, else false.
-
#token_type_id ⇒ Integer
Token Type ID configured for the Card.
-
#token_type_name ⇒ String
Token Type Name configured for the Card.
-
#unblock_allowed ⇒ TrueClass | FalseClass
True/False True if card can be Unblocked, else false.
-
#vrn ⇒ String
Vehicle registration number of the card.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
-
#initialize(payer_id = SKIP, payer_number = SKIP, account_id = SKIP, account_number = SKIP, account_short_name = SKIP, col_co_country_code = SKIP, local_currency_code = SKIP, local_currency_symbol = SKIP, card_id = SKIP, pan = SKIP, status_id = SKIP, status = SKIP, odometer_prompt = SKIP, fleet_id_prompt = SKIP, pin_type = SKIP, has_pin = SKIP, is_self_selected_pin = SKIP, temporary_block_allowed = SKIP, unblock_allowed = SKIP, permanent_block_allowed = SKIP, issue_number = SKIP, reissue_setting = SKIP, international_pos_language_id = SKIP, international_pos_language_code = SKIP, local_pos_language_id = SKIP, local_pos_language_code = SKIP, card_type_code = SKIP, card_type_id = SKIP, card_type_name = SKIP, token_type_id = SKIP, token_type_name = SKIP, is_chip_card = SKIP, is_mag_strip_card = SKIP, is_virtual_card = SKIP, purchase_category_code = SKIP, purchase_category_id = SKIP, purchase_category_name = SKIP, is_crt = SKIP, is_fleet = SKIP, is_international = SKIP, is_national = SKIP, is_partner_sites_included = SKIP, is_shell_sites_only = SKIP, fuel_sets = SKIP, non_fuel_sets = SKIP, issued_date = SKIP, expiry_date = SKIP, last_used_date = SKIP, misuse_date = SKIP, temperature = SKIP, driver_name = SKIP, vrn = SKIP, emboss_text = SKIP, card_group_id = SKIP, card_group_name = SKIP, renewal_date = SKIP, renewed_card_id = SKIP, renewed_card_status_id = SKIP, renewed_card_status = SKIP, renewed_card_expiry_date = SKIP, renewed_card_issue_number = SKIP, renewed_card_reissue_setting = SKIP, creation_date = SKIP, effective_date = SKIP, last_modified_date = SKIP, bundle_id = SKIP, card_delivery_address = SKIP, pin_delivery_address = SKIP, card_block_schedules = SKIP, error = SKIP, request_id = SKIP) ⇒ CardDetailsResponse
constructor
A new instance of CardDetailsResponse.
-
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
-
#to_s ⇒ Object
Provides a human-readable string representation of the object.
Methods inherited from BaseModel
#check_for_conflict, #process_additional_properties, #process_array, #process_basic_value, #process_hash, #to_hash, #to_json
Constructor Details
#initialize(payer_id = SKIP, payer_number = SKIP, account_id = SKIP, account_number = SKIP, account_short_name = SKIP, col_co_country_code = SKIP, local_currency_code = SKIP, local_currency_symbol = SKIP, card_id = SKIP, pan = SKIP, status_id = SKIP, status = SKIP, odometer_prompt = SKIP, fleet_id_prompt = SKIP, pin_type = SKIP, has_pin = SKIP, is_self_selected_pin = SKIP, temporary_block_allowed = SKIP, unblock_allowed = SKIP, permanent_block_allowed = SKIP, issue_number = SKIP, reissue_setting = SKIP, international_pos_language_id = SKIP, international_pos_language_code = SKIP, local_pos_language_id = SKIP, local_pos_language_code = SKIP, card_type_code = SKIP, card_type_id = SKIP, card_type_name = SKIP, token_type_id = SKIP, token_type_name = SKIP, is_chip_card = SKIP, is_mag_strip_card = SKIP, is_virtual_card = SKIP, purchase_category_code = SKIP, purchase_category_id = SKIP, purchase_category_name = SKIP, is_crt = SKIP, is_fleet = SKIP, is_international = SKIP, is_national = SKIP, is_partner_sites_included = SKIP, is_shell_sites_only = SKIP, fuel_sets = SKIP, non_fuel_sets = SKIP, issued_date = SKIP, expiry_date = SKIP, last_used_date = SKIP, misuse_date = SKIP, temperature = SKIP, driver_name = SKIP, vrn = SKIP, emboss_text = SKIP, card_group_id = SKIP, card_group_name = SKIP, renewal_date = SKIP, renewed_card_id = SKIP, renewed_card_status_id = SKIP, renewed_card_status = SKIP, renewed_card_expiry_date = SKIP, renewed_card_issue_number = SKIP, renewed_card_reissue_setting = SKIP, creation_date = SKIP, effective_date = SKIP, last_modified_date = SKIP, bundle_id = SKIP, card_delivery_address = SKIP, pin_delivery_address = SKIP, card_block_schedules = SKIP, error = SKIP, request_id = SKIP) ⇒ CardDetailsResponse
Returns a new instance of CardDetailsResponse.
536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 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 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 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 651 652 653 654 655 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 536 def initialize(payer_id = SKIP, payer_number = SKIP, account_id = SKIP, account_number = SKIP, account_short_name = SKIP, col_co_country_code = SKIP, local_currency_code = SKIP, local_currency_symbol = SKIP, card_id = SKIP, pan = SKIP, status_id = SKIP, status = SKIP, odometer_prompt = SKIP, fleet_id_prompt = SKIP, pin_type = SKIP, has_pin = SKIP, is_self_selected_pin = SKIP, temporary_block_allowed = SKIP, unblock_allowed = SKIP, permanent_block_allowed = SKIP, issue_number = SKIP, reissue_setting = SKIP, international_pos_language_id = SKIP, international_pos_language_code = SKIP, local_pos_language_id = SKIP, local_pos_language_code = SKIP, card_type_code = SKIP, card_type_id = SKIP, card_type_name = SKIP, token_type_id = SKIP, token_type_name = SKIP, is_chip_card = SKIP, is_mag_strip_card = SKIP, is_virtual_card = SKIP, purchase_category_code = SKIP, purchase_category_id = SKIP, purchase_category_name = SKIP, is_crt = SKIP, is_fleet = SKIP, is_international = SKIP, is_national = SKIP, is_partner_sites_included = SKIP, is_shell_sites_only = SKIP, fuel_sets = SKIP, non_fuel_sets = SKIP, issued_date = SKIP, expiry_date = SKIP, last_used_date = SKIP, misuse_date = SKIP, temperature = SKIP, driver_name = SKIP, vrn = SKIP, emboss_text = SKIP, card_group_id = SKIP, card_group_name = SKIP, renewal_date = SKIP, renewed_card_id = SKIP, renewed_card_status_id = SKIP, renewed_card_status = SKIP, renewed_card_expiry_date = SKIP, renewed_card_issue_number = SKIP, renewed_card_reissue_setting = SKIP, creation_date = SKIP, effective_date = SKIP, last_modified_date = SKIP, bundle_id = SKIP, card_delivery_address = SKIP, pin_delivery_address = SKIP, card_block_schedules = SKIP, error = SKIP, request_id = SKIP) @payer_id = payer_id unless payer_id == SKIP @payer_number = payer_number unless payer_number == SKIP @account_id = account_id unless account_id == SKIP @account_number = account_number unless account_number == SKIP @account_short_name = account_short_name unless account_short_name == SKIP @col_co_country_code = col_co_country_code unless col_co_country_code == SKIP @local_currency_code = local_currency_code unless local_currency_code == SKIP @local_currency_symbol = local_currency_symbol unless local_currency_symbol == SKIP @card_id = card_id unless card_id == SKIP @pan = pan unless pan == SKIP @status_id = status_id unless status_id == SKIP @status = status unless status == SKIP @odometer_prompt = odometer_prompt unless odometer_prompt == SKIP @fleet_id_prompt = fleet_id_prompt unless fleet_id_prompt == SKIP @pin_type = pin_type unless pin_type == SKIP @has_pin = has_pin unless has_pin == SKIP @is_self_selected_pin = is_self_selected_pin unless is_self_selected_pin == SKIP @temporary_block_allowed = temporary_block_allowed unless temporary_block_allowed == SKIP @unblock_allowed = unblock_allowed unless unblock_allowed == SKIP @permanent_block_allowed = permanent_block_allowed unless permanent_block_allowed == SKIP @issue_number = issue_number unless issue_number == SKIP @reissue_setting = reissue_setting unless reissue_setting == SKIP unless international_pos_language_id == SKIP @international_pos_language_id = international_pos_language_id end unless international_pos_language_code == SKIP @international_pos_language_code = international_pos_language_code end @local_pos_language_id = local_pos_language_id unless local_pos_language_id == SKIP @local_pos_language_code = local_pos_language_code unless local_pos_language_code == SKIP @card_type_code = card_type_code unless card_type_code == SKIP @card_type_id = card_type_id unless card_type_id == SKIP @card_type_name = card_type_name unless card_type_name == SKIP @token_type_id = token_type_id unless token_type_id == SKIP @token_type_name = token_type_name unless token_type_name == SKIP @is_chip_card = is_chip_card unless is_chip_card == SKIP @is_mag_strip_card = is_mag_strip_card unless is_mag_strip_card == SKIP @is_virtual_card = is_virtual_card unless is_virtual_card == SKIP @purchase_category_code = purchase_category_code unless purchase_category_code == SKIP @purchase_category_id = purchase_category_id unless purchase_category_id == SKIP @purchase_category_name = purchase_category_name unless purchase_category_name == SKIP @is_crt = is_crt unless is_crt == SKIP @is_fleet = is_fleet unless is_fleet == SKIP @is_international = is_international unless is_international == SKIP @is_national = is_national unless is_national == SKIP unless is_partner_sites_included == SKIP @is_partner_sites_included = is_partner_sites_included end @is_shell_sites_only = is_shell_sites_only unless is_shell_sites_only == SKIP @fuel_sets = fuel_sets unless fuel_sets == SKIP @non_fuel_sets = non_fuel_sets unless non_fuel_sets == SKIP @issued_date = issued_date unless issued_date == SKIP @expiry_date = expiry_date unless expiry_date == SKIP @last_used_date = last_used_date unless last_used_date == SKIP @misuse_date = misuse_date unless misuse_date == SKIP @temperature = temperature unless temperature == SKIP @driver_name = driver_name unless driver_name == SKIP @vrn = vrn unless vrn == SKIP @emboss_text = emboss_text unless emboss_text == SKIP @card_group_id = card_group_id unless card_group_id == SKIP @card_group_name = card_group_name unless card_group_name == SKIP @renewal_date = renewal_date unless renewal_date == SKIP @renewed_card_id = renewed_card_id unless renewed_card_id == SKIP @renewed_card_status_id = renewed_card_status_id unless renewed_card_status_id == SKIP @renewed_card_status = renewed_card_status unless renewed_card_status == SKIP @renewed_card_expiry_date = renewed_card_expiry_date unless renewed_card_expiry_date == SKIP unless renewed_card_issue_number == SKIP @renewed_card_issue_number = renewed_card_issue_number end unless renewed_card_reissue_setting == SKIP @renewed_card_reissue_setting = renewed_card_reissue_setting end @creation_date = creation_date unless creation_date == SKIP @effective_date = effective_date unless effective_date == SKIP @last_modified_date = last_modified_date unless last_modified_date == SKIP @bundle_id = bundle_id unless bundle_id == SKIP @card_delivery_address = card_delivery_address unless card_delivery_address == SKIP @pin_delivery_address = pin_delivery_address unless pin_delivery_address == SKIP @card_block_schedules = card_block_schedules unless card_block_schedules == SKIP @error = error unless error == SKIP @request_id = request_id unless request_id == SKIP end |
Instance Attribute Details
#account_id ⇒ Integer
Account Id (i.e. Customer Id of the Customer in the Shell Card Platform) of the customer.
24 25 26 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 24 def account_id @account_id end |
#account_number ⇒ String
Account Number of the customer.
28 29 30 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 28 def account_number @account_number end |
#account_short_name ⇒ String
Account short name.
32 33 34 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 32 def account_short_name @account_short_name end |
#bundle_id ⇒ String
Bundle Id associated with card in the Gateway. This field will have a null value if the card is not associated with any bundle in Gateway or the value of IncludeBundleDetails in request is false.
314 315 316 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 314 def bundle_id @bundle_id end |
#card_block_schedules ⇒ Array[CardDetailsResponseCardBlockSchedulesItemsAllOf0]
Bundle Id associated with card in the Gateway. This field will have a null value if the card is not associated with any bundle in Gateway or the value of IncludeBundleDetails in request is false.
332 333 334 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 332 def card_block_schedules @card_block_schedules end |
#card_delivery_address ⇒ CardDeliveryAddress
Bundle Id associated with card in the Gateway. This field will have a null value if the card is not associated with any bundle in Gateway or the value of IncludeBundleDetails in request is false.
320 321 322 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 320 def card_delivery_address @card_delivery_address end |
#card_group_id ⇒ Integer
Existing Card Group ID, under which the replacement card is to be created. Pass “-1” if the replacement card should not be assigned to any card group. Optional. If not provided, the replacement card will be created under the same card group as the current card. Example- 156
263 264 265 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 263 def card_group_id @card_group_id end |
#card_group_name ⇒ String
Card group name. Note- 1. While ordering card this field is mandatory when IsNewCardGroup is true.
268 269 270 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 268 def card_group_name @card_group_name end |
#card_id ⇒ Integer
Unique Card Id in Cards platform.
48 49 50 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 48 def card_id @card_id end |
#card_type_code ⇒ String
ISO code of the card i.e. first 7 digits of the PAN.
147 148 149 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 147 def card_type_code @card_type_code end |
#card_type_id ⇒ Integer
Card Type ID
151 152 153 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 151 def card_type_id @card_type_id end |
#card_type_name ⇒ String
Card Type Name
155 156 157 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 155 def card_type_name @card_type_name end |
#col_co_country_code ⇒ String
ISO 3166 Alpha-2 Country Code for the customer and card owning country.
36 37 38 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 36 def col_co_country_code @col_co_country_code end |
#creation_date ⇒ String
Card Creation Date time
300 301 302 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 300 def creation_date @creation_date end |
#driver_name ⇒ String
Driver name of the card. Note- While ordering card, optional when VRN is passed else mandatory.
244 245 246 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 244 def driver_name @driver_name end |
#effective_date ⇒ String
Effective date for the Card
304 305 306 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 304 def effective_date @effective_date end |
#emboss_text ⇒ String
Text printed on the card as account name.
253 254 255 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 253 def emboss_text @emboss_text end |
#error ⇒ ErrorStatus
Bundle Id associated with card in the Gateway. This field will have a null value if the card is not associated with any bundle in Gateway or the value of IncludeBundleDetails in request is false.
338 339 340 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 338 def error @error end |
#expiry_date ⇒ String
Expiry date of the card.
227 228 229 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 227 def expiry_date @expiry_date end |
#fleet_id_prompt ⇒ TrueClass | FalseClass
True if fleet id input is enabled, else false
95 96 97 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 95 def fleet_id_prompt @fleet_id_prompt end |
#fuel_sets ⇒ Array[CardDetailsResponseFuelSetsItems]
List of active fuel type product restrictions applied on the card.
215 216 217 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 215 def fuel_sets @fuel_sets end |
#has_pin ⇒ TrueClass | FalseClass
True if card has PIN, else false
103 104 105 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 103 def has_pin @has_pin end |
#international_pos_language_code ⇒ CardDetailsResponseInternationalPOSLanguageCodeEnum
Issue number of the card
135 136 137 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 135 def international_pos_language_code @international_pos_language_code end |
#international_pos_language_id ⇒ CardDetailsResponseInternationalPOSLanguageIDEnum
Issue number of the card
131 132 133 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 131 def international_pos_language_id @international_pos_language_id end |
#is_chip_card ⇒ TrueClass | FalseClass
True if a chip card, else false
167 168 169 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 167 def is_chip_card @is_chip_card end |
#is_crt ⇒ TrueClass | FalseClass
True if it is a Commercial Road Transport (CRT) card, else false
191 192 193 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 191 def is_crt @is_crt end |
#is_fleet ⇒ TrueClass | FalseClass
True if it is a Fleet card, else false
195 196 197 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 195 def is_fleet @is_fleet end |
#is_international ⇒ TrueClass | FalseClass
True if it is an international card, else false
199 200 201 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 199 def is_international @is_international end |
#is_mag_strip_card ⇒ TrueClass | FalseClass
True if it is a magnetic stripe card, else false
171 172 173 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 171 def is_mag_strip_card @is_mag_strip_card end |
#is_national ⇒ TrueClass | FalseClass
True if it is a national card, else false
203 204 205 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 203 def is_national @is_national end |
#is_partner_sites_included ⇒ TrueClass | FalseClass
True if it is allowed at all partner sites, else false
207 208 209 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 207 def is_partner_sites_included @is_partner_sites_included end |
#is_self_selected_pin ⇒ TrueClass | FalseClass
True if card has Self Selected PIN, else false
107 108 109 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 107 def is_self_selected_pin @is_self_selected_pin end |
#is_shell_sites_only ⇒ TrueClass | FalseClass
True if it is only allowed at Shell sites, else false
211 212 213 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 211 def is_shell_sites_only @is_shell_sites_only end |
#is_virtual_card ⇒ TrueClass | FalseClass
True if it is a virtual card, else false
175 176 177 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 175 def is_virtual_card @is_virtual_card end |
#issue_number ⇒ Integer
Issue number of the card
123 124 125 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 123 def issue_number @issue_number end |
#issued_date ⇒ String
Card issue date.
223 224 225 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 223 def issued_date @issued_date end |
#last_modified_date ⇒ String
Card last modified date
308 309 310 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 308 def last_modified_date @last_modified_date end |
#last_used_date ⇒ String
Card last used date.
231 232 233 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 231 def last_used_date @last_used_date end |
#local_currency_code ⇒ String
ISO 4217 Curreny Code of the local currency.
40 41 42 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 40 def local_currency_code @local_currency_code end |
#local_currency_symbol ⇒ String
Currency symbol of local currency.
44 45 46 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 44 def local_currency_symbol @local_currency_symbol end |
#local_pos_language_code ⇒ CardDetailsResponseInternationalPOSLanguageCodeEnum
Issue number of the card
143 144 145 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 143 def local_pos_language_code @local_pos_language_code end |
#local_pos_language_id ⇒ CardDetailsResponseInternationalPOSLanguageIDEnum
Issue number of the card
139 140 141 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 139 def local_pos_language_id @local_pos_language_id end |
#misuse_date ⇒ String
Last misused date of the card.
235 236 237 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 235 def misuse_date @misuse_date end |
#non_fuel_sets ⇒ Array[CardDetailsResponseNonFuelSetsItems]
List of active non-fuel type product restrictions applied on the card.
219 220 221 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 219 def non_fuel_sets @non_fuel_sets end |
#odometer_prompt ⇒ TrueClass | FalseClass
True if odometer input is enabled on the card, else false
91 92 93 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 91 def odometer_prompt @odometer_prompt end |
#pan ⇒ String
Card PAN **PAN attribute will be deprecated so use PANID instead**
53 54 55 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 53 def pan @pan end |
#payer_id ⇒ Integer
Payer Id (i.e. Customer Id of the Payment Customer in the Shell Card Platform) of the selected payer.
15 16 17 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 15 def payer_id @payer_id end |
#payer_number ⇒ String
Payer Number of the selected payer.
19 20 21 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 19 def payer_number @payer_number end |
#permanent_block_allowed ⇒ TrueClass | FalseClass
True if card can be blocked permanently, else false
119 120 121 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 119 def permanent_block_allowed @permanent_block_allowed end |
#pin_delivery_address ⇒ PINDeliveryAddress
Bundle Id associated with card in the Gateway. This field will have a null value if the card is not associated with any bundle in Gateway or the value of IncludeBundleDetails in request is false.
326 327 328 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 326 def pin_delivery_address @pin_delivery_address end |
#pin_type ⇒ CardDetailsResponsePINTypeEnum
True if fleet id input is enabled, else false
99 100 101 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 99 def pin_type @pin_type end |
#purchase_category_code ⇒ String
Purchase category code of the card.
179 180 181 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 179 def purchase_category_code @purchase_category_code end |
#purchase_category_id ⇒ Integer
Purchase category identifier in the Shell Card Platform.
183 184 185 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 183 def purchase_category_id @purchase_category_id end |
#purchase_category_name ⇒ String
Purchase category name
187 188 189 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 187 def purchase_category_name @purchase_category_name end |
#reissue_setting ⇒ Object
Issue number of the card
127 128 129 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 127 def reissue_setting @reissue_setting end |
#renewal_date ⇒ String
Renewal date of the card. Applicable if ReissueSetting is set to True.
272 273 274 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 272 def renewal_date @renewal_date end |
#renewed_card_expiry_date ⇒ String
Renewed card expiry date.
288 289 290 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 288 def renewed_card_expiry_date @renewed_card_expiry_date end |
#renewed_card_id ⇒ Integer
Renewed card id.
276 277 278 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 276 def renewed_card_id @renewed_card_id end |
#renewed_card_issue_number ⇒ Integer
Renewed card issue number.
292 293 294 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 292 def renewed_card_issue_number @renewed_card_issue_number end |
#renewed_card_reissue_setting ⇒ CardDetailsResponseRenewedCardReissueSettingEnum
Renewed card issue number.
296 297 298 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 296 def renewed_card_reissue_setting @renewed_card_reissue_setting end |
#renewed_card_status ⇒ String
Renewed card status description.
284 285 286 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 284 def renewed_card_status @renewed_card_status end |
#renewed_card_status_id ⇒ Integer
Renewed card status id.
280 281 282 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 280 def renewed_card_status_id @renewed_card_status_id end |
#request_id ⇒ String
API Request
342 343 344 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 342 def request_id @request_id end |
#status ⇒ String
Possible Id’s and description:
-
1 Active
-
7 Blocked Card
-
8 Expired
-
9 Cancelled
-
10 New
-
23 Pending Renewal
-
31 Replaced
-
41 Temporary Block (Customer)
-
42 Temporary Block (Shell)
-
43 Fraud
-
101 Active (Block in progress) *
-
102 Blocked Card (Unblock in progress) *
-
103 Active (Cancel in progress) *
-
104 Active (Marked as damaged) *
-
105 New (Cancel as damaged) *
-
106 Active(Scheduled for block) ”#
-
107 Blocked Card(Scheduled for unblock) *#
-
108 Blocked Card (Cancel in progress) *
> Note: • Items marked with * are intermediate statuses to indicate that there are pending requests in progress. , The response can contain these intermediate statuses only if the IncludeIntermediateStatus flag is true. • The placeholder “<Shell Card Platform Status>” in the items marked with # will be replaced with the Shell Card Platform status description. E.g., “Active (Scheduled for block)”
87 88 89 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 87 def status @status end |
#status_id ⇒ CardDetailsResponseStatusIdEnum
Card PAN **PAN attribute will be deprecated so use PANID instead**
58 59 60 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 58 def status_id @status_id end |
#temperature ⇒ String
Hot-list status
239 240 241 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 239 def temperature @temperature end |
#temporary_block_allowed ⇒ TrueClass | FalseClass
True if card can be blocked temporarily, else false
111 112 113 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 111 def temporary_block_allowed @temporary_block_allowed end |
#token_type_id ⇒ Integer
Token Type ID configured for the Card
159 160 161 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 159 def token_type_id @token_type_id end |
#token_type_name ⇒ String
Token Type Name configured for the Card
163 164 165 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 163 def token_type_name @token_type_name end |
#unblock_allowed ⇒ TrueClass | FalseClass
True/False True if card can be Unblocked, else false
115 116 117 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 115 def unblock_allowed @unblock_allowed end |
#vrn ⇒ String
Vehicle registration number of the card. Note- While ordering card, optional when DriverName is passed else mandatory.
249 250 251 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 249 def vrn @vrn end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
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 690 691 692 693 694 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 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 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 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 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 658 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP account_short_name = hash.key?('AccountShortName') ? hash['AccountShortName'] : SKIP col_co_country_code = hash.key?('ColCoCountryCode') ? hash['ColCoCountryCode'] : SKIP local_currency_code = hash.key?('LocalCurrencyCode') ? hash['LocalCurrencyCode'] : SKIP local_currency_symbol = hash.key?('LocalCurrencySymbol') ? hash['LocalCurrencySymbol'] : SKIP card_id = hash.key?('CardId') ? hash['CardId'] : SKIP pan = hash.key?('PAN') ? hash['PAN'] : SKIP status_id = hash.key?('StatusId') ? hash['StatusId'] : SKIP status = hash.key?('Status') ? hash['Status'] : SKIP odometer_prompt = hash.key?('OdometerPrompt') ? hash['OdometerPrompt'] : SKIP fleet_id_prompt = hash.key?('FleetIdPrompt') ? hash['FleetIdPrompt'] : SKIP pin_type = hash.key?('PINType') ? hash['PINType'] : SKIP has_pin = hash.key?('HasPIN') ? hash['HasPIN'] : SKIP is_self_selected_pin = hash.key?('IsSelfSelectedPIN') ? hash['IsSelfSelectedPIN'] : SKIP temporary_block_allowed = hash.key?('TemporaryBlockAllowed') ? hash['TemporaryBlockAllowed'] : SKIP unblock_allowed = hash.key?('UnblockAllowed') ? hash['UnblockAllowed'] : SKIP permanent_block_allowed = hash.key?('PermanentBlockAllowed') ? hash['PermanentBlockAllowed'] : SKIP issue_number = hash.key?('IssueNumber') ? hash['IssueNumber'] : SKIP reissue_setting = hash.key?('ReissueSetting') ? hash['ReissueSetting'] : SKIP international_pos_language_id = hash.key?('InternationalPOSLanguageID') ? hash['InternationalPOSLanguageID'] : SKIP international_pos_language_code = hash.key?('InternationalPOSLanguageCode') ? hash['InternationalPOSLanguageCode'] : SKIP local_pos_language_id = hash.key?('LocalPOSLanguageID') ? hash['LocalPOSLanguageID'] : SKIP local_pos_language_code = hash.key?('LocalPOSLanguageCode') ? hash['LocalPOSLanguageCode'] : SKIP card_type_code = hash.key?('CardTypeCode') ? hash['CardTypeCode'] : SKIP card_type_id = hash.key?('CardTypeId') ? hash['CardTypeId'] : SKIP card_type_name = hash.key?('CardTypeName') ? hash['CardTypeName'] : SKIP token_type_id = hash.key?('TokenTypeId') ? hash['TokenTypeId'] : SKIP token_type_name = hash.key?('TokenTypeName') ? hash['TokenTypeName'] : SKIP is_chip_card = hash.key?('IsChipCard') ? hash['IsChipCard'] : SKIP is_mag_strip_card = hash.key?('IsMagStripCard') ? hash['IsMagStripCard'] : SKIP is_virtual_card = hash.key?('IsVirtualCard') ? hash['IsVirtualCard'] : SKIP purchase_category_code = hash.key?('PurchaseCategoryCode') ? hash['PurchaseCategoryCode'] : SKIP purchase_category_id = hash.key?('PurchaseCategoryId') ? hash['PurchaseCategoryId'] : SKIP purchase_category_name = hash.key?('PurchaseCategoryName') ? hash['PurchaseCategoryName'] : SKIP is_crt = hash.key?('IsCRT') ? hash['IsCRT'] : SKIP is_fleet = hash.key?('IsFleet') ? hash['IsFleet'] : SKIP is_international = hash.key?('IsInternational') ? hash['IsInternational'] : SKIP is_national = hash.key?('IsNational') ? hash['IsNational'] : SKIP is_partner_sites_included = hash.key?('IsPartnerSitesIncluded') ? hash['IsPartnerSitesIncluded'] : SKIP is_shell_sites_only = hash.key?('IsShellSitesOnly') ? hash['IsShellSitesOnly'] : SKIP # Parameter is an array, so we need to iterate through it fuel_sets = nil unless hash['FuelSets'].nil? fuel_sets = [] hash['FuelSets'].each do |structure| fuel_sets << (CardDetailsResponseFuelSetsItems.from_hash(structure) if structure) end end fuel_sets = SKIP unless hash.key?('FuelSets') # Parameter is an array, so we need to iterate through it non_fuel_sets = nil unless hash['NonFuelSets'].nil? non_fuel_sets = [] hash['NonFuelSets'].each do |structure| non_fuel_sets << (CardDetailsResponseNonFuelSetsItems.from_hash(structure) if structure) end end non_fuel_sets = SKIP unless hash.key?('NonFuelSets') issued_date = hash.key?('IssuedDate') ? hash['IssuedDate'] : SKIP expiry_date = hash.key?('ExpiryDate') ? hash['ExpiryDate'] : SKIP last_used_date = hash.key?('LastUsedDate') ? hash['LastUsedDate'] : SKIP misuse_date = hash.key?('MisuseDate') ? hash['MisuseDate'] : SKIP temperature = hash.key?('Temperature') ? hash['Temperature'] : SKIP driver_name = hash.key?('DriverName') ? hash['DriverName'] : SKIP vrn = hash.key?('VRN') ? hash['VRN'] : SKIP emboss_text = hash.key?('EmbossText') ? hash['EmbossText'] : SKIP card_group_id = hash.key?('CardGroupId') ? hash['CardGroupId'] : SKIP card_group_name = hash.key?('CardGroupName') ? hash['CardGroupName'] : SKIP renewal_date = hash.key?('RenewalDate') ? hash['RenewalDate'] : SKIP renewed_card_id = hash.key?('RenewedCardId') ? hash['RenewedCardId'] : SKIP renewed_card_status_id = hash.key?('RenewedCardStatusId') ? hash['RenewedCardStatusId'] : SKIP renewed_card_status = hash.key?('RenewedCardStatus') ? hash['RenewedCardStatus'] : SKIP renewed_card_expiry_date = hash.key?('RenewedCardExpiryDate') ? hash['RenewedCardExpiryDate'] : SKIP renewed_card_issue_number = hash.key?('RenewedCardIssueNumber') ? hash['RenewedCardIssueNumber'] : SKIP renewed_card_reissue_setting = hash.key?('RenewedCardReissueSetting') ? hash['RenewedCardReissueSetting'] : SKIP creation_date = hash.key?('CreationDate') ? hash['CreationDate'] : SKIP effective_date = hash.key?('EffectiveDate') ? hash['EffectiveDate'] : SKIP last_modified_date = hash.key?('LastModifiedDate') ? hash['LastModifiedDate'] : SKIP bundle_id = hash.key?('BundleId') ? hash['BundleId'] : SKIP card_delivery_address = CardDeliveryAddress.from_hash(hash['CardDeliveryAddress']) if hash['CardDeliveryAddress'] pin_delivery_address = PINDeliveryAddress.from_hash(hash['PINDeliveryAddress']) if hash['PINDeliveryAddress'] # Parameter is an array, so we need to iterate through it card_block_schedules = nil unless hash['CardBlockSchedules'].nil? card_block_schedules = [] hash['CardBlockSchedules'].each do |structure| card_block_schedules << (CardDetailsResponseCardBlockSchedulesItemsAllOf0.from_hash(structure) if structure) end end card_block_schedules = SKIP unless hash.key?('CardBlockSchedules') error = ErrorStatus.from_hash(hash['Error']) if hash['Error'] request_id = hash.key?('RequestId') ? hash['RequestId'] : SKIP # Create object from extracted values. CardDetailsResponse.new(payer_id, payer_number, account_id, account_number, account_short_name, col_co_country_code, local_currency_code, local_currency_symbol, card_id, pan, status_id, status, odometer_prompt, fleet_id_prompt, pin_type, has_pin, is_self_selected_pin, temporary_block_allowed, unblock_allowed, permanent_block_allowed, issue_number, reissue_setting, international_pos_language_id, international_pos_language_code, local_pos_language_id, local_pos_language_code, card_type_code, card_type_id, card_type_name, token_type_id, token_type_name, is_chip_card, is_mag_strip_card, is_virtual_card, purchase_category_code, purchase_category_id, purchase_category_name, is_crt, is_fleet, is_international, is_national, is_partner_sites_included, is_shell_sites_only, fuel_sets, non_fuel_sets, issued_date, expiry_date, last_used_date, misuse_date, temperature, driver_name, vrn, emboss_text, card_group_id, card_group_name, renewal_date, renewed_card_id, renewed_card_status_id, renewed_card_status, renewed_card_expiry_date, renewed_card_issue_number, renewed_card_reissue_setting, creation_date, effective_date, last_modified_date, bundle_id, card_delivery_address, pin_delivery_address, card_block_schedules, error, request_id) end |
.names ⇒ Object
A mapping from model property names to API property names.
345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 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 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 345 def self.names @_hash = {} if @_hash.nil? @_hash['payer_id'] = 'PayerId' @_hash['payer_number'] = 'PayerNumber' @_hash['account_id'] = 'AccountId' @_hash['account_number'] = 'AccountNumber' @_hash['account_short_name'] = 'AccountShortName' @_hash['col_co_country_code'] = 'ColCoCountryCode' @_hash['local_currency_code'] = 'LocalCurrencyCode' @_hash['local_currency_symbol'] = 'LocalCurrencySymbol' @_hash['card_id'] = 'CardId' @_hash['pan'] = 'PAN' @_hash['status_id'] = 'StatusId' @_hash['status'] = 'Status' @_hash['odometer_prompt'] = 'OdometerPrompt' @_hash['fleet_id_prompt'] = 'FleetIdPrompt' @_hash['pin_type'] = 'PINType' @_hash['has_pin'] = 'HasPIN' @_hash['is_self_selected_pin'] = 'IsSelfSelectedPIN' @_hash['temporary_block_allowed'] = 'TemporaryBlockAllowed' @_hash['unblock_allowed'] = 'UnblockAllowed' @_hash['permanent_block_allowed'] = 'PermanentBlockAllowed' @_hash['issue_number'] = 'IssueNumber' @_hash['reissue_setting'] = 'ReissueSetting' @_hash['international_pos_language_id'] = 'InternationalPOSLanguageID' @_hash['international_pos_language_code'] = 'InternationalPOSLanguageCode' @_hash['local_pos_language_id'] = 'LocalPOSLanguageID' @_hash['local_pos_language_code'] = 'LocalPOSLanguageCode' @_hash['card_type_code'] = 'CardTypeCode' @_hash['card_type_id'] = 'CardTypeId' @_hash['card_type_name'] = 'CardTypeName' @_hash['token_type_id'] = 'TokenTypeId' @_hash['token_type_name'] = 'TokenTypeName' @_hash['is_chip_card'] = 'IsChipCard' @_hash['is_mag_strip_card'] = 'IsMagStripCard' @_hash['is_virtual_card'] = 'IsVirtualCard' @_hash['purchase_category_code'] = 'PurchaseCategoryCode' @_hash['purchase_category_id'] = 'PurchaseCategoryId' @_hash['purchase_category_name'] = 'PurchaseCategoryName' @_hash['is_crt'] = 'IsCRT' @_hash['is_fleet'] = 'IsFleet' @_hash['is_international'] = 'IsInternational' @_hash['is_national'] = 'IsNational' @_hash['is_partner_sites_included'] = 'IsPartnerSitesIncluded' @_hash['is_shell_sites_only'] = 'IsShellSitesOnly' @_hash['fuel_sets'] = 'FuelSets' @_hash['non_fuel_sets'] = 'NonFuelSets' @_hash['issued_date'] = 'IssuedDate' @_hash['expiry_date'] = 'ExpiryDate' @_hash['last_used_date'] = 'LastUsedDate' @_hash['misuse_date'] = 'MisuseDate' @_hash['temperature'] = 'Temperature' @_hash['driver_name'] = 'DriverName' @_hash['vrn'] = 'VRN' @_hash['emboss_text'] = 'EmbossText' @_hash['card_group_id'] = 'CardGroupId' @_hash['card_group_name'] = 'CardGroupName' @_hash['renewal_date'] = 'RenewalDate' @_hash['renewed_card_id'] = 'RenewedCardId' @_hash['renewed_card_status_id'] = 'RenewedCardStatusId' @_hash['renewed_card_status'] = 'RenewedCardStatus' @_hash['renewed_card_expiry_date'] = 'RenewedCardExpiryDate' @_hash['renewed_card_issue_number'] = 'RenewedCardIssueNumber' @_hash['renewed_card_reissue_setting'] = 'RenewedCardReissueSetting' @_hash['creation_date'] = 'CreationDate' @_hash['effective_date'] = 'EffectiveDate' @_hash['last_modified_date'] = 'LastModifiedDate' @_hash['bundle_id'] = 'BundleId' @_hash['card_delivery_address'] = 'CardDeliveryAddress' @_hash['pin_delivery_address'] = 'PINDeliveryAddress' @_hash['card_block_schedules'] = 'CardBlockSchedules' @_hash['error'] = 'Error' @_hash['request_id'] = 'RequestId' @_hash end |
.nullables ⇒ Object
An array for nullable fields
500 501 502 503 504 505 506 507 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 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 500 def self.nullables %w[ payer_id payer_number account_id account_number account_short_name col_co_country_code local_currency_code local_currency_symbol pan card_type_code card_type_id card_type_name token_type_id token_type_name purchase_category_code purchase_category_name issued_date last_used_date misuse_date temperature card_group_id card_group_name renewal_date renewed_card_id renewed_card_status_id renewed_card_issue_number creation_date effective_date last_modified_date bundle_id card_block_schedules ] end |
.optionals ⇒ Object
An array for optional fields
423 424 425 426 427 428 429 430 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 485 486 487 488 489 490 491 492 493 494 495 496 497 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 423 def self.optionals %w[ payer_id payer_number account_id account_number account_short_name col_co_country_code local_currency_code local_currency_symbol card_id pan status_id status odometer_prompt fleet_id_prompt pin_type has_pin is_self_selected_pin temporary_block_allowed unblock_allowed permanent_block_allowed issue_number reissue_setting international_pos_language_id international_pos_language_code local_pos_language_id local_pos_language_code card_type_code card_type_id card_type_name token_type_id token_type_name is_chip_card is_mag_strip_card is_virtual_card purchase_category_code purchase_category_id purchase_category_name is_crt is_fleet is_international is_national is_partner_sites_included is_shell_sites_only fuel_sets non_fuel_sets issued_date expiry_date last_used_date misuse_date temperature driver_name vrn emboss_text card_group_id card_group_name renewal_date renewed_card_id renewed_card_status_id renewed_card_status renewed_card_expiry_date renewed_card_issue_number renewed_card_reissue_setting creation_date effective_date last_modified_date bundle_id card_delivery_address pin_delivery_address card_block_schedules error request_id ] end |
Instance Method Details
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 909 def inspect class_name = self.class.name.split('::').last "<#{class_name} payer_id: #{@payer_id.inspect}, payer_number: #{@payer_number.inspect},"\ " account_id: #{@account_id.inspect}, account_number: #{@account_number.inspect},"\ " account_short_name: #{@account_short_name.inspect}, col_co_country_code:"\ " #{@col_co_country_code.inspect}, local_currency_code: #{@local_currency_code.inspect},"\ " local_currency_symbol: #{@local_currency_symbol.inspect}, card_id: #{@card_id.inspect},"\ " pan: #{@pan.inspect}, status_id: #{@status_id.inspect}, status: #{@status.inspect},"\ " odometer_prompt: #{@odometer_prompt.inspect}, fleet_id_prompt:"\ " #{@fleet_id_prompt.inspect}, pin_type: #{@pin_type.inspect}, has_pin: #{@has_pin.inspect},"\ " is_self_selected_pin: #{@is_self_selected_pin.inspect}, temporary_block_allowed:"\ " #{@temporary_block_allowed.inspect}, unblock_allowed: #{@unblock_allowed.inspect},"\ " permanent_block_allowed: #{@permanent_block_allowed.inspect}, issue_number:"\ " #{@issue_number.inspect}, reissue_setting: #{@reissue_setting.inspect},"\ " international_pos_language_id: #{@international_pos_language_id.inspect},"\ " international_pos_language_code: #{@international_pos_language_code.inspect},"\ " local_pos_language_id: #{@local_pos_language_id.inspect}, local_pos_language_code:"\ " #{@local_pos_language_code.inspect}, card_type_code: #{@card_type_code.inspect},"\ " card_type_id: #{@card_type_id.inspect}, card_type_name: #{@card_type_name.inspect},"\ " token_type_id: #{@token_type_id.inspect}, token_type_name: #{@token_type_name.inspect},"\ " is_chip_card: #{@is_chip_card.inspect}, is_mag_strip_card: #{@is_mag_strip_card.inspect},"\ " is_virtual_card: #{@is_virtual_card.inspect}, purchase_category_code:"\ " #{@purchase_category_code.inspect}, purchase_category_id:"\ " #{@purchase_category_id.inspect}, purchase_category_name:"\ " #{@purchase_category_name.inspect}, is_crt: #{@is_crt.inspect}, is_fleet:"\ " #{@is_fleet.inspect}, is_international: #{@is_international.inspect}, is_national:"\ " #{@is_national.inspect}, is_partner_sites_included: #{@is_partner_sites_included.inspect},"\ " is_shell_sites_only: #{@is_shell_sites_only.inspect}, fuel_sets: #{@fuel_sets.inspect},"\ " non_fuel_sets: #{@non_fuel_sets.inspect}, issued_date: #{@issued_date.inspect},"\ " expiry_date: #{@expiry_date.inspect}, last_used_date: #{@last_used_date.inspect},"\ " misuse_date: #{@misuse_date.inspect}, temperature: #{@temperature.inspect}, driver_name:"\ " #{@driver_name.inspect}, vrn: #{@vrn.inspect}, emboss_text: #{@emboss_text.inspect},"\ " card_group_id: #{@card_group_id.inspect}, card_group_name: #{@card_group_name.inspect},"\ " renewal_date: #{@renewal_date.inspect}, renewed_card_id: #{@renewed_card_id.inspect},"\ " renewed_card_status_id: #{@renewed_card_status_id.inspect}, renewed_card_status:"\ " #{@renewed_card_status.inspect}, renewed_card_expiry_date:"\ " #{@renewed_card_expiry_date.inspect}, renewed_card_issue_number:"\ " #{@renewed_card_issue_number.inspect}, renewed_card_reissue_setting:"\ " #{@renewed_card_reissue_setting.inspect}, creation_date: #{@creation_date.inspect},"\ " effective_date: #{@effective_date.inspect}, last_modified_date:"\ " #{@last_modified_date.inspect}, bundle_id: #{@bundle_id.inspect}, card_delivery_address:"\ " #{@card_delivery_address.inspect}, pin_delivery_address: #{@pin_delivery_address.inspect},"\ " card_block_schedules: #{@card_block_schedules.inspect}, error: #{@error.inspect},"\ " request_id: #{@request_id.inspect}>" end |
#to_s ⇒ Object
Provides a human-readable string representation of the object.
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 905 906 |
# File 'lib/shell_card_management_ap_is/models/card_details_response.rb', line 870 def to_s class_name = self.class.name.split('::').last "<#{class_name} payer_id: #{@payer_id}, payer_number: #{@payer_number}, account_id:"\ " #{@account_id}, account_number: #{@account_number}, account_short_name:"\ " #{@account_short_name}, col_co_country_code: #{@col_co_country_code}, local_currency_code:"\ " #{@local_currency_code}, local_currency_symbol: #{@local_currency_symbol}, card_id:"\ " #{@card_id}, pan: #{@pan}, status_id: #{@status_id}, status: #{@status}, odometer_prompt:"\ " #{@odometer_prompt}, fleet_id_prompt: #{@fleet_id_prompt}, pin_type: #{@pin_type},"\ " has_pin: #{@has_pin}, is_self_selected_pin: #{@is_self_selected_pin},"\ " temporary_block_allowed: #{@temporary_block_allowed}, unblock_allowed:"\ " #{@unblock_allowed}, permanent_block_allowed: #{@permanent_block_allowed}, issue_number:"\ " #{@issue_number}, reissue_setting: #{@reissue_setting}, international_pos_language_id:"\ " #{@international_pos_language_id}, international_pos_language_code:"\ " #{@international_pos_language_code}, local_pos_language_id: #{@local_pos_language_id},"\ " local_pos_language_code: #{@local_pos_language_code}, card_type_code: #{@card_type_code},"\ " card_type_id: #{@card_type_id}, card_type_name: #{@card_type_name}, token_type_id:"\ " #{@token_type_id}, token_type_name: #{@token_type_name}, is_chip_card: #{@is_chip_card},"\ " is_mag_strip_card: #{@is_mag_strip_card}, is_virtual_card: #{@is_virtual_card},"\ " purchase_category_code: #{@purchase_category_code}, purchase_category_id:"\ " #{@purchase_category_id}, purchase_category_name: #{@purchase_category_name}, is_crt:"\ " #{@is_crt}, is_fleet: #{@is_fleet}, is_international: #{@is_international}, is_national:"\ " #{@is_national}, is_partner_sites_included: #{@is_partner_sites_included},"\ " is_shell_sites_only: #{@is_shell_sites_only}, fuel_sets: #{@fuel_sets}, non_fuel_sets:"\ " #{@non_fuel_sets}, issued_date: #{@issued_date}, expiry_date: #{@expiry_date},"\ " last_used_date: #{@last_used_date}, misuse_date: #{@misuse_date}, temperature:"\ " #{@temperature}, driver_name: #{@driver_name}, vrn: #{@vrn}, emboss_text: #{@emboss_text},"\ " card_group_id: #{@card_group_id}, card_group_name: #{@card_group_name}, renewal_date:"\ " #{@renewal_date}, renewed_card_id: #{@renewed_card_id}, renewed_card_status_id:"\ " #{@renewed_card_status_id}, renewed_card_status: #{@renewed_card_status},"\ " renewed_card_expiry_date: #{@renewed_card_expiry_date}, renewed_card_issue_number:"\ " #{@renewed_card_issue_number}, renewed_card_reissue_setting:"\ " #{@renewed_card_reissue_setting}, creation_date: #{@creation_date}, effective_date:"\ " #{@effective_date}, last_modified_date: #{@last_modified_date}, bundle_id: #{@bundle_id},"\ " card_delivery_address: #{@card_delivery_address}, pin_delivery_address:"\ " #{@pin_delivery_address}, card_block_schedules: #{@card_block_schedules}, error:"\ " #{@error}, request_id: #{@request_id}>" end |