Class: ShellDataReportingApIs::CardTypeResponseCustomerCardTypesItems

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb

Overview

CardTypeResponseCustomerCardTypesItems Model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

Constructor Details

#initialize(can_have_pin = SKIP, card_type_id = SKIP, card_type_name = SKIP, col_co_currency_code = SKIP, customer_card_type_id = SKIP, day_time_restrictions = SKIP, default_purchase_category_id = SKIP, emboss_account_name = SKIP, expiry_period = SKIP, is_crt = SKIP, is_fleet = SKIP, is_international = SKIP, is_national = SKIP, is_partner_sites_included = SKIP, is_shell_sites_only = SKIP, is_virtual = SKIP, is_visible_to_customers = SKIP, is_active = SKIP, is_card_available_for_download = SKIP, is_card_visible_to_customers = SKIP, pan_length = SKIP, purchase_categories = SKIP, token_type_id = SKIP, token_type_name = SKIP, usage_restrictions = SKIP, emv_contactless = SKIP, rfid = SKIP, pin_change_supported = SKIP, require_pin = SKIP, offline_pin = SKIP, is_default = SKIP, applications_to_show_npii_tokens = SKIP, medium_type_id = SKIP, medium_type = SKIP, col_co_currency_symbol = SKIP) ⇒ CardTypeResponseCustomerCardTypesItems

Returns a new instance of CardTypeResponseCustomerCardTypesItems.



278
279
280
281
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
336
337
338
339
340
341
342
343
344
345
346
347
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 278

def initialize(can_have_pin = SKIP, card_type_id = SKIP,
               card_type_name = SKIP, col_co_currency_code = SKIP,
               customer_card_type_id = SKIP, day_time_restrictions = SKIP,
               default_purchase_category_id = SKIP,
                = SKIP, expiry_period = SKIP,
               is_crt = SKIP, is_fleet = SKIP, is_international = SKIP,
               is_national = SKIP, is_partner_sites_included = SKIP,
               is_shell_sites_only = SKIP, is_virtual = SKIP,
               is_visible_to_customers = SKIP, is_active = SKIP,
               is_card_available_for_download = SKIP,
               is_card_visible_to_customers = SKIP, pan_length = SKIP,
               purchase_categories = SKIP, token_type_id = SKIP,
               token_type_name = SKIP, usage_restrictions = SKIP,
               emv_contactless = SKIP, rfid = SKIP,
               pin_change_supported = SKIP, require_pin = SKIP,
               offline_pin = SKIP, is_default = SKIP,
               applications_to_show_npii_tokens = SKIP,
               medium_type_id = SKIP, medium_type = SKIP,
               col_co_currency_symbol = SKIP)
  @can_have_pin = can_have_pin unless can_have_pin == 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_currency_code = col_co_currency_code unless col_co_currency_code == SKIP
  @customer_card_type_id = customer_card_type_id unless customer_card_type_id == SKIP
  @day_time_restrictions = day_time_restrictions unless day_time_restrictions == SKIP
  unless default_purchase_category_id == SKIP
    @default_purchase_category_id =
      default_purchase_category_id
  end
  @emboss_account_name =  unless  == SKIP
  @expiry_period = expiry_period unless expiry_period == 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
  @is_virtual = is_virtual unless is_virtual == SKIP
  @is_visible_to_customers = is_visible_to_customers unless is_visible_to_customers == SKIP
  @is_active = is_active unless is_active == SKIP
  unless is_card_available_for_download == SKIP
    @is_card_available_for_download =
      is_card_available_for_download
  end
  unless is_card_visible_to_customers == SKIP
    @is_card_visible_to_customers =
      is_card_visible_to_customers
  end
  @pan_length = pan_length unless pan_length == SKIP
  @purchase_categories = purchase_categories unless purchase_categories == SKIP
  @token_type_id = token_type_id unless token_type_id == SKIP
  @token_type_name = token_type_name unless token_type_name == SKIP
  @usage_restrictions = usage_restrictions unless usage_restrictions == SKIP
  @emv_contactless = emv_contactless unless emv_contactless == SKIP
  @rfid = rfid unless rfid == SKIP
  @pin_change_supported = pin_change_supported unless pin_change_supported == SKIP
  @require_pin = require_pin unless require_pin == SKIP
  @offline_pin = offline_pin unless offline_pin == SKIP
  @is_default = is_default unless is_default == SKIP
  unless applications_to_show_npii_tokens == SKIP
    @applications_to_show_npii_tokens =
      applications_to_show_npii_tokens
  end
  @medium_type_id = medium_type_id unless medium_type_id == SKIP
  @medium_type = medium_type unless medium_type == SKIP
  @col_co_currency_symbol = col_co_currency_symbol unless col_co_currency_symbol == SKIP
end

Instance Attribute Details

#applications_to_show_npii_tokensTrueClass | FalseClass

True/False Note: ApplicationsToShowNPIITokens will be set as ‘True’ when the accessing application API key exists in the “ApplicationsToShowNPIITokens” card type configuration else “False”.

Returns:

  • (TrueClass | FalseClass)


141
142
143
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 141

def applications_to_show_npii_tokens
  @applications_to_show_npii_tokens
end

#can_have_pinTrueClass | FalseClass

True/False – Whether the cards of this card type can have PIN.

Returns:

  • (TrueClass | FalseClass)


14
15
16
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 14

def can_have_pin
  @can_have_pin
end

#card_type_idInteger

Card Type Id

Returns:

  • (Integer)


18
19
20
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 18

def card_type_id
  @card_type_id
end

#card_type_nameString

Card Type Name.

Returns:

  • (String)


22
23
24
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 22

def card_type_name
  @card_type_name
end

#col_co_currency_codeString

ISO currency code of the country.

Returns:

  • (String)


26
27
28
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 26

def col_co_currency_code
  @col_co_currency_code
end

#col_co_currency_symbolString

Currency symbol of the country.

Returns:

  • (String)


173
174
175
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 173

def col_co_currency_symbol
  @col_co_currency_symbol
end

#customer_card_type_idInteger

Customer Card Type Id

Returns:

  • (Integer)


30
31
32
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 30

def customer_card_type_id
  @customer_card_type_id
end

#day_time_restrictionsCardDayTimeRestrictions

Customer Card Type Id



34
35
36
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 34

def day_time_restrictions
  @day_time_restrictions
end

#default_purchase_category_idInteger

Default Purchase category of the card type.

Returns:

  • (Integer)


38
39
40
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 38

def default_purchase_category_id
  @default_purchase_category_id
end

#emboss_account_nameString

Default Name to be embossed on the card

Returns:

  • (String)


42
43
44
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 42

def 
  @emboss_account_name
end

#emv_contactlessTrueClass | FalseClass

Is Europay, MasterCard, and Visa Contactless enabled or not

Returns:

  • (TrueClass | FalseClass)


114
115
116
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 114

def emv_contactless
  @emv_contactless
end

#expiry_periodInteger

Default Expiry period.

Returns:

  • (Integer)


46
47
48
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 46

def expiry_period
  @expiry_period
end

#is_activeTrueClass | FalseClass

Whether card type is active or not.

Returns:

  • (TrueClass | FalseClass)


82
83
84
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 82

def is_active
  @is_active
end

#is_card_available_for_downloadTrueClass | FalseClass

Whether card type is active or not.

Returns:

  • (TrueClass | FalseClass)


86
87
88
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 86

def is_card_available_for_download
  @is_card_available_for_download
end

#is_card_visible_to_customersTrueClass | FalseClass

Whether card type is active or not.

Returns:

  • (TrueClass | FalseClass)


90
91
92
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 90

def is_card_visible_to_customers
  @is_card_visible_to_customers
end

#is_crtTrueClass | FalseClass

True/False – Wether it is a CRT Card type or not.

Returns:

  • (TrueClass | FalseClass)


50
51
52
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 50

def is_crt
  @is_crt
end

#is_defaultTrueClass | FalseClass

Whether card type is default or not.

Returns:

  • (TrueClass | FalseClass)


134
135
136
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 134

def is_default
  @is_default
end

#is_fleetTrueClass | FalseClass

True/False – Whether it is it a Fleet Card typeor not.

Returns:

  • (TrueClass | FalseClass)


54
55
56
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 54

def is_fleet
  @is_fleet
end

#is_internationalTrueClass | FalseClass

True/False – Whether it is an International Card type or not.

Returns:

  • (TrueClass | FalseClass)


58
59
60
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 58

def is_international
  @is_international
end

#is_nationalTrueClass | FalseClass

True/False – Whether it is a National Card type or not.

Returns:

  • (TrueClass | FalseClass)


62
63
64
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 62

def is_national
  @is_national
end

#is_partner_sites_includedTrueClass | FalseClass

True/False – Whether this card type is allowed in partner Stations.

Returns:

  • (TrueClass | FalseClass)


66
67
68
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 66

def is_partner_sites_included
  @is_partner_sites_included
end

#is_shell_sites_onlyTrueClass | FalseClass

True/False – Whether it is only allowed in Shell Stations or not.

Returns:

  • (TrueClass | FalseClass)


70
71
72
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 70

def is_shell_sites_only
  @is_shell_sites_only
end

#is_virtualTrueClass | FalseClass

True/False - Whether it is a Virtual Card type or not.

Returns:

  • (TrueClass | FalseClass)


74
75
76
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 74

def is_virtual
  @is_virtual
end

#is_visible_to_customersTrueClass | FalseClass

True/False – Whether this card type is visible in SFH for card ordering.

Returns:

  • (TrueClass | FalseClass)


78
79
80
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 78

def is_visible_to_customers
  @is_visible_to_customers
end

#medium_typeString

Name of the medium type identifier. Example: Fuel Card, Fuel Card with EV, Key Fob

Full list below: 1 - Fuel Card 2 - Fuel Card with EV 3 - EV only 4 - Fuel Card and Key Fob 5 - Key Fob 6 - Virtual Card 7 - NPII Token 8 - Smartpay Token

Returns:

  • (String)


169
170
171
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 169

def medium_type
  @medium_type
end

#medium_type_idInteger

Id of the medium type identifier. Example: 1,2,4 Full list below: 1 - Fuel Card 2 - Fuel Card with EV 3 - EV only 4 - Fuel Card and Key Fob 5 - Key Fob 6 - Virtual Card 7 - NPII Token 8 – Smartpay Token

Returns:

  • (Integer)


155
156
157
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 155

def medium_type_id
  @medium_type_id
end

#offline_pinTrueClass | FalseClass

Whether offline PIN is enabled or not.

Returns:

  • (TrueClass | FalseClass)


130
131
132
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 130

def offline_pin
  @offline_pin
end

#pan_lengthInteger

PAN Length

Returns:

  • (Integer)


94
95
96
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 94

def pan_length
  @pan_length
end

#pin_change_supportedTrueClass | FalseClass

PIN change supported or not.

Returns:

  • (TrueClass | FalseClass)


122
123
124
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 122

def pin_change_supported
  @pin_change_supported
end

#purchase_categoriesArray[PurchaseCategories]

PAN Length

Returns:



98
99
100
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 98

def purchase_categories
  @purchase_categories
end

#require_pinTrueClass | FalseClass

Whether a PIN is mandatory for the cards of this card type.

Returns:

  • (TrueClass | FalseClass)


126
127
128
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 126

def require_pin
  @require_pin
end

#rfidTrueClass | FalseClass

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

Returns:

  • (TrueClass | FalseClass)


118
119
120
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 118

def rfid
  @rfid
end

#token_type_idInteger

Token type identifier.

Returns:

  • (Integer)


102
103
104
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 102

def token_type_id
  @token_type_id
end

#token_type_nameString

Token Type Name.

Returns:

  • (String)


106
107
108
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 106

def token_type_name
  @token_type_name
end

#usage_restrictionsCardUsageRestrictions

Token Type Name.



110
111
112
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 110

def usage_restrictions
  @usage_restrictions
end

Class Method Details

.from_hash(hash) ⇒ Object

Creates an instance of the object from a hash.



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
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
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 350

def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  can_have_pin = hash.key?('CanHavePIN') ? hash['CanHavePIN'] : SKIP
  card_type_id = hash.key?('CardTypeId') ? hash['CardTypeId'] : SKIP
  card_type_name = hash.key?('CardTypeName') ? hash['CardTypeName'] : SKIP
  col_co_currency_code =
    hash.key?('ColCoCurrencyCode') ? hash['ColCoCurrencyCode'] : SKIP
  customer_card_type_id =
    hash.key?('CustomerCardTypeId') ? hash['CustomerCardTypeId'] : SKIP
  day_time_restrictions = CardDayTimeRestrictions.from_hash(hash['DayTimeRestrictions']) if
    hash['DayTimeRestrictions']
  default_purchase_category_id =
    hash.key?('DefaultPurchaseCategoryId') ? hash['DefaultPurchaseCategoryId'] : SKIP
   =
    hash.key?('EmbossAccountName') ? hash['EmbossAccountName'] : SKIP
  expiry_period = hash.key?('ExpiryPeriod') ? hash['ExpiryPeriod'] : 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
  is_virtual = hash.key?('IsVirtual') ? hash['IsVirtual'] : SKIP
  is_visible_to_customers =
    hash.key?('IsVisibleToCustomers') ? hash['IsVisibleToCustomers'] : SKIP
  is_active = hash.key?('IsActive') ? hash['IsActive'] : SKIP
  is_card_available_for_download =
    hash.key?('IsCardAvailableForDownload') ? hash['IsCardAvailableForDownload'] : SKIP
  is_card_visible_to_customers =
    hash.key?('IsCardVisibleToCustomers') ? hash['IsCardVisibleToCustomers'] : SKIP
  pan_length = hash.key?('PANLength') ? hash['PANLength'] : SKIP
  # Parameter is an array, so we need to iterate through it
  purchase_categories = nil
  unless hash['PurchaseCategories'].nil?
    purchase_categories = []
    hash['PurchaseCategories'].each do |structure|
      purchase_categories << (PurchaseCategories.from_hash(structure) if structure)
    end
  end

  purchase_categories = SKIP unless hash.key?('PurchaseCategories')
  token_type_id = hash.key?('TokenTypeId') ? hash['TokenTypeId'] : SKIP
  token_type_name =
    hash.key?('TokenTypeName') ? hash['TokenTypeName'] : SKIP
  usage_restrictions = CardUsageRestrictions.from_hash(hash['UsageRestrictions']) if
    hash['UsageRestrictions']
  emv_contactless =
    hash.key?('EMVContactless') ? hash['EMVContactless'] : SKIP
  rfid = hash.key?('RFID') ? hash['RFID'] : SKIP
  pin_change_supported =
    hash.key?('PINChangeSupported') ? hash['PINChangeSupported'] : SKIP
  require_pin = hash.key?('RequirePIN') ? hash['RequirePIN'] : SKIP
  offline_pin = hash.key?('OfflinePIN') ? hash['OfflinePIN'] : SKIP
  is_default = hash.key?('IsDefault') ? hash['IsDefault'] : SKIP
  applications_to_show_npii_tokens =
    hash.key?('ApplicationsToShowNPIITokens') ? hash['ApplicationsToShowNPIITokens'] : SKIP
  medium_type_id = hash.key?('MediumTypeID') ? hash['MediumTypeID'] : SKIP
  medium_type = hash.key?('MediumType') ? hash['MediumType'] : SKIP
  col_co_currency_symbol =
    hash.key?('ColCoCurrencySymbol') ? hash['ColCoCurrencySymbol'] : SKIP

  # Create object from extracted values.
  CardTypeResponseCustomerCardTypesItems.new(can_have_pin,
                                             card_type_id,
                                             card_type_name,
                                             col_co_currency_code,
                                             customer_card_type_id,
                                             day_time_restrictions,
                                             default_purchase_category_id,
                                             ,
                                             expiry_period,
                                             is_crt,
                                             is_fleet,
                                             is_international,
                                             is_national,
                                             is_partner_sites_included,
                                             is_shell_sites_only,
                                             is_virtual,
                                             is_visible_to_customers,
                                             is_active,
                                             is_card_available_for_download,
                                             is_card_visible_to_customers,
                                             pan_length,
                                             purchase_categories,
                                             token_type_id,
                                             token_type_name,
                                             usage_restrictions,
                                             emv_contactless,
                                             rfid,
                                             pin_change_supported,
                                             require_pin,
                                             offline_pin,
                                             is_default,
                                             applications_to_show_npii_tokens,
                                             medium_type_id,
                                             medium_type,
                                             col_co_currency_symbol)
end

.namesObject

A mapping from model property names to API property names.



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
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 176

def self.names
  @_hash = {} if @_hash.nil?
  @_hash['can_have_pin'] = 'CanHavePIN'
  @_hash['card_type_id'] = 'CardTypeId'
  @_hash['card_type_name'] = 'CardTypeName'
  @_hash['col_co_currency_code'] = 'ColCoCurrencyCode'
  @_hash['customer_card_type_id'] = 'CustomerCardTypeId'
  @_hash['day_time_restrictions'] = 'DayTimeRestrictions'
  @_hash['default_purchase_category_id'] = 'DefaultPurchaseCategoryId'
  @_hash['emboss_account_name'] = 'EmbossAccountName'
  @_hash['expiry_period'] = 'ExpiryPeriod'
  @_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['is_virtual'] = 'IsVirtual'
  @_hash['is_visible_to_customers'] = 'IsVisibleToCustomers'
  @_hash['is_active'] = 'IsActive'
  @_hash['is_card_available_for_download'] = 'IsCardAvailableForDownload'
  @_hash['is_card_visible_to_customers'] = 'IsCardVisibleToCustomers'
  @_hash['pan_length'] = 'PANLength'
  @_hash['purchase_categories'] = 'PurchaseCategories'
  @_hash['token_type_id'] = 'TokenTypeId'
  @_hash['token_type_name'] = 'TokenTypeName'
  @_hash['usage_restrictions'] = 'UsageRestrictions'
  @_hash['emv_contactless'] = 'EMVContactless'
  @_hash['rfid'] = 'RFID'
  @_hash['pin_change_supported'] = 'PINChangeSupported'
  @_hash['require_pin'] = 'RequirePIN'
  @_hash['offline_pin'] = 'OfflinePIN'
  @_hash['is_default'] = 'IsDefault'
  @_hash['applications_to_show_npii_tokens'] =
    'ApplicationsToShowNPIITokens'
  @_hash['medium_type_id'] = 'MediumTypeID'
  @_hash['medium_type'] = 'MediumType'
  @_hash['col_co_currency_symbol'] = 'ColCoCurrencySymbol'
  @_hash
end

.nullablesObject

An array for nullable fields



259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 259

def self.nullables
  %w[
    card_type_id
    card_type_name
    col_co_currency_code
    customer_card_type_id
    default_purchase_category_id
    emboss_account_name
    expiry_period
    pan_length
    purchase_categories
    token_type_id
    token_type_name
    medium_type_id
    medium_type
    col_co_currency_symbol
  ]
end

.optionalsObject

An array for optional fields



218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
# File 'lib/shell_data_reporting_ap_is/models/card_type_response_customer_card_types_items.rb', line 218

def self.optionals
  %w[
    can_have_pin
    card_type_id
    card_type_name
    col_co_currency_code
    customer_card_type_id
    day_time_restrictions
    default_purchase_category_id
    emboss_account_name
    expiry_period
    is_crt
    is_fleet
    is_international
    is_national
    is_partner_sites_included
    is_shell_sites_only
    is_virtual
    is_visible_to_customers
    is_active
    is_card_available_for_download
    is_card_visible_to_customers
    pan_length
    purchase_categories
    token_type_id
    token_type_name
    usage_restrictions
    emv_contactless
    rfid
    pin_change_supported
    require_pin
    offline_pin
    is_default
    applications_to_show_npii_tokens
    medium_type_id
    medium_type
    col_co_currency_symbol
  ]
end