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



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

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?(:'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.



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

def card_design
  @card_design
end

#card_idObject

Returns the value of attribute card_id.



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

def card_id
  @card_id
end

#card_tagObject

Returns the value of attribute card_tag.



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

def card_tag
  @card_tag
end

#country_codeObject

Returns the value of attribute country_code.



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

def country_code
  @country_code
end

#country_restriction_group_idObject

Returns the value of attribute country_restriction_group_id.



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

def country_restriction_group_id
  @country_restriction_group_id
end

#created_byObject

Returns the value of attribute created_by.



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

def created_by
  @created_by
end

#created_dateObject

Date YYYY-MM-DD HH:MM:SS



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

def created_date
  @created_date
end

#currency_codeObject

Returns the value of attribute currency_code.



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

def currency_code
  @currency_code
end

#cvvObject

Returns the value of attribute cvv.



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

def cvv
  @cvv
end

#delivery_address1Object

Returns the value of attribute delivery_address1.



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

def delivery_address1
  @delivery_address1
end

#delivery_address2Object

Returns the value of attribute delivery_address2.



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

def delivery_address2
  @delivery_address2
end

#delivery_address3Object

Returns the value of attribute delivery_address3.



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

def delivery_address3
  @delivery_address3
end

#delivery_cityObject

Returns the value of attribute delivery_city.



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

def delivery_city
  @delivery_city
end

#delivery_countryObject

Returns the value of attribute delivery_country.



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

def delivery_country
  @delivery_country
end

#delivery_firstnameObject

Returns the value of attribute delivery_firstname.



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

def delivery_firstname
  @delivery_firstname
end

#delivery_lastnameObject

Returns the value of attribute delivery_lastname.



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

def delivery_lastname
  @delivery_lastname
end

#delivery_postcodeObject

Returns the value of attribute delivery_postcode.



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

def delivery_postcode
  @delivery_postcode
end

#delivery_titleObject

Returns the value of attribute delivery_title.



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

def delivery_title
  @delivery_title
end

#embossed_nameObject

Returns the value of attribute embossed_name.



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

def embossed_name
  @embossed_name
end

#end_dateObject

Date YYYY-MM-DD



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

def end_date
  @end_date
end

#expiry_dateObject

Date YYYY-MM-DD



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

def expiry_date
  @expiry_date
end

#is_liveObject

Returns the value of attribute is_live.



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

def is_live
  @is_live
end

#langObject

Returns the value of attribute lang.



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

def lang
  @lang
end

#limit_atm_allObject

Returns the value of attribute limit_atm_all.



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

def limit_atm_all
  @limit_atm_all
end

#limit_atm_dayObject

Returns the value of attribute limit_atm_day.



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

def limit_atm_day
  @limit_atm_day
end

#limit_atm_monthObject

Returns the value of attribute limit_atm_month.



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

def limit_atm_month
  @limit_atm_month
end

#limit_atm_weekObject

Returns the value of attribute limit_atm_week.



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

def limit_atm_week
  @limit_atm_week
end

#limit_atm_yearObject

Returns the value of attribute limit_atm_year.



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

def limit_atm_year
  @limit_atm_year
end

#limit_payment_allObject

Returns the value of attribute limit_payment_all.



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

def limit_payment_all
  @limit_payment_all
end

#limit_payment_dayObject

Returns the value of attribute limit_payment_day.



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

def limit_payment_day
  @limit_payment_day
end

#limit_payment_monthObject

Returns the value of attribute limit_payment_month.



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

def limit_payment_month
  @limit_payment_month
end

#limit_payment_weekObject

Returns the value of attribute limit_payment_week.



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

def limit_payment_week
  @limit_payment_week
end

#limit_payment_yearObject

Returns the value of attribute limit_payment_year.



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

def limit_payment_year
  @limit_payment_year
end

#limits_groupObject

Returns the value of attribute limits_group.



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

def limits_group
  @limits_group
end

#masked_panObject

Returns the value of attribute masked_pan.



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

def masked_pan
  @masked_pan
end

#mcc_restriction_group_idObject

Returns the value of attribute mcc_restriction_group_id.



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

def mcc_restriction_group_id
  @mcc_restriction_group_id
end

#merchant_restriction_group_idObject

Returns the value of attribute merchant_restriction_group_id.



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

def merchant_restriction_group_id
  @merchant_restriction_group_id
end

#mobile_sentObject

Returns the value of attribute mobile_sent.



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

def mobile_sent
  @mobile_sent
end

#modified_byObject

Returns the value of attribute modified_by.



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

def modified_by
  @modified_by
end

#modified_dateObject

Date YYYY-MM-DD HH:MM:SS



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

def modified_date
  @modified_date
end

#option_atmObject

Returns the value of attribute option_atm.



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

def option_atm
  @option_atm
end

#option_foreignObject

Returns the value of attribute option_foreign.



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

def option_foreign
  @option_foreign
end

#option_nfcObject

Returns the value of attribute option_nfc.



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

def option_nfc
  @option_nfc
end

#option_onlineObject

Returns the value of attribute option_online.



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

def option_online
  @option_online
end

#perms_groupObject

Returns the value of attribute perms_group.



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

def perms_group
  @perms_group
end

#pin_try_exceedsObject

Returns the value of attribute pin_try_exceeds.



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

def pin_try_exceeds
  @pin_try_exceeds
end

#public_tokenObject

Returns the value of attribute public_token.



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

def public_token
  @public_token
end

#start_dateObject

Date YYYY-MM-DD



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

def start_date
  @start_date
end

#status_codeObject

Returns the value of attribute status_code.



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

def status_code
  @status_code
end

#total_atm_allObject

Returns the value of attribute total_atm_all.



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

def total_atm_all
  @total_atm_all
end

#total_atm_dayObject

Returns the value of attribute total_atm_day.



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

def total_atm_day
  @total_atm_day
end

#total_atm_monthObject

Returns the value of attribute total_atm_month.



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

def total_atm_month
  @total_atm_month
end

#total_atm_weekObject

Returns the value of attribute total_atm_week.



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

def total_atm_week
  @total_atm_week
end

#total_atm_yearObject

Returns the value of attribute total_atm_year.



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

def total_atm_year
  @total_atm_year
end

#total_payment_allObject

Returns the value of attribute total_payment_all.



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

def total_payment_all
  @total_payment_all
end

#total_payment_dayObject

Returns the value of attribute total_payment_day.



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

def total_payment_day
  @total_payment_day
end

#total_payment_monthObject

Returns the value of attribute total_payment_month.



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

def total_payment_month
  @total_payment_month
end

#total_payment_weekObject

Returns the value of attribute total_payment_week.



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

def total_payment_week
  @total_payment_week
end

#total_payment_yearObject

Returns the value of attribute total_payment_year.



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

def total_payment_year
  @total_payment_year
end

#total_rowsObject

Returns the value of attribute total_rows.



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

def total_rows
  @total_rows
end

#user_idObject

Returns the value of attribute user_id.



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

def user_id
  @user_id
end

#virtual_convertedObject

Returns the value of attribute virtual_converted.



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

def virtual_converted
  @virtual_converted
end

#wallet_cardtransaction_idObject

Returns the value of attribute wallet_cardtransaction_id.



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

def wallet_cardtransaction_id
  @wallet_cardtransaction_id
end

#wallet_idObject

Returns the value of attribute wallet_id.



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

def wallet_id
  @wallet_id
end

Class Method Details

.attribute_mapObject

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



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

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',
    :'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.



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

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' => :'Integer',
    :'cvv' => :'String',
    :'start_date' => :'Integer',
    :'end_date' => :'Integer',
    :'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',
    :'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' => :'Integer',
    :'modified_by' => :'Integer',
    :'modified_date' => :'Integer',
    :'total_rows' => :'Integer'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



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

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 &&
      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



711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
# File 'lib/treezor_client/models/card.rb', line 711

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



777
778
779
780
781
782
783
784
785
786
787
788
789
# File 'lib/treezor_client/models/card.rb', line 777

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



690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
# File 'lib/treezor_client/models/card.rb', line 690

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


677
678
679
# File 'lib/treezor_client/models/card.rb', line 677

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



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

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, 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



581
582
583
584
# File 'lib/treezor_client/models/card.rb', line 581

def list_invalid_properties
  invalid_properties = Array.new
  return 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



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

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



763
764
765
766
767
768
769
770
771
# File 'lib/treezor_client/models/card.rb', line 763

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



751
752
753
# File 'lib/treezor_client/models/card.rb', line 751

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



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

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