treezor_client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +71 -0
- data/README.md +275 -0
- data/Rakefile +13 -0
- data/doc/TreezorClient.html +251 -0
- data/doc/TreezorClient/ApiClient.html +2600 -0
- data/doc/TreezorClient/ApiError.html +464 -0
- data/doc/TreezorClient/Balance.html +2042 -0
- data/doc/TreezorClient/BalanceApi.html +760 -0
- data/doc/TreezorClient/Bankaccount.html +2560 -0
- data/doc/TreezorClient/Bankaccount/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/BankaccountApi.html +2450 -0
- data/doc/TreezorClient/BeneficiariesApi.html +2387 -0
- data/doc/TreezorClient/BeneficiariesSddB2bWhitelist.html +1816 -0
- data/doc/TreezorClient/Beneficiary.html +2574 -0
- data/doc/TreezorClient/Body.html +1826 -0
- data/doc/TreezorClient/Body/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/Body1.html +2596 -0
- data/doc/TreezorClient/Body10.html +2069 -0
- data/doc/TreezorClient/Body10/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/Body2.html +2492 -0
- data/doc/TreezorClient/Body3.html +1726 -0
- data/doc/TreezorClient/Body4.html +1726 -0
- data/doc/TreezorClient/Body5.html +2001 -0
- data/doc/TreezorClient/Body5/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/Body6.html +2069 -0
- data/doc/TreezorClient/Body6/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/Body7.html +2002 -0
- data/doc/TreezorClient/Body7/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/Body8.html +1981 -0
- data/doc/TreezorClient/Body8/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/Body9.html +2001 -0
- data/doc/TreezorClient/Body9/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/BusinessApi.html +1548 -0
- data/doc/TreezorClient/BusinesssearchsBusinessinformations.html +2822 -0
- data/doc/TreezorClient/BusinesssearchsBusinessinformations/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/Card.html +6928 -0
- data/doc/TreezorClient/Card/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/CardApi.html +9907 -0
- data/doc/TreezorClient/CardDigitalization.html +2126 -0
- data/doc/TreezorClient/CardDigitalizationDetailsFromGPS.html +4343 -0
- data/doc/TreezorClient/CardDigitalizationsApi.html +1542 -0
- data/doc/TreezorClient/CardReserveApi.html +1622 -0
- data/doc/TreezorClient/CardtransactionApi.html +1243 -0
- data/doc/TreezorClient/Configuration.html +2459 -0
- data/doc/TreezorClient/CountryRestrictionGroupsApi.html +2602 -0
- data/doc/TreezorClient/Document.html +2812 -0
- data/doc/TreezorClient/Document/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/DocumentApi.html +2878 -0
- data/doc/TreezorClient/Error.html +1794 -0
- data/doc/TreezorClient/HeartbeatApi.html +702 -0
- data/doc/TreezorClient/InlineResponse200.html +1626 -0
- data/doc/TreezorClient/InlineResponse2001.html +1626 -0
- data/doc/TreezorClient/InlineResponse20010.html +1626 -0
- data/doc/TreezorClient/InlineResponse20010Cardtransactions.html +5844 -0
- data/doc/TreezorClient/InlineResponse20011.html +1626 -0
- data/doc/TreezorClient/InlineResponse20012.html +1626 -0
- data/doc/TreezorClient/InlineResponse20013.html +1626 -0
- data/doc/TreezorClient/InlineResponse20014.html +1626 -0
- data/doc/TreezorClient/InlineResponse20015.html +1626 -0
- data/doc/TreezorClient/InlineResponse20016.html +1626 -0
- data/doc/TreezorClient/InlineResponse20017.html +1626 -0
- data/doc/TreezorClient/InlineResponse20018.html +1626 -0
- data/doc/TreezorClient/InlineResponse20019.html +1626 -0
- data/doc/TreezorClient/InlineResponse2002.html +1626 -0
- data/doc/TreezorClient/InlineResponse20020.html +1626 -0
- data/doc/TreezorClient/InlineResponse20021.html +1626 -0
- data/doc/TreezorClient/InlineResponse20022.html +1626 -0
- data/doc/TreezorClient/InlineResponse20023.html +1626 -0
- data/doc/TreezorClient/InlineResponse20024.html +1626 -0
- data/doc/TreezorClient/InlineResponse20025.html +1626 -0
- data/doc/TreezorClient/InlineResponse2003.html +1626 -0
- data/doc/TreezorClient/InlineResponse2004.html +1626 -0
- data/doc/TreezorClient/InlineResponse2005.html +1626 -0
- data/doc/TreezorClient/InlineResponse2005Businessinformations.html +3561 -0
- data/doc/TreezorClient/InlineResponse2005Businessinformations/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/InlineResponse2005Users.html +1972 -0
- data/doc/TreezorClient/InlineResponse2005Users/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/InlineResponse2006.html +1626 -0
- data/doc/TreezorClient/InlineResponse2007.html +1626 -0
- data/doc/TreezorClient/InlineResponse2007Cardimages.html +1800 -0
- data/doc/TreezorClient/InlineResponse2008.html +1626 -0
- data/doc/TreezorClient/InlineResponse2009.html +1790 -0
- data/doc/TreezorClient/InlineResponseDefault.html +1626 -0
- data/doc/TreezorClient/IssuerInitiatedDigitizationDataApi.html +1371 -0
- data/doc/TreezorClient/IssuerInitiatedDigitizationDatasAdditionnalData.html +1803 -0
- data/doc/TreezorClient/IssuerInitiatedDigitizationDatasAdditionnalDataECCPublicCertificates.html +1804 -0
- data/doc/TreezorClient/Mandate.html +4584 -0
- data/doc/TreezorClient/Mandate/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/MandateApi.html +3787 -0
- data/doc/TreezorClient/MccRestrictionGroup.html +2144 -0
- data/doc/TreezorClient/MccRestrictionGroup/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/MccRestrictionGroupsApi.html +2598 -0
- data/doc/TreezorClient/MerchantIdRestrictionGroup.html +2144 -0
- data/doc/TreezorClient/MerchantIdRestrictionGroup/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/MerchantIdRestrictionGroupsApi.html +2638 -0
- data/doc/TreezorClient/Payin.html +5584 -0
- data/doc/TreezorClient/Payin/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/PayinApi.html +2963 -0
- data/doc/TreezorClient/Payinrefund.html +2476 -0
- data/doc/TreezorClient/Payinrefund/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/PayinrefundApi.html +2449 -0
- data/doc/TreezorClient/Payout.html +3488 -0
- data/doc/TreezorClient/Payout/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/PayoutApi.html +2737 -0
- data/doc/TreezorClient/Tav.html +2130 -0
- data/doc/TreezorClient/Transaction.html +2798 -0
- data/doc/TreezorClient/TransactionApi.html +1491 -0
- data/doc/TreezorClient/Transfer.html +3158 -0
- data/doc/TreezorClient/Transfer/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/TransferApi.html +2725 -0
- data/doc/TreezorClient/Transferrefund.html +2644 -0
- data/doc/TreezorClient/Transferrefund/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/TransferrefundApi.html +2450 -0
- data/doc/TreezorClient/User.html +5844 -0
- data/doc/TreezorClient/User/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/UserApi.html +6647 -0
- data/doc/TreezorClient/Virtualiban.html +2462 -0
- data/doc/TreezorClient/VirtualibansApi.html +2845 -0
- data/doc/TreezorClient/Wallet.html +4076 -0
- data/doc/TreezorClient/Wallet/EnumAttributeValidator.html +455 -0
- data/doc/TreezorClient/WalletApi.html +3944 -0
- data/doc/_index.html +1025 -0
- data/doc/class_list.html +51 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +58 -0
- data/doc/css/style.css +496 -0
- data/doc/file.README.html +636 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +17 -0
- data/doc/index.html +636 -0
- data/doc/js/app.js +292 -0
- data/doc/js/full_list.js +216 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +15699 -0
- data/doc/top-level-namespace.html +110 -0
- data/docs/Balance.md +13 -0
- data/docs/BalanceApi.md +74 -0
- data/docs/Bankaccount.md +19 -0
- data/docs/BankaccountApi.md +288 -0
- data/docs/BeneficiariesApi.md +284 -0
- data/docs/BeneficiariesSddB2bWhitelist.md +10 -0
- data/docs/Beneficiary.md +19 -0
- data/docs/Body.md +10 -0
- data/docs/Body1.md +19 -0
- data/docs/Body10.md +13 -0
- data/docs/Body2.md +18 -0
- data/docs/Body3.md +9 -0
- data/docs/Body4.md +9 -0
- data/docs/Body5.md +12 -0
- data/docs/Body6.md +13 -0
- data/docs/Body7.md +12 -0
- data/docs/Body8.md +12 -0
- data/docs/Body9.md +12 -0
- data/docs/BusinessApi.md +162 -0
- data/docs/BusinesssearchsBusinessinformations.md +22 -0
- data/docs/Card.md +71 -0
- data/docs/CardApi.md +1202 -0
- data/docs/CardDigitalization.md +14 -0
- data/docs/CardDigitalizationDetailsFromGPS.md +40 -0
- data/docs/CardDigitalizationsApi.md +195 -0
- data/docs/CardReserveApi.md +201 -0
- data/docs/CardtransactionApi.md +141 -0
- data/docs/CountryRestrictionGroupsApi.md +333 -0
- data/docs/Document.md +22 -0
- data/docs/DocumentApi.md +351 -0
- data/docs/Error.md +10 -0
- data/docs/HeartbeatApi.md +69 -0
- data/docs/InlineResponse200.md +8 -0
- data/docs/InlineResponse2001.md +8 -0
- data/docs/InlineResponse20010.md +8 -0
- data/docs/InlineResponse20010Cardtransactions.md +58 -0
- data/docs/InlineResponse20011.md +8 -0
- data/docs/InlineResponse20012.md +8 -0
- data/docs/InlineResponse20013.md +8 -0
- data/docs/InlineResponse20014.md +8 -0
- data/docs/InlineResponse20015.md +8 -0
- data/docs/InlineResponse20016.md +8 -0
- data/docs/InlineResponse20017.md +8 -0
- data/docs/InlineResponse20018.md +8 -0
- data/docs/InlineResponse20019.md +8 -0
- data/docs/InlineResponse2002.md +8 -0
- data/docs/InlineResponse20020.md +8 -0
- data/docs/InlineResponse20021.md +8 -0
- data/docs/InlineResponse20022.md +8 -0
- data/docs/InlineResponse20023.md +8 -0
- data/docs/InlineResponse20024.md +8 -0
- data/docs/InlineResponse20025.md +8 -0
- data/docs/InlineResponse2003.md +8 -0
- data/docs/InlineResponse2004.md +8 -0
- data/docs/InlineResponse2005.md +8 -0
- data/docs/InlineResponse2005Businessinformations.md +26 -0
- data/docs/InlineResponse2005Users.md +12 -0
- data/docs/InlineResponse2006.md +8 -0
- data/docs/InlineResponse2007.md +8 -0
- data/docs/InlineResponse2007Cardimages.md +10 -0
- data/docs/InlineResponse2008.md +8 -0
- data/docs/InlineResponse2009.md +10 -0
- data/docs/InlineResponseDefault.md +8 -0
- data/docs/IssuerInitiatedDigitizationDataApi.md +146 -0
- data/docs/IssuerInitiatedDigitizationDatasAdditionnalData.md +10 -0
- data/docs/IssuerInitiatedDigitizationDatasAdditionnalDataECCPublicCertificates.md +10 -0
- data/docs/Mandate.md +43 -0
- data/docs/MandateApi.md +443 -0
- data/docs/MccRestrictionGroup.md +14 -0
- data/docs/MccRestrictionGroupsApi.md +333 -0
- data/docs/MerchantIdRestrictionGroup.md +14 -0
- data/docs/MerchantIdRestrictionGroupsApi.md +335 -0
- data/docs/Payin.md +55 -0
- data/docs/PayinApi.md +321 -0
- data/docs/Payinrefund.md +18 -0
- data/docs/PayinrefundApi.md +289 -0
- data/docs/Payout.md +30 -0
- data/docs/PayoutApi.md +309 -0
- data/docs/Tav.md +14 -0
- data/docs/Transaction.md +22 -0
- data/docs/TransactionApi.md +157 -0
- data/docs/Transfer.md +26 -0
- data/docs/TransferApi.md +308 -0
- data/docs/Transferrefund.md +20 -0
- data/docs/TransferrefundApi.md +289 -0
- data/docs/User.md +58 -0
- data/docs/UserApi.md +568 -0
- data/docs/Virtualiban.md +18 -0
- data/docs/VirtualibansApi.md +315 -0
- data/docs/Wallet.md +37 -0
- data/docs/WalletApi.md +423 -0
- data/git_push.sh +55 -0
- data/lib/treezor_client.rb +130 -0
- data/lib/treezor_client/api/balance_api.rb +90 -0
- data/lib/treezor_client/api/bankaccount_api.rb +343 -0
- data/lib/treezor_client/api/beneficiaries_api.rb +310 -0
- data/lib/treezor_client/api/business_api.rb +187 -0
- data/lib/treezor_client/api/card_api.rb +1321 -0
- data/lib/treezor_client/api/card_digitalizations_api.rb +213 -0
- data/lib/treezor_client/api/card_reserve_api.rb +216 -0
- data/lib/treezor_client/api/cardtransaction_api.rb +163 -0
- data/lib/treezor_client/api/country_restriction_groups_api.rb +353 -0
- data/lib/treezor_client/api/document_api.rb +404 -0
- data/lib/treezor_client/api/heartbeat_api.rb +83 -0
- data/lib/treezor_client/api/issuer_initiated_digitization_data_api.rb +165 -0
- data/lib/treezor_client/api/mandate_api.rb +543 -0
- data/lib/treezor_client/api/mcc_restriction_groups_api.rb +353 -0
- data/lib/treezor_client/api/merchant_id_restriction_groups_api.rb +356 -0
- data/lib/treezor_client/api/payin_api.rb +389 -0
- data/lib/treezor_client/api/payinrefund_api.rb +333 -0
- data/lib/treezor_client/api/payout_api.rb +363 -0
- data/lib/treezor_client/api/transaction_api.rb +187 -0
- data/lib/treezor_client/api/transfer_api.rb +364 -0
- data/lib/treezor_client/api/transferrefund_api.rb +333 -0
- data/lib/treezor_client/api/user_api.rb +708 -0
- data/lib/treezor_client/api/virtualibans_api.rb +369 -0
- data/lib/treezor_client/api/wallet_api.rb +505 -0
- data/lib/treezor_client/api_client.rb +389 -0
- data/lib/treezor_client/api_error.rb +38 -0
- data/lib/treezor_client/configuration.rb +209 -0
- data/lib/treezor_client/models/balance.rb +234 -0
- data/lib/treezor_client/models/bankaccount.rb +322 -0
- data/lib/treezor_client/models/beneficiaries_sdd_b2b_whitelist.rb +219 -0
- data/lib/treezor_client/models/beneficiary.rb +306 -0
- data/lib/treezor_client/models/body.rb +251 -0
- data/lib/treezor_client/models/body_1.rb +317 -0
- data/lib/treezor_client/models/body_10.rb +278 -0
- data/lib/treezor_client/models/body_2.rb +297 -0
- data/lib/treezor_client/models/body_3.rb +209 -0
- data/lib/treezor_client/models/body_4.rb +209 -0
- data/lib/treezor_client/models/body_5.rb +276 -0
- data/lib/treezor_client/models/body_6.rb +278 -0
- data/lib/treezor_client/models/body_7.rb +276 -0
- data/lib/treezor_client/models/body_8.rb +266 -0
- data/lib/treezor_client/models/body_9.rb +276 -0
- data/lib/treezor_client/models/businesssearchs_businessinformations.rb +362 -0
- data/lib/treezor_client/models/card.rb +793 -0
- data/lib/treezor_client/models/card_digitalization.rb +242 -0
- data/lib/treezor_client/models/card_digitalization_details_from_gps.rb +509 -0
- data/lib/treezor_client/models/document.rb +349 -0
- data/lib/treezor_client/models/error.rb +208 -0
- data/lib/treezor_client/models/inline_response_200.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_1.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_10.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_10_cardtransactions.rb +642 -0
- data/lib/treezor_client/models/inline_response_200_11.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_12.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_13.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_14.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_15.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_16.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_17.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_18.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_19.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_2.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_20.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_21.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_22.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_23.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_24.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_25.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_3.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_4.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_5.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_5_businessinformations.rb +451 -0
- data/lib/treezor_client/models/inline_response_200_5_users.rb +262 -0
- data/lib/treezor_client/models/inline_response_200_6.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_7.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_7_cardimages.rb +225 -0
- data/lib/treezor_client/models/inline_response_200_8.rb +190 -0
- data/lib/treezor_client/models/inline_response_200_9.rb +209 -0
- data/lib/treezor_client/models/inline_response_default.rb +190 -0
- data/lib/treezor_client/models/issuer_initiated_digitization_datas_additionnal_data.rb +208 -0
- data/lib/treezor_client/models/issuer_initiated_digitization_datas_additionnal_data_ecc_public_certificates.rb +209 -0
- data/lib/treezor_client/models/mandate.rb +564 -0
- data/lib/treezor_client/models/mcc_restriction_group.rb +284 -0
- data/lib/treezor_client/models/merchant_id_restriction_group.rb +284 -0
- data/lib/treezor_client/models/payin.rb +646 -0
- data/lib/treezor_client/models/payinrefund.rb +313 -0
- data/lib/treezor_client/models/payout.rb +434 -0
- data/lib/treezor_client/models/tav.rb +246 -0
- data/lib/treezor_client/models/transaction.rb +317 -0
- data/lib/treezor_client/models/transfer.rb +389 -0
- data/lib/treezor_client/models/transferrefund.rb +331 -0
- data/lib/treezor_client/models/user.rb +688 -0
- data/lib/treezor_client/models/virtualiban.rb +278 -0
- data/lib/treezor_client/models/wallet.rb +488 -0
- data/lib/treezor_client/version.rb +15 -0
- data/pkg/treezor_client-1.0.0.gem +0 -0
- data/spec/api/balance_api_spec.rb +52 -0
- data/spec/api/bankaccount_api_spec.rb +109 -0
- data/spec/api/beneficiaries_api_spec.rb +108 -0
- data/spec/api/business_api_spec.rb +79 -0
- data/spec/api/card_api_spec.rb +365 -0
- data/spec/api/card_digitalizations_api_spec.rb +79 -0
- data/spec/api/card_reserve_api_spec.rb +83 -0
- data/spec/api/cardtransaction_api_spec.rb +70 -0
- data/spec/api/country_restriction_groups_api_spec.rb +116 -0
- data/spec/api/document_api_spec.rb +126 -0
- data/spec/api/heartbeat_api_spec.rb +50 -0
- data/spec/api/issuer_initiated_digitization_data_api_spec.rb +72 -0
- data/spec/api/mandate_api_spec.rb +147 -0
- data/spec/api/mcc_restriction_groups_api_spec.rb +116 -0
- data/spec/api/merchant_id_restriction_groups_api_spec.rb +117 -0
- data/spec/api/payin_api_spec.rb +126 -0
- data/spec/api/payinrefund_api_spec.rb +111 -0
- data/spec/api/payout_api_spec.rb +121 -0
- data/spec/api/transaction_api_spec.rb +78 -0
- data/spec/api/transfer_api_spec.rb +120 -0
- data/spec/api/transferrefund_api_spec.rb +111 -0
- data/spec/api/user_api_spec.rb +216 -0
- data/spec/api/virtualibans_api_spec.rb +123 -0
- data/spec/api/wallet_api_spec.rb +158 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/balance_spec.rb +72 -0
- data/spec/models/bankaccount_spec.rb +112 -0
- data/spec/models/beneficiaries_sdd_b2b_whitelist_spec.rb +54 -0
- data/spec/models/beneficiary_spec.rb +108 -0
- data/spec/models/body_10_spec.rb +76 -0
- data/spec/models/body_1_spec.rb +108 -0
- data/spec/models/body_2_spec.rb +102 -0
- data/spec/models/body_3_spec.rb +48 -0
- data/spec/models/body_4_spec.rb +48 -0
- data/spec/models/body_5_spec.rb +70 -0
- data/spec/models/body_6_spec.rb +76 -0
- data/spec/models/body_7_spec.rb +70 -0
- data/spec/models/body_8_spec.rb +70 -0
- data/spec/models/body_9_spec.rb +70 -0
- data/spec/models/body_spec.rb +58 -0
- data/spec/models/businesssearchs_businessinformations_spec.rb +130 -0
- data/spec/models/card_digitalization_details_from_gps_spec.rb +234 -0
- data/spec/models/card_digitalization_spec.rb +78 -0
- data/spec/models/card_spec.rb +424 -0
- data/spec/models/document_spec.rb +130 -0
- data/spec/models/error_spec.rb +54 -0
- data/spec/models/inline_response_200_10_cardtransactions_spec.rb +342 -0
- data/spec/models/inline_response_200_10_spec.rb +42 -0
- data/spec/models/inline_response_200_11_spec.rb +42 -0
- data/spec/models/inline_response_200_12_spec.rb +42 -0
- data/spec/models/inline_response_200_13_spec.rb +42 -0
- data/spec/models/inline_response_200_14_spec.rb +42 -0
- data/spec/models/inline_response_200_15_spec.rb +42 -0
- data/spec/models/inline_response_200_16_spec.rb +42 -0
- data/spec/models/inline_response_200_17_spec.rb +42 -0
- data/spec/models/inline_response_200_18_spec.rb +42 -0
- data/spec/models/inline_response_200_19_spec.rb +42 -0
- data/spec/models/inline_response_200_1_spec.rb +42 -0
- data/spec/models/inline_response_200_20_spec.rb +42 -0
- data/spec/models/inline_response_200_21_spec.rb +42 -0
- data/spec/models/inline_response_200_22_spec.rb +42 -0
- data/spec/models/inline_response_200_23_spec.rb +42 -0
- data/spec/models/inline_response_200_24_spec.rb +42 -0
- data/spec/models/inline_response_200_25_spec.rb +42 -0
- data/spec/models/inline_response_200_2_spec.rb +42 -0
- data/spec/models/inline_response_200_3_spec.rb +42 -0
- data/spec/models/inline_response_200_4_spec.rb +42 -0
- data/spec/models/inline_response_200_5_businessinformations_spec.rb +170 -0
- data/spec/models/inline_response_200_5_spec.rb +42 -0
- data/spec/models/inline_response_200_5_users_spec.rb +70 -0
- data/spec/models/inline_response_200_6_spec.rb +42 -0
- data/spec/models/inline_response_200_7_cardimages_spec.rb +54 -0
- data/spec/models/inline_response_200_7_spec.rb +42 -0
- data/spec/models/inline_response_200_8_spec.rb +42 -0
- data/spec/models/inline_response_200_9_spec.rb +54 -0
- data/spec/models/inline_response_200_spec.rb +42 -0
- data/spec/models/inline_response_default_spec.rb +42 -0
- data/spec/models/issuer_initiated_digitization_datas_additionnal_data_ecc_public_certificates_spec.rb +54 -0
- data/spec/models/issuer_initiated_digitization_datas_additionnal_data_spec.rb +54 -0
- data/spec/models/mandate_spec.rb +264 -0
- data/spec/models/mcc_restriction_group_spec.rb +82 -0
- data/spec/models/merchant_id_restriction_group_spec.rb +82 -0
- data/spec/models/payin_spec.rb +328 -0
- data/spec/models/payinrefund_spec.rb +106 -0
- data/spec/models/payout_spec.rb +182 -0
- data/spec/models/tav_spec.rb +78 -0
- data/spec/models/transaction_spec.rb +126 -0
- data/spec/models/transfer_spec.rb +154 -0
- data/spec/models/transferrefund_spec.rb +118 -0
- data/spec/models/user_spec.rb +350 -0
- data/spec/models/virtualiban_spec.rb +102 -0
- data/spec/models/wallet_spec.rb +220 -0
- data/spec/spec_helper.rb +111 -0
- data/treezor_client.gemspec +47 -0
- metadata +739 -0
@@ -0,0 +1,242 @@
|
|
1
|
+
=begin
|
2
|
+
#Treezor
|
3
|
+
|
4
|
+
#Treezor API. more info [here](https://www.treezor.com).
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.1.1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module TreezorClient
|
16
|
+
|
17
|
+
class CardDigitalization
|
18
|
+
attr_accessor :id
|
19
|
+
|
20
|
+
attr_accessor :external_id
|
21
|
+
|
22
|
+
attr_accessor :card_id
|
23
|
+
|
24
|
+
attr_accessor :details_from_gps
|
25
|
+
|
26
|
+
attr_accessor :status
|
27
|
+
|
28
|
+
attr_accessor :created_date
|
29
|
+
|
30
|
+
attr_accessor :modified_date
|
31
|
+
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'id' => :'id',
|
37
|
+
:'external_id' => :'externalId',
|
38
|
+
:'card_id' => :'cardId',
|
39
|
+
:'details_from_gps' => :'detailsFromGPS',
|
40
|
+
:'status' => :'status',
|
41
|
+
:'created_date' => :'createdDate',
|
42
|
+
:'modified_date' => :'modifiedDate'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# Attribute type mapping.
|
47
|
+
def self.swagger_types
|
48
|
+
{
|
49
|
+
:'id' => :'Integer',
|
50
|
+
:'external_id' => :'Integer',
|
51
|
+
:'card_id' => :'String',
|
52
|
+
:'details_from_gps' => :'CardDigitalizationDetailsFromGPS',
|
53
|
+
:'status' => :'Integer',
|
54
|
+
:'created_date' => :'String',
|
55
|
+
:'modified_date' => :'String'
|
56
|
+
}
|
57
|
+
end
|
58
|
+
|
59
|
+
# Initializes the object
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
61
|
+
def initialize(attributes = {})
|
62
|
+
return unless attributes.is_a?(Hash)
|
63
|
+
|
64
|
+
# convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
66
|
+
|
67
|
+
if attributes.has_key?(:'id')
|
68
|
+
self.id = attributes[:'id']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.has_key?(:'externalId')
|
72
|
+
self.external_id = attributes[:'externalId']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.has_key?(:'cardId')
|
76
|
+
self.card_id = attributes[:'cardId']
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.has_key?(:'detailsFromGPS')
|
80
|
+
self.details_from_gps = attributes[:'detailsFromGPS']
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.has_key?(:'status')
|
84
|
+
self.status = attributes[:'status']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.has_key?(:'createdDate')
|
88
|
+
self.created_date = attributes[:'createdDate']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.has_key?(:'modifiedDate')
|
92
|
+
self.modified_date = attributes[:'modifiedDate']
|
93
|
+
end
|
94
|
+
|
95
|
+
end
|
96
|
+
|
97
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
98
|
+
# @return Array for valid properties with the reasons
|
99
|
+
def list_invalid_properties
|
100
|
+
invalid_properties = Array.new
|
101
|
+
return invalid_properties
|
102
|
+
end
|
103
|
+
|
104
|
+
# Check to see if the all the properties in the model are valid
|
105
|
+
# @return true if the model is valid
|
106
|
+
def valid?
|
107
|
+
return true
|
108
|
+
end
|
109
|
+
|
110
|
+
# Checks equality by comparing each attribute.
|
111
|
+
# @param [Object] Object to be compared
|
112
|
+
def ==(o)
|
113
|
+
return true if self.equal?(o)
|
114
|
+
self.class == o.class &&
|
115
|
+
id == o.id &&
|
116
|
+
external_id == o.external_id &&
|
117
|
+
card_id == o.card_id &&
|
118
|
+
details_from_gps == o.details_from_gps &&
|
119
|
+
status == o.status &&
|
120
|
+
created_date == o.created_date &&
|
121
|
+
modified_date == o.modified_date
|
122
|
+
end
|
123
|
+
|
124
|
+
# @see the `==` method
|
125
|
+
# @param [Object] Object to be compared
|
126
|
+
def eql?(o)
|
127
|
+
self == o
|
128
|
+
end
|
129
|
+
|
130
|
+
# Calculates hash code according to all attributes.
|
131
|
+
# @return [Fixnum] Hash code
|
132
|
+
def hash
|
133
|
+
[id, external_id, card_id, details_from_gps, status, created_date, modified_date].hash
|
134
|
+
end
|
135
|
+
|
136
|
+
# Builds the object from hash
|
137
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
138
|
+
# @return [Object] Returns the model itself
|
139
|
+
def build_from_hash(attributes)
|
140
|
+
return nil unless attributes.is_a?(Hash)
|
141
|
+
self.class.swagger_types.each_pair do |key, type|
|
142
|
+
if type =~ /\AArray<(.*)>/i
|
143
|
+
# check to ensure the input is an array given that the the attribute
|
144
|
+
# is documented as an array but the input is not
|
145
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
146
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
147
|
+
end
|
148
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
149
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
150
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
151
|
+
end
|
152
|
+
|
153
|
+
self
|
154
|
+
end
|
155
|
+
|
156
|
+
# Deserializes the data based on type
|
157
|
+
# @param string type Data type
|
158
|
+
# @param string value Value to be deserialized
|
159
|
+
# @return [Object] Deserialized data
|
160
|
+
def _deserialize(type, value)
|
161
|
+
case type.to_sym
|
162
|
+
when :DateTime
|
163
|
+
DateTime.parse(value)
|
164
|
+
when :Date
|
165
|
+
Date.parse(value)
|
166
|
+
when :String
|
167
|
+
value.to_s
|
168
|
+
when :Integer
|
169
|
+
value.to_i
|
170
|
+
when :Float
|
171
|
+
value.to_f
|
172
|
+
when :BOOLEAN
|
173
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
174
|
+
true
|
175
|
+
else
|
176
|
+
false
|
177
|
+
end
|
178
|
+
when :Object
|
179
|
+
# generic object (usually a Hash), return directly
|
180
|
+
value
|
181
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
182
|
+
inner_type = Regexp.last_match[:inner_type]
|
183
|
+
value.map { |v| _deserialize(inner_type, v) }
|
184
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
185
|
+
k_type = Regexp.last_match[:k_type]
|
186
|
+
v_type = Regexp.last_match[:v_type]
|
187
|
+
{}.tap do |hash|
|
188
|
+
value.each do |k, v|
|
189
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
190
|
+
end
|
191
|
+
end
|
192
|
+
else # model
|
193
|
+
temp_model = TreezorClient.const_get(type).new
|
194
|
+
temp_model.build_from_hash(value)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
# Returns the string representation of the object
|
199
|
+
# @return [String] String presentation of the object
|
200
|
+
def to_s
|
201
|
+
to_hash.to_s
|
202
|
+
end
|
203
|
+
|
204
|
+
# to_body is an alias to to_hash (backward compatibility)
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
206
|
+
def to_body
|
207
|
+
to_hash
|
208
|
+
end
|
209
|
+
|
210
|
+
# Returns the object in the form of hash
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
212
|
+
def to_hash
|
213
|
+
hash = {}
|
214
|
+
self.class.attribute_map.each_pair do |attr, param|
|
215
|
+
value = self.send(attr)
|
216
|
+
next if value.nil?
|
217
|
+
hash[param] = _to_hash(value)
|
218
|
+
end
|
219
|
+
hash
|
220
|
+
end
|
221
|
+
|
222
|
+
# Outputs non-array value in the form of hash
|
223
|
+
# For object, use to_hash. Otherwise, just return the value
|
224
|
+
# @param [Object] value Any valid value
|
225
|
+
# @return [Hash] Returns the value in the form of hash
|
226
|
+
def _to_hash(value)
|
227
|
+
if value.is_a?(Array)
|
228
|
+
value.compact.map{ |v| _to_hash(v) }
|
229
|
+
elsif value.is_a?(Hash)
|
230
|
+
{}.tap do |hash|
|
231
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
232
|
+
end
|
233
|
+
elsif value.respond_to? :to_hash
|
234
|
+
value.to_hash
|
235
|
+
else
|
236
|
+
value
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
end
|
241
|
+
|
242
|
+
end
|
@@ -0,0 +1,509 @@
|
|
1
|
+
=begin
|
2
|
+
#Treezor
|
3
|
+
|
4
|
+
#Treezor API. more info [here](https://www.treezor.com).
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.1.1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module TreezorClient
|
16
|
+
|
17
|
+
class CardDigitalizationDetailsFromGPS
|
18
|
+
# Creator Name
|
19
|
+
attr_accessor :creator
|
20
|
+
|
21
|
+
# Digitiser's (i.e. who created this payment_token) unique ref to the linkedcard
|
22
|
+
attr_accessor :creator_pan_ref
|
23
|
+
|
24
|
+
# See internal documentation
|
25
|
+
attr_accessor :creator_token_ref
|
26
|
+
|
27
|
+
# PAN for the Card linked to the MDES card
|
28
|
+
attr_accessor :pant
|
29
|
+
|
30
|
+
# PaymentToken DPAN for MDES Card
|
31
|
+
attr_accessor :payment_token
|
32
|
+
|
33
|
+
# Expiry date of payment token
|
34
|
+
attr_accessor :payment_token_exp_date
|
35
|
+
|
36
|
+
# PaymentToken Id for MDES card
|
37
|
+
attr_accessor :payment_token_id
|
38
|
+
|
39
|
+
# See Appendix LL
|
40
|
+
attr_accessor :payment_token_type
|
41
|
+
|
42
|
+
# This is the GPS set status of the token for transacting
|
43
|
+
attr_accessor :gps_status
|
44
|
+
|
45
|
+
# date/time yyyy-mm-dd hh:mm:ss when tokenise
|
46
|
+
attr_accessor :tokenised_datetime
|
47
|
+
|
48
|
+
# Has this Payment Token been digitised/personalised ? U=unknown 0=not-tokenised 1=tokenised
|
49
|
+
attr_accessor :tokenised_status
|
50
|
+
|
51
|
+
# Status of token for transacting. After tokenisation, this is not changed by GPS, but is received from token creator who maintains this.
|
52
|
+
attr_accessor :txn_status
|
53
|
+
|
54
|
+
# This says who/which-system was the last to change txn_status
|
55
|
+
attr_accessor :txn_status_actor
|
56
|
+
|
57
|
+
# Date/time that txn_status was last changed
|
58
|
+
attr_accessor :txn_status_change_datetime
|
59
|
+
|
60
|
+
# Version of the terms and conditions which were accepted by the cardholder.(As received from network)
|
61
|
+
attr_accessor :accepted_terms_version
|
62
|
+
|
63
|
+
# date/time yyyy-mm-dd hh:mm:ss when token authorisation (to digitise/personalise) request last responded to
|
64
|
+
attr_accessor :auth_datetime
|
65
|
+
|
66
|
+
# Final tokenisation decision - Values U=unknown (not tested) 0=Approve digitisation request A=Approve digitisation request (with additional authentication)
|
67
|
+
attr_accessor :auth_decision
|
68
|
+
|
69
|
+
# who approved tokenisation
|
70
|
+
attr_accessor :auth_rspsrc
|
71
|
+
|
72
|
+
# Status of the authorisation given to Digitise/personalise this Payment Token note not related to transaction authorisation Values U=unknown (not tested) 0=Approve digitisation request A=Approve digitisation request (with additional authentication) 1=decline digitisation request
|
73
|
+
attr_accessor :auth_status
|
74
|
+
|
75
|
+
# Unique (per payment_token_issuer_id) reference which all digitisation messageswill use, to link them together
|
76
|
+
attr_accessor :digitisation_ref
|
77
|
+
|
78
|
+
# Activation code to be sent directly to cardholder to activate this Payment Token
|
79
|
+
attr_accessor :activation_code
|
80
|
+
|
81
|
+
# Date/time yyyy-mm-dd hh:mm:ss when activation code expires, in GMT (UTC)
|
82
|
+
attr_accessor :activation_code_expdate
|
83
|
+
|
84
|
+
# Which Activation Method wa used 0 - None 1 - SMS to mobile phone 2 - Email 3 - Cardholder to call automated call centre 4 - Cardholder to call human call centre 5 - Website 6 - Mobile application 7 - Voice phone call
|
85
|
+
attr_accessor :activation_method
|
86
|
+
|
87
|
+
# unique ID of the secure element in the device
|
88
|
+
attr_accessor :device_id
|
89
|
+
|
90
|
+
# IP address (full or last part only) of the device at digitisation time
|
91
|
+
attr_accessor :device_ip
|
92
|
+
|
93
|
+
# Device language code as ISO 639-1 (2 letter lowercase) code
|
94
|
+
attr_accessor :device_lang2
|
95
|
+
|
96
|
+
# Device Latitude in degrees at time of digitisation request -180 to +180 +ve=East, -ve=West (of Greenwich) eg 176.2 => East 176.2 degrees,- 98.5 => West 98.5 degrees
|
97
|
+
attr_accessor :device_latitude
|
98
|
+
|
99
|
+
# Longitude as above
|
100
|
+
attr_accessor :device_longitude
|
101
|
+
|
102
|
+
# name cardholder assigned to device in Wallet
|
103
|
+
attr_accessor :device_name
|
104
|
+
|
105
|
+
# Device telephone number (full or last part only)
|
106
|
+
attr_accessor :device_tel_num
|
107
|
+
|
108
|
+
# Not described
|
109
|
+
attr_accessor :device_type
|
110
|
+
|
111
|
+
# Cardholder firstname as provided by Wallet Provider during digitisation. May not be provided, or just initial.
|
112
|
+
attr_accessor :first_name
|
113
|
+
|
114
|
+
# Cardholder last name as provided by Wallet Provider during digitisation. May not be provided, or just initial.
|
115
|
+
attr_accessor :last_name
|
116
|
+
|
117
|
+
|
118
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
119
|
+
def self.attribute_map
|
120
|
+
{
|
121
|
+
:'creator' => :'Creator',
|
122
|
+
:'creator_pan_ref' => :'Creator_PAN_Ref',
|
123
|
+
:'creator_token_ref' => :'Creator_Token_Ref',
|
124
|
+
:'pant' => :'PANT',
|
125
|
+
:'payment_token' => :'Payment_Token',
|
126
|
+
:'payment_token_exp_date' => :'Payment_Token_ExpDate',
|
127
|
+
:'payment_token_id' => :'Payment_Token_ID',
|
128
|
+
:'payment_token_type' => :'Payment_Token_Type',
|
129
|
+
:'gps_status' => :'GPS_Status',
|
130
|
+
:'tokenised_datetime' => :'Tokenised_Datetime',
|
131
|
+
:'tokenised_status' => :'Tokenised_Status',
|
132
|
+
:'txn_status' => :'Txn_Status',
|
133
|
+
:'txn_status_actor' => :'Txn_Status_Actor',
|
134
|
+
:'txn_status_change_datetime' => :'Txn_Status_Change_Datetime',
|
135
|
+
:'accepted_terms_version' => :'Accepted_Terms_Version',
|
136
|
+
:'auth_datetime' => :'Auth_Datetime',
|
137
|
+
:'auth_decision' => :'Auth_Decision',
|
138
|
+
:'auth_rspsrc' => :'Auth_RSPSRC',
|
139
|
+
:'auth_status' => :'Auth_Status',
|
140
|
+
:'digitisation_ref' => :'Digitisation_Ref',
|
141
|
+
:'activation_code' => :'Activation_Code',
|
142
|
+
:'activation_code_expdate' => :'Activation_Code_Expdate',
|
143
|
+
:'activation_method' => :'Activation_Method',
|
144
|
+
:'device_id' => :'Device_ID',
|
145
|
+
:'device_ip' => :'Device_IP',
|
146
|
+
:'device_lang2' => :'Device_Lang2',
|
147
|
+
:'device_latitude' => :'Device_Latitude',
|
148
|
+
:'device_longitude' => :'Device_Longitude',
|
149
|
+
:'device_name' => :'Device_Name',
|
150
|
+
:'device_tel_num' => :'Device_Tel_Num',
|
151
|
+
:'device_type' => :'Device_Type',
|
152
|
+
:'first_name' => :'FirstName',
|
153
|
+
:'last_name' => :'LastName'
|
154
|
+
}
|
155
|
+
end
|
156
|
+
|
157
|
+
# Attribute type mapping.
|
158
|
+
def self.swagger_types
|
159
|
+
{
|
160
|
+
:'creator' => :'String',
|
161
|
+
:'creator_pan_ref' => :'String',
|
162
|
+
:'creator_token_ref' => :'String',
|
163
|
+
:'pant' => :'String',
|
164
|
+
:'payment_token' => :'String',
|
165
|
+
:'payment_token_exp_date' => :'String',
|
166
|
+
:'payment_token_id' => :'String',
|
167
|
+
:'payment_token_type' => :'String',
|
168
|
+
:'gps_status' => :'String',
|
169
|
+
:'tokenised_datetime' => :'String',
|
170
|
+
:'tokenised_status' => :'String',
|
171
|
+
:'txn_status' => :'String',
|
172
|
+
:'txn_status_actor' => :'String',
|
173
|
+
:'txn_status_change_datetime' => :'String',
|
174
|
+
:'accepted_terms_version' => :'String',
|
175
|
+
:'auth_datetime' => :'String',
|
176
|
+
:'auth_decision' => :'String',
|
177
|
+
:'auth_rspsrc' => :'String',
|
178
|
+
:'auth_status' => :'String',
|
179
|
+
:'digitisation_ref' => :'String',
|
180
|
+
:'activation_code' => :'String',
|
181
|
+
:'activation_code_expdate' => :'String',
|
182
|
+
:'activation_method' => :'String',
|
183
|
+
:'device_id' => :'String',
|
184
|
+
:'device_ip' => :'String',
|
185
|
+
:'device_lang2' => :'String',
|
186
|
+
:'device_latitude' => :'String',
|
187
|
+
:'device_longitude' => :'String',
|
188
|
+
:'device_name' => :'String',
|
189
|
+
:'device_tel_num' => :'String',
|
190
|
+
:'device_type' => :'String',
|
191
|
+
:'first_name' => :'String',
|
192
|
+
:'last_name' => :'String'
|
193
|
+
}
|
194
|
+
end
|
195
|
+
|
196
|
+
# Initializes the object
|
197
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
198
|
+
def initialize(attributes = {})
|
199
|
+
return unless attributes.is_a?(Hash)
|
200
|
+
|
201
|
+
# convert string to symbol for hash key
|
202
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
203
|
+
|
204
|
+
if attributes.has_key?(:'Creator')
|
205
|
+
self.creator = attributes[:'Creator']
|
206
|
+
end
|
207
|
+
|
208
|
+
if attributes.has_key?(:'Creator_PAN_Ref')
|
209
|
+
self.creator_pan_ref = attributes[:'Creator_PAN_Ref']
|
210
|
+
end
|
211
|
+
|
212
|
+
if attributes.has_key?(:'Creator_Token_Ref')
|
213
|
+
self.creator_token_ref = attributes[:'Creator_Token_Ref']
|
214
|
+
end
|
215
|
+
|
216
|
+
if attributes.has_key?(:'PANT')
|
217
|
+
self.pant = attributes[:'PANT']
|
218
|
+
end
|
219
|
+
|
220
|
+
if attributes.has_key?(:'Payment_Token')
|
221
|
+
self.payment_token = attributes[:'Payment_Token']
|
222
|
+
end
|
223
|
+
|
224
|
+
if attributes.has_key?(:'Payment_Token_ExpDate')
|
225
|
+
self.payment_token_exp_date = attributes[:'Payment_Token_ExpDate']
|
226
|
+
end
|
227
|
+
|
228
|
+
if attributes.has_key?(:'Payment_Token_ID')
|
229
|
+
self.payment_token_id = attributes[:'Payment_Token_ID']
|
230
|
+
end
|
231
|
+
|
232
|
+
if attributes.has_key?(:'Payment_Token_Type')
|
233
|
+
self.payment_token_type = attributes[:'Payment_Token_Type']
|
234
|
+
end
|
235
|
+
|
236
|
+
if attributes.has_key?(:'GPS_Status')
|
237
|
+
self.gps_status = attributes[:'GPS_Status']
|
238
|
+
end
|
239
|
+
|
240
|
+
if attributes.has_key?(:'Tokenised_Datetime')
|
241
|
+
self.tokenised_datetime = attributes[:'Tokenised_Datetime']
|
242
|
+
end
|
243
|
+
|
244
|
+
if attributes.has_key?(:'Tokenised_Status')
|
245
|
+
self.tokenised_status = attributes[:'Tokenised_Status']
|
246
|
+
end
|
247
|
+
|
248
|
+
if attributes.has_key?(:'Txn_Status')
|
249
|
+
self.txn_status = attributes[:'Txn_Status']
|
250
|
+
end
|
251
|
+
|
252
|
+
if attributes.has_key?(:'Txn_Status_Actor')
|
253
|
+
self.txn_status_actor = attributes[:'Txn_Status_Actor']
|
254
|
+
end
|
255
|
+
|
256
|
+
if attributes.has_key?(:'Txn_Status_Change_Datetime')
|
257
|
+
self.txn_status_change_datetime = attributes[:'Txn_Status_Change_Datetime']
|
258
|
+
end
|
259
|
+
|
260
|
+
if attributes.has_key?(:'Accepted_Terms_Version')
|
261
|
+
self.accepted_terms_version = attributes[:'Accepted_Terms_Version']
|
262
|
+
end
|
263
|
+
|
264
|
+
if attributes.has_key?(:'Auth_Datetime')
|
265
|
+
self.auth_datetime = attributes[:'Auth_Datetime']
|
266
|
+
end
|
267
|
+
|
268
|
+
if attributes.has_key?(:'Auth_Decision')
|
269
|
+
self.auth_decision = attributes[:'Auth_Decision']
|
270
|
+
end
|
271
|
+
|
272
|
+
if attributes.has_key?(:'Auth_RSPSRC')
|
273
|
+
self.auth_rspsrc = attributes[:'Auth_RSPSRC']
|
274
|
+
end
|
275
|
+
|
276
|
+
if attributes.has_key?(:'Auth_Status')
|
277
|
+
self.auth_status = attributes[:'Auth_Status']
|
278
|
+
end
|
279
|
+
|
280
|
+
if attributes.has_key?(:'Digitisation_Ref')
|
281
|
+
self.digitisation_ref = attributes[:'Digitisation_Ref']
|
282
|
+
end
|
283
|
+
|
284
|
+
if attributes.has_key?(:'Activation_Code')
|
285
|
+
self.activation_code = attributes[:'Activation_Code']
|
286
|
+
end
|
287
|
+
|
288
|
+
if attributes.has_key?(:'Activation_Code_Expdate')
|
289
|
+
self.activation_code_expdate = attributes[:'Activation_Code_Expdate']
|
290
|
+
end
|
291
|
+
|
292
|
+
if attributes.has_key?(:'Activation_Method')
|
293
|
+
self.activation_method = attributes[:'Activation_Method']
|
294
|
+
end
|
295
|
+
|
296
|
+
if attributes.has_key?(:'Device_ID')
|
297
|
+
self.device_id = attributes[:'Device_ID']
|
298
|
+
end
|
299
|
+
|
300
|
+
if attributes.has_key?(:'Device_IP')
|
301
|
+
self.device_ip = attributes[:'Device_IP']
|
302
|
+
end
|
303
|
+
|
304
|
+
if attributes.has_key?(:'Device_Lang2')
|
305
|
+
self.device_lang2 = attributes[:'Device_Lang2']
|
306
|
+
end
|
307
|
+
|
308
|
+
if attributes.has_key?(:'Device_Latitude')
|
309
|
+
self.device_latitude = attributes[:'Device_Latitude']
|
310
|
+
end
|
311
|
+
|
312
|
+
if attributes.has_key?(:'Device_Longitude')
|
313
|
+
self.device_longitude = attributes[:'Device_Longitude']
|
314
|
+
end
|
315
|
+
|
316
|
+
if attributes.has_key?(:'Device_Name')
|
317
|
+
self.device_name = attributes[:'Device_Name']
|
318
|
+
end
|
319
|
+
|
320
|
+
if attributes.has_key?(:'Device_Tel_Num')
|
321
|
+
self.device_tel_num = attributes[:'Device_Tel_Num']
|
322
|
+
end
|
323
|
+
|
324
|
+
if attributes.has_key?(:'Device_Type')
|
325
|
+
self.device_type = attributes[:'Device_Type']
|
326
|
+
end
|
327
|
+
|
328
|
+
if attributes.has_key?(:'FirstName')
|
329
|
+
self.first_name = attributes[:'FirstName']
|
330
|
+
end
|
331
|
+
|
332
|
+
if attributes.has_key?(:'LastName')
|
333
|
+
self.last_name = attributes[:'LastName']
|
334
|
+
end
|
335
|
+
|
336
|
+
end
|
337
|
+
|
338
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
339
|
+
# @return Array for valid properties with the reasons
|
340
|
+
def list_invalid_properties
|
341
|
+
invalid_properties = Array.new
|
342
|
+
return invalid_properties
|
343
|
+
end
|
344
|
+
|
345
|
+
# Check to see if the all the properties in the model are valid
|
346
|
+
# @return true if the model is valid
|
347
|
+
def valid?
|
348
|
+
return true
|
349
|
+
end
|
350
|
+
|
351
|
+
# Checks equality by comparing each attribute.
|
352
|
+
# @param [Object] Object to be compared
|
353
|
+
def ==(o)
|
354
|
+
return true if self.equal?(o)
|
355
|
+
self.class == o.class &&
|
356
|
+
creator == o.creator &&
|
357
|
+
creator_pan_ref == o.creator_pan_ref &&
|
358
|
+
creator_token_ref == o.creator_token_ref &&
|
359
|
+
pant == o.pant &&
|
360
|
+
payment_token == o.payment_token &&
|
361
|
+
payment_token_exp_date == o.payment_token_exp_date &&
|
362
|
+
payment_token_id == o.payment_token_id &&
|
363
|
+
payment_token_type == o.payment_token_type &&
|
364
|
+
gps_status == o.gps_status &&
|
365
|
+
tokenised_datetime == o.tokenised_datetime &&
|
366
|
+
tokenised_status == o.tokenised_status &&
|
367
|
+
txn_status == o.txn_status &&
|
368
|
+
txn_status_actor == o.txn_status_actor &&
|
369
|
+
txn_status_change_datetime == o.txn_status_change_datetime &&
|
370
|
+
accepted_terms_version == o.accepted_terms_version &&
|
371
|
+
auth_datetime == o.auth_datetime &&
|
372
|
+
auth_decision == o.auth_decision &&
|
373
|
+
auth_rspsrc == o.auth_rspsrc &&
|
374
|
+
auth_status == o.auth_status &&
|
375
|
+
digitisation_ref == o.digitisation_ref &&
|
376
|
+
activation_code == o.activation_code &&
|
377
|
+
activation_code_expdate == o.activation_code_expdate &&
|
378
|
+
activation_method == o.activation_method &&
|
379
|
+
device_id == o.device_id &&
|
380
|
+
device_ip == o.device_ip &&
|
381
|
+
device_lang2 == o.device_lang2 &&
|
382
|
+
device_latitude == o.device_latitude &&
|
383
|
+
device_longitude == o.device_longitude &&
|
384
|
+
device_name == o.device_name &&
|
385
|
+
device_tel_num == o.device_tel_num &&
|
386
|
+
device_type == o.device_type &&
|
387
|
+
first_name == o.first_name &&
|
388
|
+
last_name == o.last_name
|
389
|
+
end
|
390
|
+
|
391
|
+
# @see the `==` method
|
392
|
+
# @param [Object] Object to be compared
|
393
|
+
def eql?(o)
|
394
|
+
self == o
|
395
|
+
end
|
396
|
+
|
397
|
+
# Calculates hash code according to all attributes.
|
398
|
+
# @return [Fixnum] Hash code
|
399
|
+
def hash
|
400
|
+
[creator, creator_pan_ref, creator_token_ref, pant, payment_token, payment_token_exp_date, payment_token_id, payment_token_type, gps_status, tokenised_datetime, tokenised_status, txn_status, txn_status_actor, txn_status_change_datetime, accepted_terms_version, auth_datetime, auth_decision, auth_rspsrc, auth_status, digitisation_ref, activation_code, activation_code_expdate, activation_method, device_id, device_ip, device_lang2, device_latitude, device_longitude, device_name, device_tel_num, device_type, first_name, last_name].hash
|
401
|
+
end
|
402
|
+
|
403
|
+
# Builds the object from hash
|
404
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
405
|
+
# @return [Object] Returns the model itself
|
406
|
+
def build_from_hash(attributes)
|
407
|
+
return nil unless attributes.is_a?(Hash)
|
408
|
+
self.class.swagger_types.each_pair do |key, type|
|
409
|
+
if type =~ /\AArray<(.*)>/i
|
410
|
+
# check to ensure the input is an array given that the the attribute
|
411
|
+
# is documented as an array but the input is not
|
412
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
413
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
414
|
+
end
|
415
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
416
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
417
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
418
|
+
end
|
419
|
+
|
420
|
+
self
|
421
|
+
end
|
422
|
+
|
423
|
+
# Deserializes the data based on type
|
424
|
+
# @param string type Data type
|
425
|
+
# @param string value Value to be deserialized
|
426
|
+
# @return [Object] Deserialized data
|
427
|
+
def _deserialize(type, value)
|
428
|
+
case type.to_sym
|
429
|
+
when :DateTime
|
430
|
+
DateTime.parse(value)
|
431
|
+
when :Date
|
432
|
+
Date.parse(value)
|
433
|
+
when :String
|
434
|
+
value.to_s
|
435
|
+
when :Integer
|
436
|
+
value.to_i
|
437
|
+
when :Float
|
438
|
+
value.to_f
|
439
|
+
when :BOOLEAN
|
440
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
441
|
+
true
|
442
|
+
else
|
443
|
+
false
|
444
|
+
end
|
445
|
+
when :Object
|
446
|
+
# generic object (usually a Hash), return directly
|
447
|
+
value
|
448
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
449
|
+
inner_type = Regexp.last_match[:inner_type]
|
450
|
+
value.map { |v| _deserialize(inner_type, v) }
|
451
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
452
|
+
k_type = Regexp.last_match[:k_type]
|
453
|
+
v_type = Regexp.last_match[:v_type]
|
454
|
+
{}.tap do |hash|
|
455
|
+
value.each do |k, v|
|
456
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
457
|
+
end
|
458
|
+
end
|
459
|
+
else # model
|
460
|
+
temp_model = TreezorClient.const_get(type).new
|
461
|
+
temp_model.build_from_hash(value)
|
462
|
+
end
|
463
|
+
end
|
464
|
+
|
465
|
+
# Returns the string representation of the object
|
466
|
+
# @return [String] String presentation of the object
|
467
|
+
def to_s
|
468
|
+
to_hash.to_s
|
469
|
+
end
|
470
|
+
|
471
|
+
# to_body is an alias to to_hash (backward compatibility)
|
472
|
+
# @return [Hash] Returns the object in the form of hash
|
473
|
+
def to_body
|
474
|
+
to_hash
|
475
|
+
end
|
476
|
+
|
477
|
+
# Returns the object in the form of hash
|
478
|
+
# @return [Hash] Returns the object in the form of hash
|
479
|
+
def to_hash
|
480
|
+
hash = {}
|
481
|
+
self.class.attribute_map.each_pair do |attr, param|
|
482
|
+
value = self.send(attr)
|
483
|
+
next if value.nil?
|
484
|
+
hash[param] = _to_hash(value)
|
485
|
+
end
|
486
|
+
hash
|
487
|
+
end
|
488
|
+
|
489
|
+
# Outputs non-array value in the form of hash
|
490
|
+
# For object, use to_hash. Otherwise, just return the value
|
491
|
+
# @param [Object] value Any valid value
|
492
|
+
# @return [Hash] Returns the value in the form of hash
|
493
|
+
def _to_hash(value)
|
494
|
+
if value.is_a?(Array)
|
495
|
+
value.compact.map{ |v| _to_hash(v) }
|
496
|
+
elsif value.is_a?(Hash)
|
497
|
+
{}.tap do |hash|
|
498
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
499
|
+
end
|
500
|
+
elsif value.respond_to? :to_hash
|
501
|
+
value.to_hash
|
502
|
+
else
|
503
|
+
value
|
504
|
+
end
|
505
|
+
end
|
506
|
+
|
507
|
+
end
|
508
|
+
|
509
|
+
end
|