Class: TreezorClient::InlineResponse2009Cardtransactions

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ InlineResponse2009Cardtransactions

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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
449
450
451
452
453
454
455
456
# File 'lib/treezor_client/models/inline_response_200_9_cardtransactions.rb', line 243

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?(:'acquirerId')
    self.acquirer_id = attributes[:'acquirerId']
  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

#acquirer_idObject

Returns the value of attribute acquirer_id.



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

def acquirer_id
  @acquirer_id
end

#authorization_issuer_idObject

Returns the value of attribute authorization_issuer_id.



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

def authorization_issuer_id
  @authorization_issuer_id
end

#authorization_issuer_timeObject

Returns the value of attribute authorization_issuer_time.



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

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 |



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

def authorization_mti
  @authorization_mti
end

#authorization_noteObject

Returns the value of attribute authorization_note.



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

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 |



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

def authorization_response_code
  @authorization_response_code
end

#authorized_balanceObject

Returns the value of attribute authorized_balance.



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

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_9_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_9_cardtransactions.rb', line 17

def cardtransaction_id
  @cardtransaction_id
end

#feesObject

Returns the value of attribute fees.



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

def fees
  @fees
end

#limit_atm_allObject

Returns the value of attribute limit_atm_all.



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

def limit_atm_all
  @limit_atm_all
end

#limit_atm_dayObject

Returns the value of attribute limit_atm_day.



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

def limit_atm_day
  @limit_atm_day
end

#limit_atm_monthObject

Returns the value of attribute limit_atm_month.



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

def limit_atm_month
  @limit_atm_month
end

#limit_atm_weekObject

Returns the value of attribute limit_atm_week.



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

def limit_atm_week
  @limit_atm_week
end

#limit_atm_yearObject

Returns the value of attribute limit_atm_year.



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

def limit_atm_year
  @limit_atm_year
end

#limit_payment_allObject

Returns the value of attribute limit_payment_all.



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

def limit_payment_all
  @limit_payment_all
end

#limit_payment_dayObject

Returns the value of attribute limit_payment_day.



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

def limit_payment_day
  @limit_payment_day
end

#limit_payment_monthObject

Returns the value of attribute limit_payment_month.



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

def limit_payment_month
  @limit_payment_month
end

#limit_payment_weekObject

Returns the value of attribute limit_payment_week.



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

def limit_payment_week
  @limit_payment_week
end

#limit_payment_yearObject

Returns the value of attribute limit_payment_year.



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

def limit_payment_year
  @limit_payment_year
end

#mcc_codeObject

Returns the value of attribute mcc_code.



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

def mcc_code
  @mcc_code
end

#merchant_cityObject

Returns the value of attribute merchant_city.



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

def merchant_city
  @merchant_city
end

#merchant_countryObject

Returns the value of attribute merchant_country.



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

def merchant_country
  @merchant_country
end

#merchant_idObject

Returns the value of attribute merchant_id.



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

def merchant_id
  @merchant_id
end

#merchant_nameObject

Returns the value of attribute merchant_name.



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

def merchant_name
  @merchant_name
end

#pan_entry_methodObject

Returns the value of attribute pan_entry_method.



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

def pan_entry_method
  @pan_entry_method
end

#payment_amountObject

Returns the value of attribute payment_amount.



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

def payment_amount
  @payment_amount
end

#payment_countryObject

Returns the value of attribute payment_country.



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

def payment_country
  @payment_country
end

#payment_currencyObject

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



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

def payment_currency
  @payment_currency
end

#payment_idObject

Returns the value of attribute payment_id.



50
51
52
# File 'lib/treezor_client/models/inline_response_200_9_cardtransactions.rb', line 50

def payment_id
  @payment_id
end

#payment_local_amountObject

Returns the value of attribute payment_local_amount.



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

def payment_local_amount
  @payment_local_amount
end

#payment_local_timeObject

Returns the value of attribute payment_local_time.



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

def payment_local_time
  @payment_local_time
end

#payment_statusObject

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



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

def payment_status
  @payment_status
end

#pos_card_presenceObject

Returns the value of attribute pos_card_presence.



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

def pos_card_presence
  @pos_card_presence
end

#pos_cardholder_presenceObject

Returns the value of attribute pos_cardholder_presence.



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

def pos_cardholder_presence
  @pos_cardholder_presence
end

#pos_countryObject

Returns the value of attribute pos_country.



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

def pos_country
  @pos_country
end

#pos_postcodeObject

Returns the value of attribute pos_postcode.



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

def pos_postcode
  @pos_postcode
end

#pos_terminal_idObject

Returns the value of attribute pos_terminal_id.



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

def pos_terminal_id
  @pos_terminal_id
end

#public_tokenObject

Returns the value of attribute public_token.



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

def public_token
  @public_token
end

#total_limit_atm_allObject

Returns the value of attribute total_limit_atm_all.



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

def total_limit_atm_all
  @total_limit_atm_all
end

#total_limit_atm_dayObject

Returns the value of attribute total_limit_atm_day.



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

def total_limit_atm_day
  @total_limit_atm_day
end

#total_limit_atm_monthObject

Returns the value of attribute total_limit_atm_month.



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

def total_limit_atm_month
  @total_limit_atm_month
end

#total_limit_atm_weekObject

Returns the value of attribute total_limit_atm_week.



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

def total_limit_atm_week
  @total_limit_atm_week
end

#total_limit_atm_yearObject

Returns the value of attribute total_limit_atm_year.



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

def total_limit_atm_year
  @total_limit_atm_year
end

#total_limit_payment_allObject

Returns the value of attribute total_limit_payment_all.



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

def total_limit_payment_all
  @total_limit_payment_all
end

#total_limit_payment_dayObject

Returns the value of attribute total_limit_payment_day.



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

def total_limit_payment_day
  @total_limit_payment_day
end

#total_limit_payment_monthObject

Returns the value of attribute total_limit_payment_month.



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

def total_limit_payment_month
  @total_limit_payment_month
end

#total_limit_payment_weekObject

Returns the value of attribute total_limit_payment_week.



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

def total_limit_payment_week
  @total_limit_payment_week
end

#total_limit_payment_yearObject

Returns the value of attribute total_limit_payment_year.



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

def total_limit_payment_year
  @total_limit_payment_year
end

#total_rowsObject

Returns the value of attribute total_rows.



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

def total_rows
  @total_rows
end

#wallet_currencyObject

Returns the value of attribute wallet_currency.



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

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_9_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.



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

def self.attribute_map
  {
    :'cardtransaction_id' => :'cardtransactionId',
    :'card_id' => :'cardId',
    :'wallet_id' => :'walletId',
    :'acquirer_id' => :'acquirerId',
    :'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.



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

def self.swagger_types
  {
    :'cardtransaction_id' => :'Integer',
    :'card_id' => :'Integer',
    :'wallet_id' => :'Integer',
    :'acquirer_id' => :'Integer',
    :'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



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

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 &&
      acquirer_id == o.acquirer_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



566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
# File 'lib/treezor_client/models/inline_response_200_9_cardtransactions.rb', line 566

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



632
633
634
635
636
637
638
639
640
641
642
643
644
# File 'lib/treezor_client/models/inline_response_200_9_cardtransactions.rb', line 632

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



545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
# File 'lib/treezor_client/models/inline_response_200_9_cardtransactions.rb', line 545

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


532
533
534
# File 'lib/treezor_client/models/inline_response_200_9_cardtransactions.rb', line 532

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



538
539
540
# File 'lib/treezor_client/models/inline_response_200_9_cardtransactions.rb', line 538

def hash
  [cardtransaction_id, card_id, wallet_id, acquirer_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



460
461
462
463
# File 'lib/treezor_client/models/inline_response_200_9_cardtransactions.rb', line 460

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



612
613
614
# File 'lib/treezor_client/models/inline_response_200_9_cardtransactions.rb', line 612

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



618
619
620
621
622
623
624
625
626
# File 'lib/treezor_client/models/inline_response_200_9_cardtransactions.rb', line 618

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



606
607
608
# File 'lib/treezor_client/models/inline_response_200_9_cardtransactions.rb', line 606

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



467
468
469
# File 'lib/treezor_client/models/inline_response_200_9_cardtransactions.rb', line 467

def valid?
  true
end