Class: TreezorClient::InlineResponse20011Cardtransactions

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ InlineResponse20011Cardtransactions

Initializes the object

Parameters:

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

    Model attributes in the form of hash



239
240
241
242
243
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
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
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
# File 'lib/treezor_client/models/inline_response_200_11_cardtransactions.rb', line 239

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?(:'cardtransactionId')
    self.cardtransaction_id = attributes[:'cardtransactionId']
  end

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  if attributes.has_key?(:'authorizedBalance')
    self.authorized_balance = attributes[:'authorizedBalance']
  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?(:'totalLimitAtmYear')
    self.total_limit_atm_year = attributes[:'totalLimitAtmYear']
  end

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

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

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

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

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

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

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

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

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

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

Instance Attribute Details

#authorization_issuer_idObject

Returns the value of attribute authorization_issuer_id.



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

def authorization_issuer_id
  @authorization_issuer_id
end

#authorization_issuer_timeObject

Returns the value of attribute authorization_issuer_time.



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

def authorization_issuer_time
  @authorization_issuer_time
end

#authorization_mtiObject

Authorization Message Type Identifier | MTI | Description | | — | —-| | 01xx | Authorization message | | 04xx | reversal message | | 12xx | Financial message |



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

def authorization_mti
  @authorization_mti
end

#authorization_noteObject

Returns the value of attribute authorization_note.



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

def authorization_note
  @authorization_note
end

#authorization_response_codeObject

Authorization response code. | Code | Description | | —- | ———– | | 00 | All Good | | 01 | Refer to card issuer Refer | | 03 | Invalid merchant Decline | | 05 | Do not honour Decline | | 10 | Partial Approval Approve | | 13 | Invalid amount Decline | | 14 | Invalid card number (no such number) Decline | | 17 | Customer Cancellation Decline | | 33 | Expired card (Capture) Decline & Pickup | | 41 | Lost card (Capture) Decline & Pickup | | 43 | Stolen card (Capture) Decline & Pickup | | 51 | Insufficient funds Decline | | 54 | Expired card Decline | | 55 | Incorrect PIN Decline | | 57 | Transaction not permitted to cardholder Decline | | 58 | Transaction not permitted to terminal Decline | | 61 | Exceeds withdrawal amount limit Decline | | 62 | Restricted card Decline | | 63 | Security Violation Decline | | 65 | Exceeds withdrawal frequency limit Decline | | 68 | Response received too late Decline | | 70 | Cardholder to contact issuer Decline | | 75 | Allowable number of PIN tries exceeded Decline | | 82 | Timeout at IEM Decline | | 85 | PIN Unblock request Approve | | 91 | Issuer or switch is inoperative Decline | | N7 | Decline for CVV2 failure Decline |



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

def authorization_response_code
  @authorization_response_code
end

#authorized_balanceObject

Returns the value of attribute authorized_balance.



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

def authorized_balance
  @authorized_balance
end

#card_idObject

Returns the value of attribute card_id.



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

def card_id
  @card_id
end

#cardtransaction_idObject

Returns the value of attribute cardtransaction_id.



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

def cardtransaction_id
  @cardtransaction_id
end

#feesObject

Returns the value of attribute fees.



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

def fees
  @fees
end

#limit_atm_allObject

Returns the value of attribute limit_atm_all.



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

def limit_atm_all
  @limit_atm_all
end

#limit_atm_dayObject

Returns the value of attribute limit_atm_day.



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

def limit_atm_day
  @limit_atm_day
end

#limit_atm_monthObject

Returns the value of attribute limit_atm_month.



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

def limit_atm_month
  @limit_atm_month
end

#limit_atm_weekObject

Returns the value of attribute limit_atm_week.



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

def limit_atm_week
  @limit_atm_week
end

#limit_atm_yearObject

Returns the value of attribute limit_atm_year.



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

def limit_atm_year
  @limit_atm_year
end

#limit_payment_allObject

Returns the value of attribute limit_payment_all.



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

def limit_payment_all
  @limit_payment_all
end

#limit_payment_dayObject

Returns the value of attribute limit_payment_day.



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

def limit_payment_day
  @limit_payment_day
end

#limit_payment_monthObject

Returns the value of attribute limit_payment_month.



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

def limit_payment_month
  @limit_payment_month
end

#limit_payment_weekObject

Returns the value of attribute limit_payment_week.



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

def limit_payment_week
  @limit_payment_week
end

#limit_payment_yearObject

Returns the value of attribute limit_payment_year.



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

def limit_payment_year
  @limit_payment_year
end

#mcc_codeObject

Returns the value of attribute mcc_code.



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

def mcc_code
  @mcc_code
end

#merchant_cityObject

Returns the value of attribute merchant_city.



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

def merchant_city
  @merchant_city
end

#merchant_countryObject

Returns the value of attribute merchant_country.



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

def merchant_country
  @merchant_country
end

#merchant_idObject

Returns the value of attribute merchant_id.



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

def merchant_id
  @merchant_id
end

#merchant_nameObject

Returns the value of attribute merchant_name.



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

def merchant_name
  @merchant_name
end

#pan_entry_methodObject

Returns the value of attribute pan_entry_method.



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

def pan_entry_method
  @pan_entry_method
end

#payment_amountObject

Returns the value of attribute payment_amount.



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

def payment_amount
  @payment_amount
end

#payment_countryObject

Returns the value of attribute payment_country.



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

def payment_country
  @payment_country
end

#payment_currencyObject

payment currency. Format: [ISO 4217](fr.wikipedia.org/wiki/ISO_4217).



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

def payment_currency
  @payment_currency
end

#payment_idObject

Returns the value of attribute payment_id.



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

def payment_id
  @payment_id
end

#payment_local_amountObject

Returns the value of attribute payment_local_amount.



53
54
55
# File 'lib/treezor_client/models/inline_response_200_11_cardtransactions.rb', line 53

def payment_local_amount
  @payment_local_amount
end

#payment_local_timeObject

Returns the value of attribute payment_local_time.



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

def payment_local_time
  @payment_local_time
end

#payment_statusObject

Payment status. | Status | Description | | —— | ——- | | A | Accepted | | C | Cleared | | I | Declined | | S | Settled | | V | Reversed |



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

def payment_status
  @payment_status
end

#pos_card_presenceObject

Returns the value of attribute pos_card_presence.



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

def pos_card_presence
  @pos_card_presence
end

#pos_cardholder_presenceObject

Returns the value of attribute pos_cardholder_presence.



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

def pos_cardholder_presence
  @pos_cardholder_presence
end

#pos_countryObject

Returns the value of attribute pos_country.



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

def pos_country
  @pos_country
end

#pos_postcodeObject

Returns the value of attribute pos_postcode.



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

def pos_postcode
  @pos_postcode
end

#pos_terminal_idObject

Returns the value of attribute pos_terminal_id.



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

def pos_terminal_id
  @pos_terminal_id
end

#public_tokenObject

Returns the value of attribute public_token.



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

def public_token
  @public_token
end

#total_limit_atm_allObject

Returns the value of attribute total_limit_atm_all.



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

def total_limit_atm_all
  @total_limit_atm_all
end

#total_limit_atm_dayObject

Returns the value of attribute total_limit_atm_day.



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

def total_limit_atm_day
  @total_limit_atm_day
end

#total_limit_atm_monthObject

Returns the value of attribute total_limit_atm_month.



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

def total_limit_atm_month
  @total_limit_atm_month
end

#total_limit_atm_weekObject

Returns the value of attribute total_limit_atm_week.



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

def total_limit_atm_week
  @total_limit_atm_week
end

#total_limit_atm_yearObject

Returns the value of attribute total_limit_atm_year.



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

def total_limit_atm_year
  @total_limit_atm_year
end

#total_limit_payment_allObject

Returns the value of attribute total_limit_payment_all.



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

def total_limit_payment_all
  @total_limit_payment_all
end

#total_limit_payment_dayObject

Returns the value of attribute total_limit_payment_day.



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

def total_limit_payment_day
  @total_limit_payment_day
end

#total_limit_payment_monthObject

Returns the value of attribute total_limit_payment_month.



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

def total_limit_payment_month
  @total_limit_payment_month
end

#total_limit_payment_weekObject

Returns the value of attribute total_limit_payment_week.



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

def total_limit_payment_week
  @total_limit_payment_week
end

#total_limit_payment_yearObject

Returns the value of attribute total_limit_payment_year.



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

def total_limit_payment_year
  @total_limit_payment_year
end

#total_rowsObject

Returns the value of attribute total_rows.



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

def total_rows
  @total_rows
end

#wallet_currencyObject

Returns the value of attribute wallet_currency.



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

def wallet_currency
  @wallet_currency
end

#wallet_idObject

Returns the value of attribute wallet_id.



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

def wallet_id
  @wallet_id
end

Class Method Details

.attribute_mapObject

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



124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'lib/treezor_client/models/inline_response_200_11_cardtransactions.rb', line 124

def self.attribute_map
  {
    :'cardtransaction_id' => :'cardtransactionId',
    :'card_id' => :'cardId',
    :'wallet_id' => :'walletId',
    :'wallet_currency' => :'walletCurrency',
    :'merchant_id' => :'merchantId',
    :'merchant_name' => :'merchantName',
    :'merchant_city' => :'merchantCity',
    :'merchant_country' => :'merchantCountry',
    :'mcc_code' => :'mccCode',
    :'payment_local_time' => :'paymentLocalTime',
    :'public_token' => :'publicToken',
    :'payment_amount' => :'paymentAmount',
    :'payment_currency' => :'paymentCurrency',
    :'fees' => :'fees',
    :'payment_country' => :'paymentCountry',
    :'payment_id' => :'paymentId',
    :'payment_status' => :'paymentStatus',
    :'payment_local_amount' => :'paymentLocalAmount',
    :'pos_cardholder_presence' => :'posCardholderPresence',
    :'pos_postcode' => :'posPostcode',
    :'pos_country' => :'posCountry',
    :'pos_terminal_id' => :'posTerminalId',
    :'pos_card_presence' => :'posCardPresence',
    :'pan_entry_method' => :'panEntryMethod',
    :'authorization_note' => :'authorizationNote',
    :'authorization_response_code' => :'authorizationResponseCode',
    :'authorization_issuer_id' => :'authorizationIssuerId',
    :'authorization_issuer_time' => :'authorizationIssuerTime',
    :'authorization_mti' => :'authorizationMti',
    :'authorized_balance' => :'authorizedBalance',
    :'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_limit_atm_year' => :'totalLimitAtmYear',
    :'total_limit_atm_month' => :'totalLimitAtmMonth',
    :'total_limit_atm_week' => :'totalLimitAtmWeek',
    :'total_limit_atm_day' => :'totalLimitAtmDay',
    :'total_limit_atm_all' => :'totalLimitAtmAll',
    :'total_limit_payment_year' => :'totalLimitPaymentYear',
    :'total_limit_payment_month' => :'totalLimitPaymentMonth',
    :'total_limit_payment_week' => :'totalLimitPaymentWeek',
    :'total_limit_payment_day' => :'totalLimitPaymentDay',
    :'total_limit_payment_all' => :'totalLimitPaymentAll',
    :'total_rows' => :'totalRows'
  }
end

.swagger_typesObject

Attribute type mapping.



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

def self.swagger_types
  {
    :'cardtransaction_id' => :'String',
    :'card_id' => :'String',
    :'wallet_id' => :'String',
    :'wallet_currency' => :'String',
    :'merchant_id' => :'String',
    :'merchant_name' => :'String',
    :'merchant_city' => :'String',
    :'merchant_country' => :'String',
    :'mcc_code' => :'String',
    :'payment_local_time' => :'String',
    :'public_token' => :'String',
    :'payment_amount' => :'String',
    :'payment_currency' => :'String',
    :'fees' => :'String',
    :'payment_country' => :'String',
    :'payment_id' => :'String',
    :'payment_status' => :'String',
    :'payment_local_amount' => :'String',
    :'pos_cardholder_presence' => :'String',
    :'pos_postcode' => :'String',
    :'pos_country' => :'String',
    :'pos_terminal_id' => :'String',
    :'pos_card_presence' => :'String',
    :'pan_entry_method' => :'String',
    :'authorization_note' => :'String',
    :'authorization_response_code' => :'String',
    :'authorization_issuer_id' => :'String',
    :'authorization_issuer_time' => :'String',
    :'authorization_mti' => :'String',
    :'authorized_balance' => :'String',
    :'limit_atm_year' => :'String',
    :'limit_atm_month' => :'String',
    :'limit_atm_week' => :'String',
    :'limit_atm_day' => :'String',
    :'limit_atm_all' => :'String',
    :'limit_payment_year' => :'String',
    :'limit_payment_month' => :'String',
    :'limit_payment_week' => :'String',
    :'limit_payment_day' => :'String',
    :'limit_payment_all' => :'String',
    :'total_limit_atm_year' => :'String',
    :'total_limit_atm_month' => :'String',
    :'total_limit_atm_week' => :'String',
    :'total_limit_atm_day' => :'String',
    :'total_limit_atm_all' => :'String',
    :'total_limit_payment_year' => :'String',
    :'total_limit_payment_month' => :'String',
    :'total_limit_payment_week' => :'String',
    :'total_limit_payment_day' => :'String',
    :'total_limit_payment_all' => :'String',
    :'total_rows' => :'Integer'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



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

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      cardtransaction_id == o.cardtransaction_id &&
      card_id == o.card_id &&
      wallet_id == o.wallet_id &&
      wallet_currency == o.wallet_currency &&
      merchant_id == o.merchant_id &&
      merchant_name == o.merchant_name &&
      merchant_city == o.merchant_city &&
      merchant_country == o.merchant_country &&
      mcc_code == o.mcc_code &&
      payment_local_time == o.payment_local_time &&
      public_token == o.public_token &&
      payment_amount == o.payment_amount &&
      payment_currency == o.payment_currency &&
      fees == o.fees &&
      payment_country == o.payment_country &&
      payment_id == o.payment_id &&
      payment_status == o.payment_status &&
      payment_local_amount == o.payment_local_amount &&
      pos_cardholder_presence == o.pos_cardholder_presence &&
      pos_postcode == o.pos_postcode &&
      pos_country == o.pos_country &&
      pos_terminal_id == o.pos_terminal_id &&
      pos_card_presence == o.pos_card_presence &&
      pan_entry_method == o.pan_entry_method &&
      authorization_note == o.authorization_note &&
      authorization_response_code == o.authorization_response_code &&
      authorization_issuer_id == o.authorization_issuer_id &&
      authorization_issuer_time == o.authorization_issuer_time &&
      authorization_mti == o.authorization_mti &&
      authorized_balance == o.authorized_balance &&
      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_limit_atm_year == o.total_limit_atm_year &&
      total_limit_atm_month == o.total_limit_atm_month &&
      total_limit_atm_week == o.total_limit_atm_week &&
      total_limit_atm_day == o.total_limit_atm_day &&
      total_limit_atm_all == o.total_limit_atm_all &&
      total_limit_payment_year == o.total_limit_payment_year &&
      total_limit_payment_month == o.total_limit_payment_month &&
      total_limit_payment_week == o.total_limit_payment_week &&
      total_limit_payment_day == o.total_limit_payment_day &&
      total_limit_payment_all == o.total_limit_payment_all &&
      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



557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
# File 'lib/treezor_client/models/inline_response_200_11_cardtransactions.rb', line 557

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



623
624
625
626
627
628
629
630
631
632
633
634
635
# File 'lib/treezor_client/models/inline_response_200_11_cardtransactions.rb', line 623

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



536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
# File 'lib/treezor_client/models/inline_response_200_11_cardtransactions.rb', line 536

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


523
524
525
# File 'lib/treezor_client/models/inline_response_200_11_cardtransactions.rb', line 523

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



529
530
531
# File 'lib/treezor_client/models/inline_response_200_11_cardtransactions.rb', line 529

def hash
  [cardtransaction_id, card_id, wallet_id, wallet_currency, merchant_id, merchant_name, merchant_city, merchant_country, mcc_code, payment_local_time, public_token, payment_amount, payment_currency, fees, payment_country, payment_id, payment_status, payment_local_amount, pos_cardholder_presence, pos_postcode, pos_country, pos_terminal_id, pos_card_presence, pan_entry_method, authorization_note, authorization_response_code, authorization_issuer_id, authorization_issuer_time, authorization_mti, authorized_balance, 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_limit_atm_year, total_limit_atm_month, total_limit_atm_week, total_limit_atm_day, total_limit_atm_all, total_limit_payment_year, total_limit_payment_month, total_limit_payment_week, total_limit_payment_day, total_limit_payment_all, 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



452
453
454
455
# File 'lib/treezor_client/models/inline_response_200_11_cardtransactions.rb', line 452

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



603
604
605
# File 'lib/treezor_client/models/inline_response_200_11_cardtransactions.rb', line 603

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



609
610
611
612
613
614
615
616
617
# File 'lib/treezor_client/models/inline_response_200_11_cardtransactions.rb', line 609

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



597
598
599
# File 'lib/treezor_client/models/inline_response_200_11_cardtransactions.rb', line 597

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



459
460
461
# File 'lib/treezor_client/models/inline_response_200_11_cardtransactions.rb', line 459

def valid?
  true
end