Class: TreezorClient::Card

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

Defined Under Namespace

Classes: EnumAttributeValidator

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Card

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash


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

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  if attributes.has_key?(:'cardId')
    self.card_id = attributes[:'cardId']
  end

  if attributes.has_key?(:'userId')
    self.user_id = attributes[:'userId']
  end

  if attributes.has_key?(:'walletId')
    self.wallet_id = attributes[:'walletId']
  end

  if attributes.has_key?(:'walletCardtransactionId')
    self.wallet_cardtransaction_id = attributes[:'walletCardtransactionId']
  end

  if attributes.has_key?(:'mccRestrictionGroupId')
    self.mcc_restriction_group_id = attributes[:'mccRestrictionGroupId']
  end

  if attributes.has_key?(:'merchantRestrictionGroupId')
    self.merchant_restriction_group_id = attributes[:'merchantRestrictionGroupId']
  end

  if attributes.has_key?(:'countryRestrictionGroupId')
    self.country_restriction_group_id = attributes[:'countryRestrictionGroupId']
  end

  if attributes.has_key?(:'publicToken')
    self.public_token = attributes[:'publicToken']
  end

  if attributes.has_key?(:'cardTag')
    self.card_tag = attributes[:'cardTag']
  end

  if attributes.has_key?(:'statusCode')
    self.status_code = attributes[:'statusCode']
  end

  if attributes.has_key?(:'isLive')
    self.is_live = attributes[:'isLive']
  end

  if attributes.has_key?(:'pinTryExceeds')
    self.pin_try_exceeds = attributes[:'pinTryExceeds']
  end

  if attributes.has_key?(:'maskedPan')
    self.masked_pan = attributes[:'maskedPan']
  end

  if attributes.has_key?(:'embossedName')
    self.embossed_name = attributes[:'embossedName']
  end

  if attributes.has_key?(:'expiryDate')
    self.expiry_date = attributes[:'expiryDate']
  end

  if attributes.has_key?(:'CVV')
    self.cvv = attributes[:'CVV']
  end

  if attributes.has_key?(:'startDate')
    self.start_date = attributes[:'startDate']
  end

  if attributes.has_key?(:'endDate')
    self.end_date = attributes[:'endDate']
  end

  if attributes.has_key?(:'countryCode')
    self.country_code = attributes[:'countryCode']
  end

  if attributes.has_key?(:'currencyCode')
    self.currency_code = attributes[:'currencyCode']
  end

  if attributes.has_key?(:'lang')
    self.lang = attributes[:'lang']
  end

  if attributes.has_key?(:'deliveryTitle')
    self.delivery_title = attributes[:'deliveryTitle']
  end

  if attributes.has_key?(:'deliveryLastname')
    self.delivery_lastname = attributes[:'deliveryLastname']
  end

  if attributes.has_key?(:'deliveryFirstname')
    self.delivery_firstname = attributes[:'deliveryFirstname']
  end

  if attributes.has_key?(:'deliveryAddress1')
    self.delivery_address1 = attributes[:'deliveryAddress1']
  end

  if attributes.has_key?(:'deliveryAddress2')
    self.delivery_address2 = attributes[:'deliveryAddress2']
  end

  if attributes.has_key?(:'deliveryAddress3')
    self.delivery_address3 = attributes[:'deliveryAddress3']
  end

  if attributes.has_key?(:'deliveryCity')
    self.delivery_city = attributes[:'deliveryCity']
  end

  if attributes.has_key?(:'deliveryPostcode')
    self.delivery_postcode = attributes[:'deliveryPostcode']
  end

  if attributes.has_key?(:'deliveryCountry')
    self.delivery_country = attributes[:'deliveryCountry']
  end

  if attributes.has_key?(:'mobileSent')
    self.mobile_sent = attributes[:'mobileSent']
  end

  if attributes.has_key?(:'limitsGroup')
    self.limits_group = attributes[:'limitsGroup']
  end

  if attributes.has_key?(:'permsGroup')
    self.perms_group = attributes[:'permsGroup']
  end

  if attributes.has_key?(:'cardDesign')
    self.card_design = attributes[:'cardDesign']
  end

  if attributes.has_key?(:'virtualConverted')
    self.virtual_converted = attributes[:'virtualConverted']
  end

  if attributes.has_key?(:'optionAtm')
    self.option_atm = attributes[:'optionAtm']
  end

  if attributes.has_key?(:'optionForeign')
    self.option_foreign = attributes[:'optionForeign']
  end

  if attributes.has_key?(:'optionOnline')
    self.option_online = attributes[:'optionOnline']
  end

  if attributes.has_key?(:'optionNfc')
    self.option_nfc = attributes[:'optionNfc']
  end

  if attributes.has_key?(:'limitAtmYear')
    self.limit_atm_year = attributes[:'limitAtmYear']
  end

  if attributes.has_key?(:'limitAtmMonth')
    self.limit_atm_month = attributes[:'limitAtmMonth']
  end

  if attributes.has_key?(:'limitAtmWeek')
    self.limit_atm_week = attributes[:'limitAtmWeek']
  end

  if attributes.has_key?(:'limitAtmDay')
    self.limit_atm_day = attributes[:'limitAtmDay']
  end

  if attributes.has_key?(:'limitAtmAll')
    self.limit_atm_all = attributes[:'limitAtmAll']
  end

  if attributes.has_key?(:'limitPaymentYear')
    self.limit_payment_year = attributes[:'limitPaymentYear']
  end

  if attributes.has_key?(:'limitPaymentMonth')
    self.limit_payment_month = attributes[:'limitPaymentMonth']
  end

  if attributes.has_key?(:'limitPaymentWeek')
    self.limit_payment_week = attributes[:'limitPaymentWeek']
  end

  if attributes.has_key?(:'limitPaymentDay')
    self.limit_payment_day = attributes[:'limitPaymentDay']
  end

  if attributes.has_key?(:'limitPaymentAll')
    self.limit_payment_all = attributes[:'limitPaymentAll']
  end

  if attributes.has_key?(:'paymentDailyLimit')
    self.payment_daily_limit = attributes[:'paymentDailyLimit']
  end

  if attributes.has_key?(:'totalAtmYear')
    self.total_atm_year = attributes[:'totalAtmYear']
  end

  if attributes.has_key?(:'totalAtmMonth')
    self.total_atm_month = attributes[:'totalAtmMonth']
  end

  if attributes.has_key?(:'totalAtmWeek')
    self.total_atm_week = attributes[:'totalAtmWeek']
  end

  if attributes.has_key?(:'totalAtmDay')
    self.total_atm_day = attributes[:'totalAtmDay']
  end

  if attributes.has_key?(:'totalAtmAll')
    self.total_atm_all = attributes[:'totalAtmAll']
  end

  if attributes.has_key?(:'totalPaymentYear')
    self.total_payment_year = attributes[:'totalPaymentYear']
  end

  if attributes.has_key?(:'totalPaymentMonth')
    self.total_payment_month = attributes[:'totalPaymentMonth']
  end

  if attributes.has_key?(:'totalPaymentWeek')
    self.total_payment_week = attributes[:'totalPaymentWeek']
  end

  if attributes.has_key?(:'totalPaymentDay')
    self.total_payment_day = attributes[:'totalPaymentDay']
  end

  if attributes.has_key?(:'totalPaymentAll')
    self.total_payment_all = attributes[:'totalPaymentAll']
  end

  if attributes.has_key?(:'createdBy')
    self.created_by = attributes[:'createdBy']
  end

  if attributes.has_key?(:'createdDate')
    self.created_date = attributes[:'createdDate']
  end

  if attributes.has_key?(:'modifiedBy')
    self.modified_by = attributes[:'modifiedBy']
  end

  if attributes.has_key?(:'modifiedDate')
    self.modified_date = attributes[:'modifiedDate']
  end

  if attributes.has_key?(:'totalRows')
    self.total_rows = attributes[:'totalRows']
  end
end

Instance Attribute Details

#card_designObject

Returns the value of attribute card_design.


86
87
88
# File 'lib/treezor_client/models/card.rb', line 86

def card_design
  @card_design
end

#card_idObject

Returns the value of attribute card_id.


17
18
19
# File 'lib/treezor_client/models/card.rb', line 17

def card_id
  @card_id
end

#card_tagObject

Returns the value of attribute card_tag.


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

def card_tag
  @card_tag
end

#country_codeObject

Returns the value of attribute country_code.


56
57
58
# File 'lib/treezor_client/models/card.rb', line 56

def country_code
  @country_code
end

#country_restriction_group_idObject

Returns the value of attribute country_restriction_group_id.


29
30
31
# File 'lib/treezor_client/models/card.rb', line 29

def country_restriction_group_id
  @country_restriction_group_id
end

#created_byObject

Returns the value of attribute created_by.


140
141
142
# File 'lib/treezor_client/models/card.rb', line 140

def created_by
  @created_by
end

#created_dateObject

Date YYYY-MM-DD HH:MM:SS


143
144
145
# File 'lib/treezor_client/models/card.rb', line 143

def created_date
  @created_date
end

#currency_codeObject

Returns the value of attribute currency_code.


58
59
60
# File 'lib/treezor_client/models/card.rb', line 58

def currency_code
  @currency_code
end

#cvvObject

Returns the value of attribute cvv.


48
49
50
# File 'lib/treezor_client/models/card.rb', line 48

def cvv
  @cvv
end

#delivery_address1Object

Returns the value of attribute delivery_address1.


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

def delivery_address1
  @delivery_address1
end

#delivery_address2Object

Returns the value of attribute delivery_address2.


70
71
72
# File 'lib/treezor_client/models/card.rb', line 70

def delivery_address2
  @delivery_address2
end

#delivery_address3Object

Returns the value of attribute delivery_address3.


72
73
74
# File 'lib/treezor_client/models/card.rb', line 72

def delivery_address3
  @delivery_address3
end

#delivery_cityObject

Returns the value of attribute delivery_city.


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

def delivery_city
  @delivery_city
end

#delivery_countryObject

Returns the value of attribute delivery_country.


78
79
80
# File 'lib/treezor_client/models/card.rb', line 78

def delivery_country
  @delivery_country
end

#delivery_firstnameObject

Returns the value of attribute delivery_firstname.


66
67
68
# File 'lib/treezor_client/models/card.rb', line 66

def delivery_firstname
  @delivery_firstname
end

#delivery_lastnameObject

Returns the value of attribute delivery_lastname.


64
65
66
# File 'lib/treezor_client/models/card.rb', line 64

def delivery_lastname
  @delivery_lastname
end

#delivery_postcodeObject

Returns the value of attribute delivery_postcode.


76
77
78
# File 'lib/treezor_client/models/card.rb', line 76

def delivery_postcode
  @delivery_postcode
end

#delivery_titleObject

Returns the value of attribute delivery_title.


62
63
64
# File 'lib/treezor_client/models/card.rb', line 62

def delivery_title
  @delivery_title
end

#embossed_nameObject

Returns the value of attribute embossed_name.


43
44
45
# File 'lib/treezor_client/models/card.rb', line 43

def embossed_name
  @embossed_name
end

#end_dateObject

Date YYYY-MM-DD


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

def end_date
  @end_date
end

#expiry_dateObject

Date YYYY-MM-DD


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

def expiry_date
  @expiry_date
end

#is_liveObject

Returns the value of attribute is_live.


37
38
39
# File 'lib/treezor_client/models/card.rb', line 37

def is_live
  @is_live
end

#langObject

Returns the value of attribute lang.


60
61
62
# File 'lib/treezor_client/models/card.rb', line 60

def lang
  @lang
end

#limit_atm_allObject

Returns the value of attribute limit_atm_all.


106
107
108
# File 'lib/treezor_client/models/card.rb', line 106

def limit_atm_all
  @limit_atm_all
end

#limit_atm_dayObject

Returns the value of attribute limit_atm_day.


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

def limit_atm_day
  @limit_atm_day
end

#limit_atm_monthObject

Returns the value of attribute limit_atm_month.


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

def limit_atm_month
  @limit_atm_month
end

#limit_atm_weekObject

Returns the value of attribute limit_atm_week.


102
103
104
# File 'lib/treezor_client/models/card.rb', line 102

def limit_atm_week
  @limit_atm_week
end

#limit_atm_yearObject

Returns the value of attribute limit_atm_year.


98
99
100
# File 'lib/treezor_client/models/card.rb', line 98

def limit_atm_year
  @limit_atm_year
end

#limit_payment_allObject

Returns the value of attribute limit_payment_all.


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

def limit_payment_all
  @limit_payment_all
end

#limit_payment_dayObject

Returns the value of attribute limit_payment_day.


114
115
116
# File 'lib/treezor_client/models/card.rb', line 114

def limit_payment_day
  @limit_payment_day
end

#limit_payment_monthObject

Returns the value of attribute limit_payment_month.


110
111
112
# File 'lib/treezor_client/models/card.rb', line 110

def limit_payment_month
  @limit_payment_month
end

#limit_payment_weekObject

Returns the value of attribute limit_payment_week.


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

def limit_payment_week
  @limit_payment_week
end

#limit_payment_yearObject

Returns the value of attribute limit_payment_year.


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

def limit_payment_year
  @limit_payment_year
end

#limits_groupObject

Returns the value of attribute limits_group.


82
83
84
# File 'lib/treezor_client/models/card.rb', line 82

def limits_group
  @limits_group
end

#masked_panObject

Returns the value of attribute masked_pan.


41
42
43
# File 'lib/treezor_client/models/card.rb', line 41

def masked_pan
  @masked_pan
end

#mcc_restriction_group_idObject

Returns the value of attribute mcc_restriction_group_id.


25
26
27
# File 'lib/treezor_client/models/card.rb', line 25

def mcc_restriction_group_id
  @mcc_restriction_group_id
end

#merchant_restriction_group_idObject

Returns the value of attribute merchant_restriction_group_id.


27
28
29
# File 'lib/treezor_client/models/card.rb', line 27

def merchant_restriction_group_id
  @merchant_restriction_group_id
end

#mobile_sentObject

Returns the value of attribute mobile_sent.


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

def mobile_sent
  @mobile_sent
end

#modified_byObject

Returns the value of attribute modified_by.


145
146
147
# File 'lib/treezor_client/models/card.rb', line 145

def modified_by
  @modified_by
end

#modified_dateObject

Date YYYY-MM-DD HH:MM:SS


148
149
150
# File 'lib/treezor_client/models/card.rb', line 148

def modified_date
  @modified_date
end

#option_atmObject

Returns the value of attribute option_atm.


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

def option_atm
  @option_atm
end

#option_foreignObject

Returns the value of attribute option_foreign.


92
93
94
# File 'lib/treezor_client/models/card.rb', line 92

def option_foreign
  @option_foreign
end

#option_nfcObject

Returns the value of attribute option_nfc.


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

def option_nfc
  @option_nfc
end

#option_onlineObject

Returns the value of attribute option_online.


94
95
96
# File 'lib/treezor_client/models/card.rb', line 94

def option_online
  @option_online
end

#payment_daily_limitObject

Returns the value of attribute payment_daily_limit.


118
119
120
# File 'lib/treezor_client/models/card.rb', line 118

def payment_daily_limit
  @payment_daily_limit
end

#perms_groupObject

Returns the value of attribute perms_group.


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

def perms_group
  @perms_group
end

#pin_try_exceedsObject

Returns the value of attribute pin_try_exceeds.


39
40
41
# File 'lib/treezor_client/models/card.rb', line 39

def pin_try_exceeds
  @pin_try_exceeds
end

#public_tokenObject

Returns the value of attribute public_token.


31
32
33
# File 'lib/treezor_client/models/card.rb', line 31

def public_token
  @public_token
end

#start_dateObject

Date YYYY-MM-DD


51
52
53
# File 'lib/treezor_client/models/card.rb', line 51

def start_date
  @start_date
end

#status_codeObject

Returns the value of attribute status_code.


35
36
37
# File 'lib/treezor_client/models/card.rb', line 35

def status_code
  @status_code
end

#total_atm_allObject

Returns the value of attribute total_atm_all.


128
129
130
# File 'lib/treezor_client/models/card.rb', line 128

def total_atm_all
  @total_atm_all
end

#total_atm_dayObject

Returns the value of attribute total_atm_day.


126
127
128
# File 'lib/treezor_client/models/card.rb', line 126

def total_atm_day
  @total_atm_day
end

#total_atm_monthObject

Returns the value of attribute total_atm_month.


122
123
124
# File 'lib/treezor_client/models/card.rb', line 122

def total_atm_month
  @total_atm_month
end

#total_atm_weekObject

Returns the value of attribute total_atm_week.


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

def total_atm_week
  @total_atm_week
end

#total_atm_yearObject

Returns the value of attribute total_atm_year.


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

def total_atm_year
  @total_atm_year
end

#total_payment_allObject

Returns the value of attribute total_payment_all.


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

def total_payment_all
  @total_payment_all
end

#total_payment_dayObject

Returns the value of attribute total_payment_day.


136
137
138
# File 'lib/treezor_client/models/card.rb', line 136

def total_payment_day
  @total_payment_day
end

#total_payment_monthObject

Returns the value of attribute total_payment_month.


132
133
134
# File 'lib/treezor_client/models/card.rb', line 132

def total_payment_month
  @total_payment_month
end

#total_payment_weekObject

Returns the value of attribute total_payment_week.


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

def total_payment_week
  @total_payment_week
end

#total_payment_yearObject

Returns the value of attribute total_payment_year.


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

def total_payment_year
  @total_payment_year
end

#total_rowsObject

Returns the value of attribute total_rows.


150
151
152
# File 'lib/treezor_client/models/card.rb', line 150

def total_rows
  @total_rows
end

#user_idObject

Returns the value of attribute user_id.


19
20
21
# File 'lib/treezor_client/models/card.rb', line 19

def user_id
  @user_id
end

#virtual_convertedObject

Returns the value of attribute virtual_converted.


88
89
90
# File 'lib/treezor_client/models/card.rb', line 88

def virtual_converted
  @virtual_converted
end

#wallet_cardtransaction_idObject

Returns the value of attribute wallet_cardtransaction_id.


23
24
25
# File 'lib/treezor_client/models/card.rb', line 23

def wallet_cardtransaction_id
  @wallet_cardtransaction_id
end

#wallet_idObject

Returns the value of attribute wallet_id.


21
22
23
# File 'lib/treezor_client/models/card.rb', line 21

def wallet_id
  @wallet_id
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.


175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'lib/treezor_client/models/card.rb', line 175

def self.attribute_map
  {
    :'card_id' => :'cardId',
    :'user_id' => :'userId',
    :'wallet_id' => :'walletId',
    :'wallet_cardtransaction_id' => :'walletCardtransactionId',
    :'mcc_restriction_group_id' => :'mccRestrictionGroupId',
    :'merchant_restriction_group_id' => :'merchantRestrictionGroupId',
    :'country_restriction_group_id' => :'countryRestrictionGroupId',
    :'public_token' => :'publicToken',
    :'card_tag' => :'cardTag',
    :'status_code' => :'statusCode',
    :'is_live' => :'isLive',
    :'pin_try_exceeds' => :'pinTryExceeds',
    :'masked_pan' => :'maskedPan',
    :'embossed_name' => :'embossedName',
    :'expiry_date' => :'expiryDate',
    :'cvv' => :'CVV',
    :'start_date' => :'startDate',
    :'end_date' => :'endDate',
    :'country_code' => :'countryCode',
    :'currency_code' => :'currencyCode',
    :'lang' => :'lang',
    :'delivery_title' => :'deliveryTitle',
    :'delivery_lastname' => :'deliveryLastname',
    :'delivery_firstname' => :'deliveryFirstname',
    :'delivery_address1' => :'deliveryAddress1',
    :'delivery_address2' => :'deliveryAddress2',
    :'delivery_address3' => :'deliveryAddress3',
    :'delivery_city' => :'deliveryCity',
    :'delivery_postcode' => :'deliveryPostcode',
    :'delivery_country' => :'deliveryCountry',
    :'mobile_sent' => :'mobileSent',
    :'limits_group' => :'limitsGroup',
    :'perms_group' => :'permsGroup',
    :'card_design' => :'cardDesign',
    :'virtual_converted' => :'virtualConverted',
    :'option_atm' => :'optionAtm',
    :'option_foreign' => :'optionForeign',
    :'option_online' => :'optionOnline',
    :'option_nfc' => :'optionNfc',
    :'limit_atm_year' => :'limitAtmYear',
    :'limit_atm_month' => :'limitAtmMonth',
    :'limit_atm_week' => :'limitAtmWeek',
    :'limit_atm_day' => :'limitAtmDay',
    :'limit_atm_all' => :'limitAtmAll',
    :'limit_payment_year' => :'limitPaymentYear',
    :'limit_payment_month' => :'limitPaymentMonth',
    :'limit_payment_week' => :'limitPaymentWeek',
    :'limit_payment_day' => :'limitPaymentDay',
    :'limit_payment_all' => :'limitPaymentAll',
    :'payment_daily_limit' => :'paymentDailyLimit',
    :'total_atm_year' => :'totalAtmYear',
    :'total_atm_month' => :'totalAtmMonth',
    :'total_atm_week' => :'totalAtmWeek',
    :'total_atm_day' => :'totalAtmDay',
    :'total_atm_all' => :'totalAtmAll',
    :'total_payment_year' => :'totalPaymentYear',
    :'total_payment_month' => :'totalPaymentMonth',
    :'total_payment_week' => :'totalPaymentWeek',
    :'total_payment_day' => :'totalPaymentDay',
    :'total_payment_all' => :'totalPaymentAll',
    :'created_by' => :'createdBy',
    :'created_date' => :'createdDate',
    :'modified_by' => :'modifiedBy',
    :'modified_date' => :'modifiedDate',
    :'total_rows' => :'totalRows'
  }
end

.swagger_typesObject

Attribute type mapping.


246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
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
# File 'lib/treezor_client/models/card.rb', line 246

def self.swagger_types
  {
    :'card_id' => :'Integer',
    :'user_id' => :'Integer',
    :'wallet_id' => :'Integer',
    :'wallet_cardtransaction_id' => :'Integer',
    :'mcc_restriction_group_id' => :'Integer',
    :'merchant_restriction_group_id' => :'Integer',
    :'country_restriction_group_id' => :'Integer',
    :'public_token' => :'String',
    :'card_tag' => :'String',
    :'status_code' => :'String',
    :'is_live' => :'Integer',
    :'pin_try_exceeds' => :'Integer',
    :'masked_pan' => :'Integer',
    :'embossed_name' => :'String',
    :'expiry_date' => :'String',
    :'cvv' => :'String',
    :'start_date' => :'String',
    :'end_date' => :'String',
    :'country_code' => :'String',
    :'currency_code' => :'String',
    :'lang' => :'String',
    :'delivery_title' => :'String',
    :'delivery_lastname' => :'String',
    :'delivery_firstname' => :'String',
    :'delivery_address1' => :'String',
    :'delivery_address2' => :'String',
    :'delivery_address3' => :'String',
    :'delivery_city' => :'String',
    :'delivery_postcode' => :'String',
    :'delivery_country' => :'String',
    :'mobile_sent' => :'String',
    :'limits_group' => :'String',
    :'perms_group' => :'String',
    :'card_design' => :'String',
    :'virtual_converted' => :'Integer',
    :'option_atm' => :'Integer',
    :'option_foreign' => :'Integer',
    :'option_online' => :'Integer',
    :'option_nfc' => :'Integer',
    :'limit_atm_year' => :'Integer',
    :'limit_atm_month' => :'Integer',
    :'limit_atm_week' => :'Integer',
    :'limit_atm_day' => :'Integer',
    :'limit_atm_all' => :'Integer',
    :'limit_payment_year' => :'Integer',
    :'limit_payment_month' => :'Integer',
    :'limit_payment_week' => :'Integer',
    :'limit_payment_day' => :'Integer',
    :'limit_payment_all' => :'Integer',
    :'payment_daily_limit' => :'Float',
    :'total_atm_year' => :'Integer',
    :'total_atm_month' => :'Integer',
    :'total_atm_week' => :'Integer',
    :'total_atm_day' => :'Integer',
    :'total_atm_all' => :'Integer',
    :'total_payment_year' => :'Integer',
    :'total_payment_month' => :'Integer',
    :'total_payment_week' => :'Integer',
    :'total_payment_day' => :'Integer',
    :'total_payment_all' => :'Integer',
    :'created_by' => :'Integer',
    :'created_date' => :'String',
    :'modified_by' => :'Integer',
    :'modified_date' => :'String',
    :'total_rows' => :'Integer'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared


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

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      card_id == o.card_id &&
      user_id == o.user_id &&
      wallet_id == o.wallet_id &&
      wallet_cardtransaction_id == o.wallet_cardtransaction_id &&
      mcc_restriction_group_id == o.mcc_restriction_group_id &&
      merchant_restriction_group_id == o.merchant_restriction_group_id &&
      country_restriction_group_id == o.country_restriction_group_id &&
      public_token == o.public_token &&
      card_tag == o.card_tag &&
      status_code == o.status_code &&
      is_live == o.is_live &&
      pin_try_exceeds == o.pin_try_exceeds &&
      masked_pan == o.masked_pan &&
      embossed_name == o.embossed_name &&
      expiry_date == o.expiry_date &&
      cvv == o.cvv &&
      start_date == o.start_date &&
      end_date == o.end_date &&
      country_code == o.country_code &&
      currency_code == o.currency_code &&
      lang == o.lang &&
      delivery_title == o.delivery_title &&
      delivery_lastname == o.delivery_lastname &&
      delivery_firstname == o.delivery_firstname &&
      delivery_address1 == o.delivery_address1 &&
      delivery_address2 == o.delivery_address2 &&
      delivery_address3 == o.delivery_address3 &&
      delivery_city == o.delivery_city &&
      delivery_postcode == o.delivery_postcode &&
      delivery_country == o.delivery_country &&
      mobile_sent == o.mobile_sent &&
      limits_group == o.limits_group &&
      perms_group == o.perms_group &&
      card_design == o.card_design &&
      virtual_converted == o.virtual_converted &&
      option_atm == o.option_atm &&
      option_foreign == o.option_foreign &&
      option_online == o.option_online &&
      option_nfc == o.option_nfc &&
      limit_atm_year == o.limit_atm_year &&
      limit_atm_month == o.limit_atm_month &&
      limit_atm_week == o.limit_atm_week &&
      limit_atm_day == o.limit_atm_day &&
      limit_atm_all == o.limit_atm_all &&
      limit_payment_year == o.limit_payment_year &&
      limit_payment_month == o.limit_payment_month &&
      limit_payment_week == o.limit_payment_week &&
      limit_payment_day == o.limit_payment_day &&
      limit_payment_all == o.limit_payment_all &&
      payment_daily_limit == o.payment_daily_limit &&
      total_atm_year == o.total_atm_year &&
      total_atm_month == o.total_atm_month &&
      total_atm_week == o.total_atm_week &&
      total_atm_day == o.total_atm_day &&
      total_atm_all == o.total_atm_all &&
      total_payment_year == o.total_payment_year &&
      total_payment_month == o.total_payment_month &&
      total_payment_week == o.total_payment_week &&
      total_payment_day == o.total_payment_day &&
      total_payment_all == o.total_payment_all &&
      created_by == o.created_by &&
      created_date == o.created_date &&
      modified_by == o.modified_by &&
      modified_date == o.modified_date &&
      total_rows == o.total_rows
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data


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

def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    temp_model = TreezorClient.const_get(type).new
    temp_model.build_from_hash(value)
  end
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash


784
785
786
787
788
789
790
791
792
793
794
795
796
# File 'lib/treezor_client/models/card.rb', line 784

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself


697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
# File 'lib/treezor_client/models/card.rb', line 697

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method

684
685
686
# File 'lib/treezor_client/models/card.rb', line 684

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code


690
691
692
# File 'lib/treezor_client/models/card.rb', line 690

def hash
  [card_id, user_id, wallet_id, wallet_cardtransaction_id, mcc_restriction_group_id, merchant_restriction_group_id, country_restriction_group_id, public_token, card_tag, status_code, is_live, pin_try_exceeds, masked_pan, embossed_name, expiry_date, cvv, start_date, end_date, country_code, currency_code, lang, delivery_title, delivery_lastname, delivery_firstname, delivery_address1, delivery_address2, delivery_address3, delivery_city, delivery_postcode, delivery_country, mobile_sent, limits_group, perms_group, card_design, virtual_converted, option_atm, option_foreign, option_online, option_nfc, limit_atm_year, limit_atm_month, limit_atm_week, limit_atm_day, limit_atm_all, limit_payment_year, limit_payment_month, limit_payment_week, limit_payment_day, limit_payment_all, payment_daily_limit, total_atm_year, total_atm_month, total_atm_week, total_atm_day, total_atm_all, total_payment_year, total_payment_month, total_payment_week, total_payment_day, total_payment_all, created_by, created_date, modified_by, modified_date, total_rows].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons


587
588
589
590
# File 'lib/treezor_client/models/card.rb', line 587

def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash


764
765
766
# File 'lib/treezor_client/models/card.rb', line 764

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash


770
771
772
773
774
775
776
777
778
# File 'lib/treezor_client/models/card.rb', line 770

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object


758
759
760
# File 'lib/treezor_client/models/card.rb', line 758

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid


594
595
596
597
598
# File 'lib/treezor_client/models/card.rb', line 594

def valid?
  status_code_validator = EnumAttributeValidator.new('String', ['UNLOCK', 'LOCK', 'LOST', 'STOLEN'])
  return false unless status_code_validator.valid?(@status_code)
  true
end