Class: ShellCardManagementApIs::Card

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/shell_card_management_ap_is/models/card.rb

Overview

Card Model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

Constructor Details

#initialize(account_id = SKIP, account_name = SKIP, account_number = SKIP, account_short_name = SKIP, bundle_id = SKIP, card_block_schedules = SKIP, card_group_id = SKIP, card_group_name = SKIP, card_id = SKIP, card_type_code = SKIP, card_type_id = SKIP, card_type_name = SKIP, col_co_country_code = SKIP, creation_date = SKIP, driver_name = SKIP, effective_date = SKIP, expiry_date = SKIP, fleet_id_input = SKIP, is_crt = SKIP, is_fleet = SKIP, is_international = SKIP, is_national = SKIP, is_partner_sites_included = SKIP, is_shell_sites_only = SKIP, issue_date = SKIP, is_superseded = SKIP, is_virtual_card = SKIP, last_modified_date = SKIP, last_used_date = SKIP, local_currency_code = SKIP, local_currency_symbol = SKIP, odometer_input = SKIP, pan = SKIP, masked_pan = SKIP, panid = SKIP, purchase_category_code = SKIP, purchase_category_id = SKIP, purchase_category_name = SKIP, reason = SKIP, reissue_setting = SKIP, status_description = SKIP, status_id = SKIP, token_type_id = SKIP, token_type_name = SKIP, vrn = SKIP, client_reference_id = SKIP, is_emv_contact = SKIP, is_emv_contactless = SKIP, is_rfid = SKIP, rfiduid = SKIP, emaid = SKIP, ev_printed_number = SKIP, card_media_code = SKIP) ⇒ Card

Returns a new instance of Card.



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
498
499
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
535
536
537
538
539
540
541
542
# File 'lib/shell_card_management_ap_is/models/card.rb', line 461

def initialize( = SKIP,  = SKIP,
                = SKIP,  = SKIP,
               bundle_id = SKIP, card_block_schedules = SKIP,
               card_group_id = SKIP, card_group_name = SKIP, card_id = SKIP,
               card_type_code = SKIP, card_type_id = SKIP,
               card_type_name = SKIP, col_co_country_code = SKIP,
               creation_date = SKIP, driver_name = SKIP,
               effective_date = SKIP, expiry_date = SKIP,
               fleet_id_input = SKIP, is_crt = SKIP, is_fleet = SKIP,
               is_international = SKIP, is_national = SKIP,
               is_partner_sites_included = SKIP, is_shell_sites_only = SKIP,
               issue_date = SKIP, is_superseded = SKIP,
               is_virtual_card = SKIP, last_modified_date = SKIP,
               last_used_date = SKIP, local_currency_code = SKIP,
               local_currency_symbol = SKIP, odometer_input = SKIP,
               pan = SKIP, masked_pan = SKIP, panid = SKIP,
               purchase_category_code = SKIP, purchase_category_id = SKIP,
               purchase_category_name = SKIP, reason = SKIP,
               reissue_setting = SKIP, status_description = SKIP,
               status_id = SKIP, token_type_id = SKIP,
               token_type_name = SKIP, vrn = SKIP,
               client_reference_id = SKIP, is_emv_contact = SKIP,
               is_emv_contactless = SKIP, is_rfid = SKIP, rfiduid = SKIP,
               emaid = SKIP, ev_printed_number = SKIP,
               card_media_code = SKIP)
  @account_id =  unless  == SKIP
  @account_name =  unless  == SKIP
  @account_number =  unless  == SKIP
  @account_short_name =  unless  == SKIP
  @bundle_id = bundle_id unless bundle_id == SKIP
  @card_block_schedules = card_block_schedules unless card_block_schedules == SKIP
  @card_group_id = card_group_id unless card_group_id == SKIP
  @card_group_name = card_group_name unless card_group_name == SKIP
  @card_id = card_id unless card_id == 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
  @col_co_country_code = col_co_country_code unless col_co_country_code == SKIP
  @creation_date = creation_date unless creation_date == SKIP
  @driver_name = driver_name unless driver_name == SKIP
  @effective_date = effective_date unless effective_date == SKIP
  @expiry_date = expiry_date unless expiry_date == SKIP
  @fleet_id_input = fleet_id_input unless fleet_id_input == 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
  @issue_date = issue_date unless issue_date == SKIP
  @is_superseded = is_superseded unless is_superseded == SKIP
  @is_virtual_card = is_virtual_card unless is_virtual_card == SKIP
  @last_modified_date = last_modified_date unless last_modified_date == SKIP
  @last_used_date = last_used_date unless last_used_date == SKIP
  @local_currency_code = local_currency_code unless local_currency_code == SKIP
  @local_currency_symbol = local_currency_symbol unless local_currency_symbol == SKIP
  @odometer_input = odometer_input unless odometer_input == SKIP
  @pan = pan unless pan == SKIP
  @masked_pan = masked_pan unless masked_pan == SKIP
  @panid = panid unless panid == 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
  @reason = reason unless reason == SKIP
  @reissue_setting = reissue_setting unless reissue_setting == SKIP
  @status_description = status_description unless status_description == SKIP
  @status_id = status_id unless status_id == SKIP
  @token_type_id = token_type_id unless token_type_id == SKIP
  @token_type_name = token_type_name unless token_type_name == SKIP
  @vrn = vrn unless vrn == SKIP
  @client_reference_id = client_reference_id unless client_reference_id == SKIP
  @is_emv_contact = is_emv_contact unless is_emv_contact == SKIP
  @is_emv_contactless = is_emv_contactless unless is_emv_contactless == SKIP
  @is_rfid = is_rfid unless is_rfid == SKIP
  @rfiduid = rfiduid unless rfiduid == SKIP
  @emaid = emaid unless emaid == SKIP
  @ev_printed_number = ev_printed_number unless ev_printed_number == SKIP
  @card_media_code = card_media_code unless card_media_code == SKIP
end

Instance Attribute Details

#account_idInteger

Account ID

Returns:

  • (Integer)


14
15
16
# File 'lib/shell_card_management_ap_is/models/card.rb', line 14

def 
  @account_id
end

#account_nameString

Account Name

Returns:

  • (String)


18
19
20
# File 'lib/shell_card_management_ap_is/models/card.rb', line 18

def 
  @account_name
end

#account_numberString

Account Number

Returns:

  • (String)


22
23
24
# File 'lib/shell_card_management_ap_is/models/card.rb', line 22

def 
  @account_number
end

#account_short_nameString

Account Short Name

Returns:

  • (String)


26
27
28
# File 'lib/shell_card_management_ap_is/models/card.rb', line 26

def 
  @account_short_name
end

#bundle_idString

Bundle Id associated with card in the Gateway.<br />

This field will have null value if the card is not associated with any

bundle in Gateway or the value of IncludeBundleDetails in request is false.

Returns:

  • (String)


33
34
35
# File 'lib/shell_card_management_ap_is/models/card.rb', line 33

def bundle_id
  @bundle_id
end

#card_block_schedulesArray[CardBlockSchedule]

List of Scheduled Card Blocks details<br /> Entity: CardBlockSchedule

Returns:



38
39
40
# File 'lib/shell_card_management_ap_is/models/card.rb', line 38

def card_block_schedules
  @card_block_schedules
end

#card_group_idInteger

Card group ID

Returns:

  • (Integer)


42
43
44
# File 'lib/shell_card_management_ap_is/models/card.rb', line 42

def card_group_id
  @card_group_id
end

#card_group_nameString

Card group name

Returns:

  • (String)


46
47
48
# File 'lib/shell_card_management_ap_is/models/card.rb', line 46

def card_group_name
  @card_group_name
end

#card_idInteger

Unique Card Id

Returns:

  • (Integer)


50
51
52
# File 'lib/shell_card_management_ap_is/models/card.rb', line 50

def card_id
  @card_id
end

#card_media_codeString

Card Media Code.

Returns:

  • (String)


299
300
301
# File 'lib/shell_card_management_ap_is/models/card.rb', line 299

def card_media_code
  @card_media_code
end

#card_type_codeString

ISO code of the card i.e. first 7 digits of the PAN

Returns:

  • (String)


54
55
56
# File 'lib/shell_card_management_ap_is/models/card.rb', line 54

def card_type_code
  @card_type_code
end

#card_type_idInteger

Card Type ID Example Id and Description: 1 -Philippines CRT 7077861 2-Philippines<br /> Fleet 7002861 5-SHELL FLEET-HONG KONG 7002821 6-SHELL NHF- HONG KONG 7002821 7-SHELL CRT- HONG KONG 7077821

Returns:

  • (Integer)


61
62
63
# File 'lib/shell_card_management_ap_is/models/card.rb', line 61

def card_type_id
  @card_type_id
end

#card_type_nameString

Card Type Name Example Id and Description: 1-Philippines CRT 7077861 2-Philippines <br /> Fleet 7002861 5-SHELL FLEET- HONG KONG 7002821 6-SHELL NHF- HONG KONG 7002821 7-SHELL CRT- HONG KONG 7077821

Returns:

  • (String)


68
69
70
# File 'lib/shell_card_management_ap_is/models/card.rb', line 68

def card_type_name
  @card_type_name
end

#client_reference_idString

Customer reference number of the card.

Returns:

  • (String)


271
272
273
# File 'lib/shell_card_management_ap_is/models/card.rb', line 271

def client_reference_id
  @client_reference_id
end

#col_co_country_codeString

The 2 character ISO Code for the customer and card owning country. <br /> If default card type is not set then the first two alphabets of the account ID is returned.

Returns:

  • (String)


74
75
76
# File 'lib/shell_card_management_ap_is/models/card.rb', line 74

def col_co_country_code
  @col_co_country_code
end

#creation_dateString

Card Creation datetime.<br /> Format: yyyyMMdd HH:mm:ss<br /> Note: Clients to convert this to appropriate DateTime type.

Returns:

  • (String)


80
81
82
# File 'lib/shell_card_management_ap_is/models/card.rb', line 80

def creation_date
  @creation_date
end

#driver_nameString

Driver name

Returns:

  • (String)


84
85
86
# File 'lib/shell_card_management_ap_is/models/card.rb', line 84

def driver_name
  @driver_name
end

#effective_dateString

Effective date for the Card<br /> Format: yyyyMMdd<br /> Note: Clients to convert this to appropriate DateTime type.

Returns:

  • (String)


90
91
92
# File 'lib/shell_card_management_ap_is/models/card.rb', line 90

def effective_date
  @effective_date
end

#emaidString

EMAID

Returns:

  • (String)


291
292
293
# File 'lib/shell_card_management_ap_is/models/card.rb', line 291

def emaid
  @emaid
end

#ev_printed_numberString

EV Printed Number

Returns:

  • (String)


295
296
297
# File 'lib/shell_card_management_ap_is/models/card.rb', line 295

def ev_printed_number
  @ev_printed_number
end

#expiry_dateString

Expiry date of the card.<br /> Format: yyyyMMdd<br /> Note: Clients to convert this to appropriate DateTime type.

Returns:

  • (String)


96
97
98
# File 'lib/shell_card_management_ap_is/models/card.rb', line 96

def expiry_date
  @expiry_date
end

#fleet_id_inputTrueClass | FalseClass

True/False True if fleet id input is enabled, else false

Returns:

  • (TrueClass | FalseClass)


100
101
102
# File 'lib/shell_card_management_ap_is/models/card.rb', line 100

def fleet_id_input
  @fleet_id_input
end

#is_crtTrueClass | FalseClass

True/False True if it is a CRT type card, else false

Returns:

  • (TrueClass | FalseClass)


104
105
106
# File 'lib/shell_card_management_ap_is/models/card.rb', line 104

def is_crt
  @is_crt
end

#is_emv_contactTrueClass | FalseClass

Is Europay, MasterCard, and Visa Contact enabled or not.

Returns:

  • (TrueClass | FalseClass)


275
276
277
# File 'lib/shell_card_management_ap_is/models/card.rb', line 275

def is_emv_contact
  @is_emv_contact
end

#is_emv_contactlessTrueClass | FalseClass

Is Europay, MasterCard, and Visa Contactless enabled or not.

Returns:

  • (TrueClass | FalseClass)


279
280
281
# File 'lib/shell_card_management_ap_is/models/card.rb', line 279

def is_emv_contactless
  @is_emv_contactless
end

#is_fleetTrueClass | FalseClass

True/False True if it is a Fleet type card, else false

Returns:

  • (TrueClass | FalseClass)


108
109
110
# File 'lib/shell_card_management_ap_is/models/card.rb', line 108

def is_fleet
  @is_fleet
end

#is_internationalTrueClass | FalseClass

True/False True if it is an international card, else false

Returns:

  • (TrueClass | FalseClass)


112
113
114
# File 'lib/shell_card_management_ap_is/models/card.rb', line 112

def is_international
  @is_international
end

#is_nationalTrueClass | FalseClass

True/False True if it is a national card, else false

Returns:

  • (TrueClass | FalseClass)


116
117
118
# File 'lib/shell_card_management_ap_is/models/card.rb', line 116

def is_national
  @is_national
end

#is_partner_sites_includedTrueClass | FalseClass

True/False True if it is allowed at all partner sites, else false

Returns:

  • (TrueClass | FalseClass)


120
121
122
# File 'lib/shell_card_management_ap_is/models/card.rb', line 120

def is_partner_sites_included
  @is_partner_sites_included
end

#is_rfidTrueClass | FalseClass

Whether the card type is enabled for RFID (Radio Frequency Identification)

Returns:

  • (TrueClass | FalseClass)


283
284
285
# File 'lib/shell_card_management_ap_is/models/card.rb', line 283

def is_rfid
  @is_rfid
end

#is_shell_sites_onlyTrueClass | FalseClass

True/False True if it is only allowed at Shell sites, else false

Returns:

  • (TrueClass | FalseClass)


124
125
126
# File 'lib/shell_card_management_ap_is/models/card.rb', line 124

def is_shell_sites_only
  @is_shell_sites_only
end

#is_supersededTrueClass | FalseClass

True/False True if a new card is issued with the same PAN, else false.

Returns:

  • (TrueClass | FalseClass)


134
135
136
# File 'lib/shell_card_management_ap_is/models/card.rb', line 134

def is_superseded
  @is_superseded
end

#is_virtual_cardTrueClass | FalseClass

True/False True if it is a virtual card, else false

Returns:

  • (TrueClass | FalseClass)


138
139
140
# File 'lib/shell_card_management_ap_is/models/card.rb', line 138

def is_virtual_card
  @is_virtual_card
end

#issue_dateString

Issue date<br /> Format: yyyyMMdd<br /> Note: Clients to convert this to appropriate DateTime type.

Returns:

  • (String)


130
131
132
# File 'lib/shell_card_management_ap_is/models/card.rb', line 130

def issue_date
  @issue_date
end

#last_modified_dateString

Card last modified date and time<br /> Format: yyyyMMdd HH:mm:ss<br /> Note: Clients to convert this to appropriate DateTime type.

Returns:

  • (String)


144
145
146
# File 'lib/shell_card_management_ap_is/models/card.rb', line 144

def last_modified_date
  @last_modified_date
end

#last_used_dateString

Card last used date .<br /> Note: last used date of a card will be calculated based on billed/unbilled sales items

of a given card.The query that extracts the last used dates will be

applied on the

subset of the cards being returned to the client.Unbilled sales

items is checked

first and for those not found in the unbilled table, sales items

will be checked

(only when the last used date is not found in unbilled table for at

least a single

card from the result). The transactions in last 48 hours are not

expected to be Therefore this field gives the correct information up to 48 hours early.<br /> Format: yyyyMMdd HH:mm:ss<br /> Note: Clients to convert this to appropriate DateTime type

Returns:

  • (String)


164
165
166
# File 'lib/shell_card_management_ap_is/models/card.rb', line 164

def last_used_date
  @last_used_date
end

#local_currency_codeString

ISO code of the local currency. <br />

Returns:

  • (String)


168
169
170
# File 'lib/shell_card_management_ap_is/models/card.rb', line 168

def local_currency_code
  @local_currency_code
end

#local_currency_symbolString

Local currency symbol. <br />

Returns:

  • (String)


172
173
174
# File 'lib/shell_card_management_ap_is/models/card.rb', line 172

def local_currency_symbol
  @local_currency_symbol
end

#masked_panString

Card PAN Mask PAN (Mask all digits except the Last 6 digits of the PAN)

Returns:

  • (String)


184
185
186
# File 'lib/shell_card_management_ap_is/models/card.rb', line 184

def masked_pan
  @masked_pan
end

#odometer_inputTrueClass | FalseClass

True/False True if odometer input is enabled on the card, else false

Returns:

  • (TrueClass | FalseClass)


176
177
178
# File 'lib/shell_card_management_ap_is/models/card.rb', line 176

def odometer_input
  @odometer_input
end

#panString

Card PAN

Returns:

  • (String)


180
181
182
# File 'lib/shell_card_management_ap_is/models/card.rb', line 180

def pan
  @pan
end

#panidFloat

Card PAN ID.

Returns:

  • (Float)


188
189
190
# File 'lib/shell_card_management_ap_is/models/card.rb', line 188

def panid
  @panid
end

#purchase_category_codeString

Purchase category code

Returns:

  • (String)


192
193
194
# File 'lib/shell_card_management_ap_is/models/card.rb', line 192

def purchase_category_code
  @purchase_category_code
end

#purchase_category_idInteger

Purchase category Id <br /> Note: Not Purchase code.

Returns:

  • (Integer)


197
198
199
# File 'lib/shell_card_management_ap_is/models/card.rb', line 197

def purchase_category_id
  @purchase_category_id
end

#purchase_category_nameString

Purchase category name

Returns:

  • (String)


201
202
203
# File 'lib/shell_card_management_ap_is/models/card.rb', line 201

def purchase_category_name
  @purchase_category_name
end

#reasonString

Card Status reason Example: Lost Stolen Card no longer required

Returns:

  • (String)


205
206
207
# File 'lib/shell_card_management_ap_is/models/card.rb', line 205

def reason
  @reason
end

#reissue_settingString

Reissue setting of the card. If the card is superseded (i.e. a replacement/new card is issued) then reissue setting of the latest card issued. <br /> Values<br /> •True –Card will be Reissued when nearing its expiry date <br /> •False –Card will not be Reissued

Returns:

  • (String)


214
215
216
# File 'lib/shell_card_management_ap_is/models/card.rb', line 214

def reissue_setting
  @reissue_setting
end

#rfiduidString

RFIDUID

Returns:

  • (String)


287
288
289
# File 'lib/shell_card_management_ap_is/models/card.rb', line 287

def rfiduid
  @rfiduid
end

#status_descriptionString

Status Description (Active, Temporarily Blocked, etc.,)<br /> Possible Ids and description: 1 Active 7 Blocked Card 8 Expired 9 Cancelled 10 New 23 Pending Renewal 31 Replaced 41<br /> Temporary Block(Customer) 42 Temporary Block(Shell) 43 Fraud 101 Active(Block in progress)<br />

  • 102 Blocked Card(Unblock in progress) <br />

  • 103 Active(Cancel in progress) <br />

  • 104 Active(Marked as damaged)<br />

  • 105 New(Cancel in progress) <br />

  • 106 { Status}(Scheduled for block)<br />

  • 107 { Status}(Scheduled for unblock) <br />

*# Note: Items marked with* are intermediate statuses to indicate that there are pending requests in progress.<br /> The response can contain these intermediate statuses only if the<br /> IncludeIntermediateStatus flag is true. The placeholder { Status} in the items<br /> marked with # will be replaced with the status description. E.g., Active (Scheduled for block)

Returns:

  • (String)


235
236
237
# File 'lib/shell_card_management_ap_is/models/card.rb', line 235

def status_description
  @status_description
end

#status_idInteger

Card Status id Possible Ids and description: 1 Active 7 Blocked Card 8 Expired 9 Cancelled 10 New 23 Pending Renewal 31 Replaced 41 Temporary Block(Customer) 42 <br /> Temporary Block(Shell) 43 Fraud 101 Active(Block in progress) <br />

  • 102 Blocked Card(Unblock in progress)<br />

  • 103 Active(Cancel in progress) <br />

  • 104 Active(Marked as damaged) <br />

  • 105 New(Cancel in progress)<br />

  • 106 { Status}(Scheduled for block) <br />

# 107 Status(Scheduled for unblock)<br /> *# Note: Items marked with* are intermediate statuses to indicate that there are pending requests in progress.<br /> The response can contain these intermediate statuses only if the IncludeIntermediateStatus flag is true.<br /> The placeholder { Status} in the items marked with # will be replaced with<br /> the status description. E.g., Active (Scheduled for block)

Returns:

  • (Integer)


255
256
257
# File 'lib/shell_card_management_ap_is/models/card.rb', line 255

def status_id
  @status_id
end

#token_type_idInteger

Token Type ID configured for the Card E.g. 107

Returns:

  • (Integer)


259
260
261
# File 'lib/shell_card_management_ap_is/models/card.rb', line 259

def token_type_id
  @token_type_id
end

#token_type_nameString

Token Type Name configured for the Card

Returns:

  • (String)


263
264
265
# File 'lib/shell_card_management_ap_is/models/card.rb', line 263

def token_type_name
  @token_type_name
end

#vrnString

Vehicle registration number

Returns:

  • (String)


267
268
269
# File 'lib/shell_card_management_ap_is/models/card.rb', line 267

def vrn
  @vrn
end

Class Method Details

.from_hash(hash) ⇒ Object

Creates an instance of the object from a hash.



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
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
# File 'lib/shell_card_management_ap_is/models/card.rb', line 545

def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
   = hash.key?('AccountId') ? hash['AccountId'] : SKIP
   = hash.key?('AccountName') ? hash['AccountName'] : SKIP
   = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP
   =
    hash.key?('AccountShortName') ? hash['AccountShortName'] : SKIP
  bundle_id = hash.key?('BundleId') ? hash['BundleId'] : SKIP
  # 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 << (CardBlockSchedule.from_hash(structure) if structure)
    end
  end

  card_block_schedules = SKIP unless hash.key?('CardBlockSchedules')
  card_group_id = hash.key?('CardGroupId') ? hash['CardGroupId'] : SKIP
  card_group_name =
    hash.key?('CardGroupName') ? hash['CardGroupName'] : SKIP
  card_id = hash.key?('CardId') ? hash['CardId'] : 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
  col_co_country_code =
    hash.key?('ColCoCountryCode') ? hash['ColCoCountryCode'] : SKIP
  creation_date = hash.key?('CreationDate') ? hash['CreationDate'] : SKIP
  driver_name = hash.key?('DriverName') ? hash['DriverName'] : SKIP
  effective_date = hash.key?('EffectiveDate') ? hash['EffectiveDate'] : SKIP
  expiry_date = hash.key?('ExpiryDate') ? hash['ExpiryDate'] : SKIP
  fleet_id_input = hash.key?('FleetIdInput') ? hash['FleetIdInput'] : 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
  issue_date = hash.key?('IssueDate') ? hash['IssueDate'] : SKIP
  is_superseded = hash.key?('IsSuperseded') ? hash['IsSuperseded'] : SKIP
  is_virtual_card =
    hash.key?('IsVirtualCard') ? hash['IsVirtualCard'] : SKIP
  last_modified_date =
    hash.key?('LastModifiedDate') ? hash['LastModifiedDate'] : SKIP
  last_used_date = hash.key?('LastUsedDate') ? hash['LastUsedDate'] : SKIP
  local_currency_code =
    hash.key?('LocalCurrencyCode') ? hash['LocalCurrencyCode'] : SKIP
  local_currency_symbol =
    hash.key?('LocalCurrencySymbol') ? hash['LocalCurrencySymbol'] : SKIP
  odometer_input = hash.key?('OdometerInput') ? hash['OdometerInput'] : SKIP
  pan = hash.key?('PAN') ? hash['PAN'] : SKIP
  masked_pan = hash.key?('MaskedPAN') ? hash['MaskedPAN'] : SKIP
  panid = hash.key?('PANID') ? hash['PANID'] : 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
  reason = hash.key?('Reason') ? hash['Reason'] : SKIP
  reissue_setting =
    hash.key?('ReissueSetting') ? hash['ReissueSetting'] : SKIP
  status_description =
    hash.key?('StatusDescription') ? hash['StatusDescription'] : SKIP
  status_id = hash.key?('StatusId') ? hash['StatusId'] : SKIP
  token_type_id = hash.key?('TokenTypeID') ? hash['TokenTypeID'] : SKIP
  token_type_name =
    hash.key?('TokenTypeName') ? hash['TokenTypeName'] : SKIP
  vrn = hash.key?('VRN') ? hash['VRN'] : SKIP
  client_reference_id =
    hash.key?('ClientReferenceId') ? hash['ClientReferenceId'] : SKIP
  is_emv_contact = hash.key?('IsEMVContact') ? hash['IsEMVContact'] : SKIP
  is_emv_contactless =
    hash.key?('IsEMVContactless') ? hash['IsEMVContactless'] : SKIP
  is_rfid = hash.key?('IsRFID') ? hash['IsRFID'] : SKIP
  rfiduid = hash.key?('RFIDUID') ? hash['RFIDUID'] : SKIP
  emaid = hash.key?('EMAID') ? hash['EMAID'] : SKIP
  ev_printed_number =
    hash.key?('EVPrintedNumber') ? hash['EVPrintedNumber'] : SKIP
  card_media_code =
    hash.key?('CardMediaCode') ? hash['CardMediaCode'] : SKIP

  # Create object from extracted values.
  Card.new(,
           ,
           ,
           ,
           bundle_id,
           card_block_schedules,
           card_group_id,
           card_group_name,
           card_id,
           card_type_code,
           card_type_id,
           card_type_name,
           col_co_country_code,
           creation_date,
           driver_name,
           effective_date,
           expiry_date,
           fleet_id_input,
           is_crt,
           is_fleet,
           is_international,
           is_national,
           is_partner_sites_included,
           is_shell_sites_only,
           issue_date,
           is_superseded,
           is_virtual_card,
           last_modified_date,
           last_used_date,
           local_currency_code,
           local_currency_symbol,
           odometer_input,
           pan,
           masked_pan,
           panid,
           purchase_category_code,
           purchase_category_id,
           purchase_category_name,
           reason,
           reissue_setting,
           status_description,
           status_id,
           token_type_id,
           token_type_name,
           vrn,
           client_reference_id,
           is_emv_contact,
           is_emv_contactless,
           is_rfid,
           rfiduid,
           emaid,
           ev_printed_number,
           card_media_code)
end

.namesObject

A mapping from model property names to API property names.



302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
# File 'lib/shell_card_management_ap_is/models/card.rb', line 302

def self.names
  @_hash = {} if @_hash.nil?
  @_hash['account_id'] = 'AccountId'
  @_hash['account_name'] = 'AccountName'
  @_hash['account_number'] = 'AccountNumber'
  @_hash['account_short_name'] = 'AccountShortName'
  @_hash['bundle_id'] = 'BundleId'
  @_hash['card_block_schedules'] = 'CardBlockSchedules'
  @_hash['card_group_id'] = 'CardGroupId'
  @_hash['card_group_name'] = 'CardGroupName'
  @_hash['card_id'] = 'CardId'
  @_hash['card_type_code'] = 'CardTypeCode'
  @_hash['card_type_id'] = 'CardTypeId'
  @_hash['card_type_name'] = 'CardTypeName'
  @_hash['col_co_country_code'] = 'ColCoCountryCode'
  @_hash['creation_date'] = 'CreationDate'
  @_hash['driver_name'] = 'DriverName'
  @_hash['effective_date'] = 'EffectiveDate'
  @_hash['expiry_date'] = 'ExpiryDate'
  @_hash['fleet_id_input'] = 'FleetIdInput'
  @_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['issue_date'] = 'IssueDate'
  @_hash['is_superseded'] = 'IsSuperseded'
  @_hash['is_virtual_card'] = 'IsVirtualCard'
  @_hash['last_modified_date'] = 'LastModifiedDate'
  @_hash['last_used_date'] = 'LastUsedDate'
  @_hash['local_currency_code'] = 'LocalCurrencyCode'
  @_hash['local_currency_symbol'] = 'LocalCurrencySymbol'
  @_hash['odometer_input'] = 'OdometerInput'
  @_hash['pan'] = 'PAN'
  @_hash['masked_pan'] = 'MaskedPAN'
  @_hash['panid'] = 'PANID'
  @_hash['purchase_category_code'] = 'PurchaseCategoryCode'
  @_hash['purchase_category_id'] = 'PurchaseCategoryId'
  @_hash['purchase_category_name'] = 'PurchaseCategoryName'
  @_hash['reason'] = 'Reason'
  @_hash['reissue_setting'] = 'ReissueSetting'
  @_hash['status_description'] = 'StatusDescription'
  @_hash['status_id'] = 'StatusId'
  @_hash['token_type_id'] = 'TokenTypeID'
  @_hash['token_type_name'] = 'TokenTypeName'
  @_hash['vrn'] = 'VRN'
  @_hash['client_reference_id'] = 'ClientReferenceId'
  @_hash['is_emv_contact'] = 'IsEMVContact'
  @_hash['is_emv_contactless'] = 'IsEMVContactless'
  @_hash['is_rfid'] = 'IsRFID'
  @_hash['rfiduid'] = 'RFIDUID'
  @_hash['emaid'] = 'EMAID'
  @_hash['ev_printed_number'] = 'EVPrintedNumber'
  @_hash['card_media_code'] = 'CardMediaCode'
  @_hash
end

.nullablesObject

An array for nullable fields



420
421
422
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
# File 'lib/shell_card_management_ap_is/models/card.rb', line 420

def self.nullables
  %w[
    account_id
    account_name
    account_number
    account_short_name
    bundle_id
    card_group_id
    card_group_name
    card_id
    card_type_code
    card_type_id
    card_type_name
    col_co_country_code
    creation_date
    driver_name
    effective_date
    expiry_date
    issue_date
    last_modified_date
    last_used_date
    local_currency_code
    local_currency_symbol
    pan
    purchase_category_code
    purchase_category_id
    purchase_category_name
    reason
    reissue_setting
    status_description
    status_id
    token_type_id
    vrn
    client_reference_id
    rfiduid
    emaid
    ev_printed_number
    card_media_code
  ]
end

.optionalsObject

An array for optional fields



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
# File 'lib/shell_card_management_ap_is/models/card.rb', line 361

def self.optionals
  %w[
    account_id
    account_name
    account_number
    account_short_name
    bundle_id
    card_block_schedules
    card_group_id
    card_group_name
    card_id
    card_type_code
    card_type_id
    card_type_name
    col_co_country_code
    creation_date
    driver_name
    effective_date
    expiry_date
    fleet_id_input
    is_crt
    is_fleet
    is_international
    is_national
    is_partner_sites_included
    is_shell_sites_only
    issue_date
    is_superseded
    is_virtual_card
    last_modified_date
    last_used_date
    local_currency_code
    local_currency_symbol
    odometer_input
    pan
    masked_pan
    panid
    purchase_category_code
    purchase_category_id
    purchase_category_name
    reason
    reissue_setting
    status_description
    status_id
    token_type_id
    token_type_name
    vrn
    client_reference_id
    is_emv_contact
    is_emv_contactless
    is_rfid
    rfiduid
    emaid
    ev_printed_number
    card_media_code
  ]
end