Class: TreezorClient::InlineResponse20010Cardtransactions
- Inherits:
-
Object
- Object
- TreezorClient::InlineResponse20010Cardtransactions
- Defined in:
- lib/treezor_client/models/inline_response_200_10_cardtransactions.rb
Instance Attribute Summary collapse
-
#authorization_issuer_id ⇒ Object
Returns the value of attribute authorization_issuer_id.
-
#authorization_issuer_time ⇒ Object
Returns the value of attribute authorization_issuer_time.
-
#authorization_mti ⇒ Object
Authorization Message Type Identifier | MTI | Description | | — | —-| | 01xx | Authorization message | | 04xx | reversal message | | 12xx | Financial message |.
-
#authorization_note ⇒ Object
Returns the value of attribute authorization_note.
-
#authorization_response_code ⇒ Object
Authorization response code.
-
#authorized_balance ⇒ Object
Returns the value of attribute authorized_balance.
-
#card_id ⇒ Object
Returns the value of attribute card_id.
-
#cardtransaction_id ⇒ Object
Returns the value of attribute cardtransaction_id.
-
#fees ⇒ Object
Returns the value of attribute fees.
-
#limit_atm_all ⇒ Object
Returns the value of attribute limit_atm_all.
-
#limit_atm_day ⇒ Object
Returns the value of attribute limit_atm_day.
-
#limit_atm_month ⇒ Object
Returns the value of attribute limit_atm_month.
-
#limit_atm_week ⇒ Object
Returns the value of attribute limit_atm_week.
-
#limit_atm_year ⇒ Object
Returns the value of attribute limit_atm_year.
-
#limit_payment_all ⇒ Object
Returns the value of attribute limit_payment_all.
-
#limit_payment_day ⇒ Object
Returns the value of attribute limit_payment_day.
-
#limit_payment_month ⇒ Object
Returns the value of attribute limit_payment_month.
-
#limit_payment_week ⇒ Object
Returns the value of attribute limit_payment_week.
-
#limit_payment_year ⇒ Object
Returns the value of attribute limit_payment_year.
-
#mcc_code ⇒ Object
Returns the value of attribute mcc_code.
-
#merchant_city ⇒ Object
Returns the value of attribute merchant_city.
-
#merchant_country ⇒ Object
Returns the value of attribute merchant_country.
-
#merchant_id ⇒ Object
Returns the value of attribute merchant_id.
-
#merchant_name ⇒ Object
Returns the value of attribute merchant_name.
-
#pan_entry_method ⇒ Object
Returns the value of attribute pan_entry_method.
-
#payment_amount ⇒ Object
Returns the value of attribute payment_amount.
-
#payment_country ⇒ Object
Returns the value of attribute payment_country.
-
#payment_currency ⇒ Object
payment currency.
-
#payment_id ⇒ Object
Returns the value of attribute payment_id.
-
#payment_local_amount ⇒ Object
Returns the value of attribute payment_local_amount.
-
#payment_local_time ⇒ Object
Returns the value of attribute payment_local_time.
-
#payment_status ⇒ Object
Payment status.
-
#pos_card_presence ⇒ Object
Returns the value of attribute pos_card_presence.
-
#pos_cardholder_presence ⇒ Object
Returns the value of attribute pos_cardholder_presence.
-
#pos_country ⇒ Object
Returns the value of attribute pos_country.
-
#pos_postcode ⇒ Object
Returns the value of attribute pos_postcode.
-
#pos_terminal_id ⇒ Object
Returns the value of attribute pos_terminal_id.
-
#public_token ⇒ Object
Returns the value of attribute public_token.
-
#total_limit_atm_all ⇒ Object
Returns the value of attribute total_limit_atm_all.
-
#total_limit_atm_day ⇒ Object
Returns the value of attribute total_limit_atm_day.
-
#total_limit_atm_month ⇒ Object
Returns the value of attribute total_limit_atm_month.
-
#total_limit_atm_week ⇒ Object
Returns the value of attribute total_limit_atm_week.
-
#total_limit_atm_year ⇒ Object
Returns the value of attribute total_limit_atm_year.
-
#total_limit_payment_all ⇒ Object
Returns the value of attribute total_limit_payment_all.
-
#total_limit_payment_day ⇒ Object
Returns the value of attribute total_limit_payment_day.
-
#total_limit_payment_month ⇒ Object
Returns the value of attribute total_limit_payment_month.
-
#total_limit_payment_week ⇒ Object
Returns the value of attribute total_limit_payment_week.
-
#total_limit_payment_year ⇒ Object
Returns the value of attribute total_limit_payment_year.
-
#total_rows ⇒ Object
Returns the value of attribute total_rows.
-
#wallet_currency ⇒ Object
Returns the value of attribute wallet_currency.
-
#wallet_id ⇒ Object
Returns the value of attribute wallet_id.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ InlineResponse20010Cardtransactions
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ InlineResponse20010Cardtransactions
Initializes the object
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 449 450 451 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 241 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. = attributes[:'authorizationNote'] end if attributes.has_key?(:'authorizationResponseCode') self. = attributes[:'authorizationResponseCode'] end if attributes.has_key?(:'authorizationIssuerId') self. = attributes[:'authorizationIssuerId'] end if attributes.has_key?(:'authorizationIssuerTime') self. = attributes[:'authorizationIssuerTime'] end if attributes.has_key?(:'authorizationMti') self. = attributes[:'authorizationMti'] end if attributes.has_key?(:'authorizedBalance') self. = 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_id ⇒ Object
Returns the value of attribute authorization_issuer_id.
73 74 75 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 73 def @authorization_issuer_id end |
#authorization_issuer_time ⇒ Object
Returns the value of attribute authorization_issuer_time.
75 76 77 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 75 def @authorization_issuer_time end |
#authorization_mti ⇒ Object
Authorization Message Type Identifier | MTI | Description | | — | —-| | 01xx | Authorization message | | 04xx | reversal message | | 12xx | Financial message |
78 79 80 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 78 def @authorization_mti end |
#authorization_note ⇒ Object
Returns the value of attribute authorization_note.
68 69 70 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 68 def @authorization_note end |
#authorization_response_code ⇒ Object
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 |
71 72 73 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 71 def @authorization_response_code end |
#authorized_balance ⇒ Object
Returns the value of attribute authorized_balance.
80 81 82 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 80 def @authorized_balance end |
#card_id ⇒ Object
Returns the value of attribute card_id.
20 21 22 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 20 def card_id @card_id end |
#cardtransaction_id ⇒ Object
Returns the value of attribute cardtransaction_id.
18 19 20 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 18 def cardtransaction_id @cardtransaction_id end |
#fees ⇒ Object
Returns the value of attribute fees.
45 46 47 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 45 def fees @fees end |
#limit_atm_all ⇒ Object
Returns the value of attribute limit_atm_all.
90 91 92 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 90 def limit_atm_all @limit_atm_all end |
#limit_atm_day ⇒ Object
Returns the value of attribute limit_atm_day.
88 89 90 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 88 def limit_atm_day @limit_atm_day end |
#limit_atm_month ⇒ Object
Returns the value of attribute limit_atm_month.
84 85 86 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 84 def limit_atm_month @limit_atm_month end |
#limit_atm_week ⇒ Object
Returns the value of attribute limit_atm_week.
86 87 88 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 86 def limit_atm_week @limit_atm_week end |
#limit_atm_year ⇒ Object
Returns the value of attribute limit_atm_year.
82 83 84 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 82 def limit_atm_year @limit_atm_year end |
#limit_payment_all ⇒ Object
Returns the value of attribute limit_payment_all.
100 101 102 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 100 def limit_payment_all @limit_payment_all end |
#limit_payment_day ⇒ Object
Returns the value of attribute limit_payment_day.
98 99 100 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 98 def limit_payment_day @limit_payment_day end |
#limit_payment_month ⇒ Object
Returns the value of attribute limit_payment_month.
94 95 96 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 94 def limit_payment_month @limit_payment_month end |
#limit_payment_week ⇒ Object
Returns the value of attribute limit_payment_week.
96 97 98 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 96 def limit_payment_week @limit_payment_week end |
#limit_payment_year ⇒ Object
Returns the value of attribute limit_payment_year.
92 93 94 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 92 def limit_payment_year @limit_payment_year end |
#mcc_code ⇒ Object
Returns the value of attribute mcc_code.
34 35 36 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 34 def mcc_code @mcc_code end |
#merchant_city ⇒ Object
Returns the value of attribute merchant_city.
30 31 32 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 30 def merchant_city @merchant_city end |
#merchant_country ⇒ Object
Returns the value of attribute merchant_country.
32 33 34 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 32 def merchant_country @merchant_country end |
#merchant_id ⇒ Object
Returns the value of attribute merchant_id.
26 27 28 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 26 def merchant_id @merchant_id end |
#merchant_name ⇒ Object
Returns the value of attribute merchant_name.
28 29 30 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 28 def merchant_name @merchant_name end |
#pan_entry_method ⇒ Object
Returns the value of attribute pan_entry_method.
66 67 68 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 66 def pan_entry_method @pan_entry_method end |
#payment_amount ⇒ Object
Returns the value of attribute payment_amount.
40 41 42 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 40 def payment_amount @payment_amount end |
#payment_country ⇒ Object
Returns the value of attribute payment_country.
47 48 49 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 47 def payment_country @payment_country end |
#payment_currency ⇒ Object
payment currency. Format: [ISO 4217](fr.wikipedia.org/wiki/ISO_4217).
43 44 45 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 43 def payment_currency @payment_currency end |
#payment_id ⇒ Object
Returns the value of attribute payment_id.
49 50 51 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 49 def payment_id @payment_id end |
#payment_local_amount ⇒ Object
Returns the value of attribute payment_local_amount.
54 55 56 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 54 def payment_local_amount @payment_local_amount end |
#payment_local_time ⇒ Object
Returns the value of attribute payment_local_time.
36 37 38 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 36 def payment_local_time @payment_local_time end |
#payment_status ⇒ Object
Payment status. | Status | Description | | —— | ——- | | A | Accepted | | C | Cleared | | I | Declined | | S | Settled | | V | Reversed |
52 53 54 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 52 def payment_status @payment_status end |
#pos_card_presence ⇒ Object
Returns the value of attribute pos_card_presence.
64 65 66 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 64 def pos_card_presence @pos_card_presence end |
#pos_cardholder_presence ⇒ Object
Returns the value of attribute pos_cardholder_presence.
56 57 58 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 56 def pos_cardholder_presence @pos_cardholder_presence end |
#pos_country ⇒ Object
Returns the value of attribute pos_country.
60 61 62 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 60 def pos_country @pos_country end |
#pos_postcode ⇒ Object
Returns the value of attribute pos_postcode.
58 59 60 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 58 def pos_postcode @pos_postcode end |
#pos_terminal_id ⇒ Object
Returns the value of attribute pos_terminal_id.
62 63 64 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 62 def pos_terminal_id @pos_terminal_id end |
#public_token ⇒ Object
Returns the value of attribute public_token.
38 39 40 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 38 def public_token @public_token end |
#total_limit_atm_all ⇒ Object
Returns the value of attribute total_limit_atm_all.
110 111 112 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 110 def total_limit_atm_all @total_limit_atm_all end |
#total_limit_atm_day ⇒ Object
Returns the value of attribute total_limit_atm_day.
108 109 110 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 108 def total_limit_atm_day @total_limit_atm_day end |
#total_limit_atm_month ⇒ Object
Returns the value of attribute total_limit_atm_month.
104 105 106 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 104 def total_limit_atm_month @total_limit_atm_month end |
#total_limit_atm_week ⇒ Object
Returns the value of attribute total_limit_atm_week.
106 107 108 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 106 def total_limit_atm_week @total_limit_atm_week end |
#total_limit_atm_year ⇒ Object
Returns the value of attribute total_limit_atm_year.
102 103 104 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 102 def total_limit_atm_year @total_limit_atm_year end |
#total_limit_payment_all ⇒ Object
Returns the value of attribute total_limit_payment_all.
120 121 122 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 120 def total_limit_payment_all @total_limit_payment_all end |
#total_limit_payment_day ⇒ Object
Returns the value of attribute total_limit_payment_day.
118 119 120 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 118 def total_limit_payment_day @total_limit_payment_day end |
#total_limit_payment_month ⇒ Object
Returns the value of attribute total_limit_payment_month.
114 115 116 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 114 def total_limit_payment_month @total_limit_payment_month end |
#total_limit_payment_week ⇒ Object
Returns the value of attribute total_limit_payment_week.
116 117 118 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 116 def total_limit_payment_week @total_limit_payment_week end |
#total_limit_payment_year ⇒ Object
Returns the value of attribute total_limit_payment_year.
112 113 114 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 112 def total_limit_payment_year @total_limit_payment_year end |
#total_rows ⇒ Object
Returns the value of attribute total_rows.
122 123 124 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 122 def total_rows @total_rows end |
#wallet_currency ⇒ Object
Returns the value of attribute wallet_currency.
24 25 26 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 24 def wallet_currency @wallet_currency end |
#wallet_id ⇒ Object
Returns the value of attribute wallet_id.
22 23 24 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 22 def wallet_id @wallet_id end |
Class Method Details
.attribute_map ⇒ Object
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 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 126 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_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 183 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.
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 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 468 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 && == o. && == o. && == o. && == o. && == o. && == o. && 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
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 594 595 596 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 560 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
626 627 628 629 630 631 632 633 634 635 636 637 638 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 626 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
539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 539 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
526 527 528 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 526 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
532 533 534 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 532 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, , , , , , , 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_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
455 456 457 458 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 455 def list_invalid_properties invalid_properties = Array.new return invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
606 607 608 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 606 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
612 613 614 615 616 617 618 619 620 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 612 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_s ⇒ String
Returns the string representation of the object
600 601 602 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 600 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
462 463 464 |
# File 'lib/treezor_client/models/inline_response_200_10_cardtransactions.rb', line 462 def valid? return true end |