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,362 @@
|
|
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 BusinesssearchsBusinessinformations
|
18
|
+
# Business commercial name.
|
19
|
+
attr_accessor :legal_name
|
20
|
+
|
21
|
+
# Business phone number.
|
22
|
+
attr_accessor :phone
|
23
|
+
|
24
|
+
# Business VAT number.
|
25
|
+
attr_accessor :legal_tva_number
|
26
|
+
|
27
|
+
# Business registration number.
|
28
|
+
attr_accessor :legal_registration_number
|
29
|
+
|
30
|
+
# | Code | Description | | ---- | ----------- | | D | Deleted | | N | Company non diffusible (Insee) | | I | Inactive (Insee) | | A | Economically active | | C | Closed | | T | Transfered | | S | Economically stopped (Insee) | | L | Liquidation | | O | Dormant company |
|
31
|
+
attr_accessor :status
|
32
|
+
|
33
|
+
# | Code | Description | | ---- | ---- | | 0 | Secondary establishment | | 1 | Headquarter |
|
34
|
+
attr_accessor :office_type
|
35
|
+
|
36
|
+
# Business SAFE number.
|
37
|
+
attr_accessor :safe_number
|
38
|
+
|
39
|
+
# Business sector. Code NAF in France.
|
40
|
+
attr_accessor :activity_type
|
41
|
+
|
42
|
+
# Business external id.
|
43
|
+
attr_accessor :external_id
|
44
|
+
|
45
|
+
# Business' street.
|
46
|
+
attr_accessor :address1
|
47
|
+
|
48
|
+
# Business' postal code.
|
49
|
+
attr_accessor :postcode
|
50
|
+
|
51
|
+
# Business' city.
|
52
|
+
attr_accessor :city
|
53
|
+
|
54
|
+
# Business' province.
|
55
|
+
attr_accessor :state
|
56
|
+
|
57
|
+
# Business' country.
|
58
|
+
attr_accessor :country
|
59
|
+
|
60
|
+
# Business trade name
|
61
|
+
attr_accessor :tradename
|
62
|
+
|
63
|
+
class EnumAttributeValidator
|
64
|
+
attr_reader :datatype
|
65
|
+
attr_reader :allowable_values
|
66
|
+
|
67
|
+
def initialize(datatype, allowable_values)
|
68
|
+
@allowable_values = allowable_values.map do |value|
|
69
|
+
case datatype.to_s
|
70
|
+
when /Integer/i
|
71
|
+
value.to_i
|
72
|
+
when /Float/i
|
73
|
+
value.to_f
|
74
|
+
else
|
75
|
+
value
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
def valid?(value)
|
81
|
+
!value || allowable_values.include?(value)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
86
|
+
def self.attribute_map
|
87
|
+
{
|
88
|
+
:'legal_name' => :'legalName',
|
89
|
+
:'phone' => :'phone',
|
90
|
+
:'legal_tva_number' => :'legalTvaNumber',
|
91
|
+
:'legal_registration_number' => :'legalRegistrationNumber',
|
92
|
+
:'status' => :'status',
|
93
|
+
:'office_type' => :'officeType',
|
94
|
+
:'safe_number' => :'safeNumber',
|
95
|
+
:'activity_type' => :'activityType',
|
96
|
+
:'external_id' => :'externalId',
|
97
|
+
:'address1' => :'address1',
|
98
|
+
:'postcode' => :'postcode',
|
99
|
+
:'city' => :'city',
|
100
|
+
:'state' => :'state',
|
101
|
+
:'country' => :'country',
|
102
|
+
:'tradename' => :'tradename'
|
103
|
+
}
|
104
|
+
end
|
105
|
+
|
106
|
+
# Attribute type mapping.
|
107
|
+
def self.swagger_types
|
108
|
+
{
|
109
|
+
:'legal_name' => :'String',
|
110
|
+
:'phone' => :'String',
|
111
|
+
:'legal_tva_number' => :'String',
|
112
|
+
:'legal_registration_number' => :'String',
|
113
|
+
:'status' => :'String',
|
114
|
+
:'office_type' => :'Integer',
|
115
|
+
:'safe_number' => :'String',
|
116
|
+
:'activity_type' => :'String',
|
117
|
+
:'external_id' => :'String',
|
118
|
+
:'address1' => :'String',
|
119
|
+
:'postcode' => :'String',
|
120
|
+
:'city' => :'String',
|
121
|
+
:'state' => :'String',
|
122
|
+
:'country' => :'String',
|
123
|
+
:'tradename' => :'String'
|
124
|
+
}
|
125
|
+
end
|
126
|
+
|
127
|
+
# Initializes the object
|
128
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
129
|
+
def initialize(attributes = {})
|
130
|
+
return unless attributes.is_a?(Hash)
|
131
|
+
|
132
|
+
# convert string to symbol for hash key
|
133
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
134
|
+
|
135
|
+
if attributes.has_key?(:'legalName')
|
136
|
+
self.legal_name = attributes[:'legalName']
|
137
|
+
end
|
138
|
+
|
139
|
+
if attributes.has_key?(:'phone')
|
140
|
+
self.phone = attributes[:'phone']
|
141
|
+
end
|
142
|
+
|
143
|
+
if attributes.has_key?(:'legalTvaNumber')
|
144
|
+
self.legal_tva_number = attributes[:'legalTvaNumber']
|
145
|
+
end
|
146
|
+
|
147
|
+
if attributes.has_key?(:'legalRegistrationNumber')
|
148
|
+
self.legal_registration_number = attributes[:'legalRegistrationNumber']
|
149
|
+
end
|
150
|
+
|
151
|
+
if attributes.has_key?(:'status')
|
152
|
+
self.status = attributes[:'status']
|
153
|
+
end
|
154
|
+
|
155
|
+
if attributes.has_key?(:'officeType')
|
156
|
+
self.office_type = attributes[:'officeType']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.has_key?(:'safeNumber')
|
160
|
+
self.safe_number = attributes[:'safeNumber']
|
161
|
+
end
|
162
|
+
|
163
|
+
if attributes.has_key?(:'activityType')
|
164
|
+
self.activity_type = attributes[:'activityType']
|
165
|
+
end
|
166
|
+
|
167
|
+
if attributes.has_key?(:'externalId')
|
168
|
+
self.external_id = attributes[:'externalId']
|
169
|
+
end
|
170
|
+
|
171
|
+
if attributes.has_key?(:'address1')
|
172
|
+
self.address1 = attributes[:'address1']
|
173
|
+
end
|
174
|
+
|
175
|
+
if attributes.has_key?(:'postcode')
|
176
|
+
self.postcode = attributes[:'postcode']
|
177
|
+
end
|
178
|
+
|
179
|
+
if attributes.has_key?(:'city')
|
180
|
+
self.city = attributes[:'city']
|
181
|
+
end
|
182
|
+
|
183
|
+
if attributes.has_key?(:'state')
|
184
|
+
self.state = attributes[:'state']
|
185
|
+
end
|
186
|
+
|
187
|
+
if attributes.has_key?(:'country')
|
188
|
+
self.country = attributes[:'country']
|
189
|
+
end
|
190
|
+
|
191
|
+
if attributes.has_key?(:'tradename')
|
192
|
+
self.tradename = attributes[:'tradename']
|
193
|
+
end
|
194
|
+
|
195
|
+
end
|
196
|
+
|
197
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
198
|
+
# @return Array for valid properties with the reasons
|
199
|
+
def list_invalid_properties
|
200
|
+
invalid_properties = Array.new
|
201
|
+
return invalid_properties
|
202
|
+
end
|
203
|
+
|
204
|
+
# Check to see if the all the properties in the model are valid
|
205
|
+
# @return true if the model is valid
|
206
|
+
def valid?
|
207
|
+
status_validator = EnumAttributeValidator.new('String', ["D", "N", "I", "A", "C", "T", "S", "L", "O"])
|
208
|
+
return false unless status_validator.valid?(@status)
|
209
|
+
return true
|
210
|
+
end
|
211
|
+
|
212
|
+
# Custom attribute writer method checking allowed values (enum).
|
213
|
+
# @param [Object] status Object to be assigned
|
214
|
+
def status=(status)
|
215
|
+
validator = EnumAttributeValidator.new('String', ["D", "N", "I", "A", "C", "T", "S", "L", "O"])
|
216
|
+
unless validator.valid?(status)
|
217
|
+
fail ArgumentError, "invalid value for 'status', must be one of #{validator.allowable_values}."
|
218
|
+
end
|
219
|
+
@status = status
|
220
|
+
end
|
221
|
+
|
222
|
+
# Checks equality by comparing each attribute.
|
223
|
+
# @param [Object] Object to be compared
|
224
|
+
def ==(o)
|
225
|
+
return true if self.equal?(o)
|
226
|
+
self.class == o.class &&
|
227
|
+
legal_name == o.legal_name &&
|
228
|
+
phone == o.phone &&
|
229
|
+
legal_tva_number == o.legal_tva_number &&
|
230
|
+
legal_registration_number == o.legal_registration_number &&
|
231
|
+
status == o.status &&
|
232
|
+
office_type == o.office_type &&
|
233
|
+
safe_number == o.safe_number &&
|
234
|
+
activity_type == o.activity_type &&
|
235
|
+
external_id == o.external_id &&
|
236
|
+
address1 == o.address1 &&
|
237
|
+
postcode == o.postcode &&
|
238
|
+
city == o.city &&
|
239
|
+
state == o.state &&
|
240
|
+
country == o.country &&
|
241
|
+
tradename == o.tradename
|
242
|
+
end
|
243
|
+
|
244
|
+
# @see the `==` method
|
245
|
+
# @param [Object] Object to be compared
|
246
|
+
def eql?(o)
|
247
|
+
self == o
|
248
|
+
end
|
249
|
+
|
250
|
+
# Calculates hash code according to all attributes.
|
251
|
+
# @return [Fixnum] Hash code
|
252
|
+
def hash
|
253
|
+
[legal_name, phone, legal_tva_number, legal_registration_number, status, office_type, safe_number, activity_type, external_id, address1, postcode, city, state, country, tradename].hash
|
254
|
+
end
|
255
|
+
|
256
|
+
# Builds the object from hash
|
257
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
258
|
+
# @return [Object] Returns the model itself
|
259
|
+
def build_from_hash(attributes)
|
260
|
+
return nil unless attributes.is_a?(Hash)
|
261
|
+
self.class.swagger_types.each_pair do |key, type|
|
262
|
+
if type =~ /\AArray<(.*)>/i
|
263
|
+
# check to ensure the input is an array given that the the attribute
|
264
|
+
# is documented as an array but the input is not
|
265
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
266
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
267
|
+
end
|
268
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
269
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
270
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
271
|
+
end
|
272
|
+
|
273
|
+
self
|
274
|
+
end
|
275
|
+
|
276
|
+
# Deserializes the data based on type
|
277
|
+
# @param string type Data type
|
278
|
+
# @param string value Value to be deserialized
|
279
|
+
# @return [Object] Deserialized data
|
280
|
+
def _deserialize(type, value)
|
281
|
+
case type.to_sym
|
282
|
+
when :DateTime
|
283
|
+
DateTime.parse(value)
|
284
|
+
when :Date
|
285
|
+
Date.parse(value)
|
286
|
+
when :String
|
287
|
+
value.to_s
|
288
|
+
when :Integer
|
289
|
+
value.to_i
|
290
|
+
when :Float
|
291
|
+
value.to_f
|
292
|
+
when :BOOLEAN
|
293
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
294
|
+
true
|
295
|
+
else
|
296
|
+
false
|
297
|
+
end
|
298
|
+
when :Object
|
299
|
+
# generic object (usually a Hash), return directly
|
300
|
+
value
|
301
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
302
|
+
inner_type = Regexp.last_match[:inner_type]
|
303
|
+
value.map { |v| _deserialize(inner_type, v) }
|
304
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
305
|
+
k_type = Regexp.last_match[:k_type]
|
306
|
+
v_type = Regexp.last_match[:v_type]
|
307
|
+
{}.tap do |hash|
|
308
|
+
value.each do |k, v|
|
309
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
310
|
+
end
|
311
|
+
end
|
312
|
+
else # model
|
313
|
+
temp_model = TreezorClient.const_get(type).new
|
314
|
+
temp_model.build_from_hash(value)
|
315
|
+
end
|
316
|
+
end
|
317
|
+
|
318
|
+
# Returns the string representation of the object
|
319
|
+
# @return [String] String presentation of the object
|
320
|
+
def to_s
|
321
|
+
to_hash.to_s
|
322
|
+
end
|
323
|
+
|
324
|
+
# to_body is an alias to to_hash (backward compatibility)
|
325
|
+
# @return [Hash] Returns the object in the form of hash
|
326
|
+
def to_body
|
327
|
+
to_hash
|
328
|
+
end
|
329
|
+
|
330
|
+
# Returns the object in the form of hash
|
331
|
+
# @return [Hash] Returns the object in the form of hash
|
332
|
+
def to_hash
|
333
|
+
hash = {}
|
334
|
+
self.class.attribute_map.each_pair do |attr, param|
|
335
|
+
value = self.send(attr)
|
336
|
+
next if value.nil?
|
337
|
+
hash[param] = _to_hash(value)
|
338
|
+
end
|
339
|
+
hash
|
340
|
+
end
|
341
|
+
|
342
|
+
# Outputs non-array value in the form of hash
|
343
|
+
# For object, use to_hash. Otherwise, just return the value
|
344
|
+
# @param [Object] value Any valid value
|
345
|
+
# @return [Hash] Returns the value in the form of hash
|
346
|
+
def _to_hash(value)
|
347
|
+
if value.is_a?(Array)
|
348
|
+
value.compact.map{ |v| _to_hash(v) }
|
349
|
+
elsif value.is_a?(Hash)
|
350
|
+
{}.tap do |hash|
|
351
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
352
|
+
end
|
353
|
+
elsif value.respond_to? :to_hash
|
354
|
+
value.to_hash
|
355
|
+
else
|
356
|
+
value
|
357
|
+
end
|
358
|
+
end
|
359
|
+
|
360
|
+
end
|
361
|
+
|
362
|
+
end
|
@@ -0,0 +1,793 @@
|
|
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 Card
|
18
|
+
attr_accessor :card_id
|
19
|
+
|
20
|
+
attr_accessor :user_id
|
21
|
+
|
22
|
+
attr_accessor :wallet_id
|
23
|
+
|
24
|
+
attr_accessor :wallet_cardtransaction_id
|
25
|
+
|
26
|
+
attr_accessor :mcc_restriction_group_id
|
27
|
+
|
28
|
+
attr_accessor :merchant_restriction_group_id
|
29
|
+
|
30
|
+
attr_accessor :country_restriction_group_id
|
31
|
+
|
32
|
+
attr_accessor :public_token
|
33
|
+
|
34
|
+
attr_accessor :card_tag
|
35
|
+
|
36
|
+
attr_accessor :status_code
|
37
|
+
|
38
|
+
attr_accessor :is_live
|
39
|
+
|
40
|
+
attr_accessor :pin_try_exceeds
|
41
|
+
|
42
|
+
attr_accessor :masked_pan
|
43
|
+
|
44
|
+
attr_accessor :embossed_name
|
45
|
+
|
46
|
+
# Date YYYY-MM-DD
|
47
|
+
attr_accessor :expiry_date
|
48
|
+
|
49
|
+
attr_accessor :cvv
|
50
|
+
|
51
|
+
# Date YYYY-MM-DD
|
52
|
+
attr_accessor :start_date
|
53
|
+
|
54
|
+
# Date YYYY-MM-DD
|
55
|
+
attr_accessor :end_date
|
56
|
+
|
57
|
+
attr_accessor :country_code
|
58
|
+
|
59
|
+
attr_accessor :currency_code
|
60
|
+
|
61
|
+
attr_accessor :lang
|
62
|
+
|
63
|
+
attr_accessor :delivery_title
|
64
|
+
|
65
|
+
attr_accessor :delivery_lastname
|
66
|
+
|
67
|
+
attr_accessor :delivery_firstname
|
68
|
+
|
69
|
+
attr_accessor :delivery_address1
|
70
|
+
|
71
|
+
attr_accessor :delivery_address2
|
72
|
+
|
73
|
+
attr_accessor :delivery_address3
|
74
|
+
|
75
|
+
attr_accessor :delivery_city
|
76
|
+
|
77
|
+
attr_accessor :delivery_postcode
|
78
|
+
|
79
|
+
attr_accessor :delivery_country
|
80
|
+
|
81
|
+
attr_accessor :mobile_sent
|
82
|
+
|
83
|
+
attr_accessor :limits_group
|
84
|
+
|
85
|
+
attr_accessor :perms_group
|
86
|
+
|
87
|
+
attr_accessor :card_design
|
88
|
+
|
89
|
+
attr_accessor :virtual_converted
|
90
|
+
|
91
|
+
attr_accessor :option_atm
|
92
|
+
|
93
|
+
attr_accessor :option_foreign
|
94
|
+
|
95
|
+
attr_accessor :option_online
|
96
|
+
|
97
|
+
attr_accessor :option_nfc
|
98
|
+
|
99
|
+
attr_accessor :limit_atm_year
|
100
|
+
|
101
|
+
attr_accessor :limit_atm_month
|
102
|
+
|
103
|
+
attr_accessor :limit_atm_week
|
104
|
+
|
105
|
+
attr_accessor :limit_atm_day
|
106
|
+
|
107
|
+
attr_accessor :limit_atm_all
|
108
|
+
|
109
|
+
attr_accessor :limit_payment_year
|
110
|
+
|
111
|
+
attr_accessor :limit_payment_month
|
112
|
+
|
113
|
+
attr_accessor :limit_payment_week
|
114
|
+
|
115
|
+
attr_accessor :limit_payment_day
|
116
|
+
|
117
|
+
attr_accessor :limit_payment_all
|
118
|
+
|
119
|
+
attr_accessor :total_atm_year
|
120
|
+
|
121
|
+
attr_accessor :total_atm_month
|
122
|
+
|
123
|
+
attr_accessor :total_atm_week
|
124
|
+
|
125
|
+
attr_accessor :total_atm_day
|
126
|
+
|
127
|
+
attr_accessor :total_atm_all
|
128
|
+
|
129
|
+
attr_accessor :total_payment_year
|
130
|
+
|
131
|
+
attr_accessor :total_payment_month
|
132
|
+
|
133
|
+
attr_accessor :total_payment_week
|
134
|
+
|
135
|
+
attr_accessor :total_payment_day
|
136
|
+
|
137
|
+
attr_accessor :total_payment_all
|
138
|
+
|
139
|
+
attr_accessor :created_by
|
140
|
+
|
141
|
+
# Date YYYY-MM-DD HH:MM:SS
|
142
|
+
attr_accessor :created_date
|
143
|
+
|
144
|
+
attr_accessor :modified_by
|
145
|
+
|
146
|
+
# Date YYYY-MM-DD HH:MM:SS
|
147
|
+
attr_accessor :modified_date
|
148
|
+
|
149
|
+
attr_accessor :total_rows
|
150
|
+
|
151
|
+
class EnumAttributeValidator
|
152
|
+
attr_reader :datatype
|
153
|
+
attr_reader :allowable_values
|
154
|
+
|
155
|
+
def initialize(datatype, allowable_values)
|
156
|
+
@allowable_values = allowable_values.map do |value|
|
157
|
+
case datatype.to_s
|
158
|
+
when /Integer/i
|
159
|
+
value.to_i
|
160
|
+
when /Float/i
|
161
|
+
value.to_f
|
162
|
+
else
|
163
|
+
value
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
def valid?(value)
|
169
|
+
!value || allowable_values.include?(value)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
174
|
+
def self.attribute_map
|
175
|
+
{
|
176
|
+
:'card_id' => :'cardId',
|
177
|
+
:'user_id' => :'userId',
|
178
|
+
:'wallet_id' => :'walletId',
|
179
|
+
:'wallet_cardtransaction_id' => :'walletCardtransactionId',
|
180
|
+
:'mcc_restriction_group_id' => :'mccRestrictionGroupId',
|
181
|
+
:'merchant_restriction_group_id' => :'merchantRestrictionGroupId',
|
182
|
+
:'country_restriction_group_id' => :'countryRestrictionGroupId',
|
183
|
+
:'public_token' => :'publicToken',
|
184
|
+
:'card_tag' => :'cardTag',
|
185
|
+
:'status_code' => :'statusCode',
|
186
|
+
:'is_live' => :'isLive',
|
187
|
+
:'pin_try_exceeds' => :'pinTryExceeds',
|
188
|
+
:'masked_pan' => :'maskedPan',
|
189
|
+
:'embossed_name' => :'embossedName',
|
190
|
+
:'expiry_date' => :'expiryDate',
|
191
|
+
:'cvv' => :'CVV',
|
192
|
+
:'start_date' => :'startDate',
|
193
|
+
:'end_date' => :'endDate',
|
194
|
+
:'country_code' => :'countryCode',
|
195
|
+
:'currency_code' => :'currencyCode',
|
196
|
+
:'lang' => :'lang',
|
197
|
+
:'delivery_title' => :'deliveryTitle',
|
198
|
+
:'delivery_lastname' => :'deliveryLastname',
|
199
|
+
:'delivery_firstname' => :'deliveryFirstname',
|
200
|
+
:'delivery_address1' => :'deliveryAddress1',
|
201
|
+
:'delivery_address2' => :'deliveryAddress2',
|
202
|
+
:'delivery_address3' => :'deliveryAddress3',
|
203
|
+
:'delivery_city' => :'deliveryCity',
|
204
|
+
:'delivery_postcode' => :'deliveryPostcode',
|
205
|
+
:'delivery_country' => :'deliveryCountry',
|
206
|
+
:'mobile_sent' => :'mobileSent',
|
207
|
+
:'limits_group' => :'limitsGroup',
|
208
|
+
:'perms_group' => :'permsGroup',
|
209
|
+
:'card_design' => :'cardDesign',
|
210
|
+
:'virtual_converted' => :'virtualConverted',
|
211
|
+
:'option_atm' => :'optionAtm',
|
212
|
+
:'option_foreign' => :'optionForeign',
|
213
|
+
:'option_online' => :'optionOnline',
|
214
|
+
:'option_nfc' => :'optionNfc',
|
215
|
+
:'limit_atm_year' => :'limitAtmYear',
|
216
|
+
:'limit_atm_month' => :'limitAtmMonth',
|
217
|
+
:'limit_atm_week' => :'limitAtmWeek',
|
218
|
+
:'limit_atm_day' => :'limitAtmDay',
|
219
|
+
:'limit_atm_all' => :'limitAtmAll',
|
220
|
+
:'limit_payment_year' => :'limitPaymentYear',
|
221
|
+
:'limit_payment_month' => :'limitPaymentMonth',
|
222
|
+
:'limit_payment_week' => :'limitPaymentWeek',
|
223
|
+
:'limit_payment_day' => :'limitPaymentDay',
|
224
|
+
:'limit_payment_all' => :'limitPaymentAll',
|
225
|
+
:'total_atm_year' => :'totalAtmYear',
|
226
|
+
:'total_atm_month' => :'totalAtmMonth',
|
227
|
+
:'total_atm_week' => :'totalAtmWeek',
|
228
|
+
:'total_atm_day' => :'totalAtmDay',
|
229
|
+
:'total_atm_all' => :'totalAtmAll',
|
230
|
+
:'total_payment_year' => :'totalPaymentYear',
|
231
|
+
:'total_payment_month' => :'totalPaymentMonth',
|
232
|
+
:'total_payment_week' => :'totalPaymentWeek',
|
233
|
+
:'total_payment_day' => :'totalPaymentDay',
|
234
|
+
:'total_payment_all' => :'totalPaymentAll',
|
235
|
+
:'created_by' => :'createdBy',
|
236
|
+
:'created_date' => :'createdDate',
|
237
|
+
:'modified_by' => :'modifiedBy',
|
238
|
+
:'modified_date' => :'modifiedDate',
|
239
|
+
:'total_rows' => :'totalRows'
|
240
|
+
}
|
241
|
+
end
|
242
|
+
|
243
|
+
# Attribute type mapping.
|
244
|
+
def self.swagger_types
|
245
|
+
{
|
246
|
+
:'card_id' => :'Integer',
|
247
|
+
:'user_id' => :'Integer',
|
248
|
+
:'wallet_id' => :'Integer',
|
249
|
+
:'wallet_cardtransaction_id' => :'Integer',
|
250
|
+
:'mcc_restriction_group_id' => :'Integer',
|
251
|
+
:'merchant_restriction_group_id' => :'Integer',
|
252
|
+
:'country_restriction_group_id' => :'Integer',
|
253
|
+
:'public_token' => :'String',
|
254
|
+
:'card_tag' => :'String',
|
255
|
+
:'status_code' => :'String',
|
256
|
+
:'is_live' => :'Integer',
|
257
|
+
:'pin_try_exceeds' => :'Integer',
|
258
|
+
:'masked_pan' => :'Integer',
|
259
|
+
:'embossed_name' => :'String',
|
260
|
+
:'expiry_date' => :'Integer',
|
261
|
+
:'cvv' => :'String',
|
262
|
+
:'start_date' => :'Integer',
|
263
|
+
:'end_date' => :'Integer',
|
264
|
+
:'country_code' => :'String',
|
265
|
+
:'currency_code' => :'String',
|
266
|
+
:'lang' => :'String',
|
267
|
+
:'delivery_title' => :'String',
|
268
|
+
:'delivery_lastname' => :'String',
|
269
|
+
:'delivery_firstname' => :'String',
|
270
|
+
:'delivery_address1' => :'String',
|
271
|
+
:'delivery_address2' => :'String',
|
272
|
+
:'delivery_address3' => :'String',
|
273
|
+
:'delivery_city' => :'String',
|
274
|
+
:'delivery_postcode' => :'String',
|
275
|
+
:'delivery_country' => :'String',
|
276
|
+
:'mobile_sent' => :'String',
|
277
|
+
:'limits_group' => :'String',
|
278
|
+
:'perms_group' => :'String',
|
279
|
+
:'card_design' => :'String',
|
280
|
+
:'virtual_converted' => :'Integer',
|
281
|
+
:'option_atm' => :'Integer',
|
282
|
+
:'option_foreign' => :'Integer',
|
283
|
+
:'option_online' => :'Integer',
|
284
|
+
:'option_nfc' => :'Integer',
|
285
|
+
:'limit_atm_year' => :'Integer',
|
286
|
+
:'limit_atm_month' => :'Integer',
|
287
|
+
:'limit_atm_week' => :'Integer',
|
288
|
+
:'limit_atm_day' => :'Integer',
|
289
|
+
:'limit_atm_all' => :'Integer',
|
290
|
+
:'limit_payment_year' => :'Integer',
|
291
|
+
:'limit_payment_month' => :'Integer',
|
292
|
+
:'limit_payment_week' => :'Integer',
|
293
|
+
:'limit_payment_day' => :'Integer',
|
294
|
+
:'limit_payment_all' => :'Integer',
|
295
|
+
:'total_atm_year' => :'Integer',
|
296
|
+
:'total_atm_month' => :'Integer',
|
297
|
+
:'total_atm_week' => :'Integer',
|
298
|
+
:'total_atm_day' => :'Integer',
|
299
|
+
:'total_atm_all' => :'Integer',
|
300
|
+
:'total_payment_year' => :'Integer',
|
301
|
+
:'total_payment_month' => :'Integer',
|
302
|
+
:'total_payment_week' => :'Integer',
|
303
|
+
:'total_payment_day' => :'Integer',
|
304
|
+
:'total_payment_all' => :'Integer',
|
305
|
+
:'created_by' => :'Integer',
|
306
|
+
:'created_date' => :'Integer',
|
307
|
+
:'modified_by' => :'Integer',
|
308
|
+
:'modified_date' => :'Integer',
|
309
|
+
:'total_rows' => :'Integer'
|
310
|
+
}
|
311
|
+
end
|
312
|
+
|
313
|
+
# Initializes the object
|
314
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
315
|
+
def initialize(attributes = {})
|
316
|
+
return unless attributes.is_a?(Hash)
|
317
|
+
|
318
|
+
# convert string to symbol for hash key
|
319
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
320
|
+
|
321
|
+
if attributes.has_key?(:'cardId')
|
322
|
+
self.card_id = attributes[:'cardId']
|
323
|
+
end
|
324
|
+
|
325
|
+
if attributes.has_key?(:'userId')
|
326
|
+
self.user_id = attributes[:'userId']
|
327
|
+
end
|
328
|
+
|
329
|
+
if attributes.has_key?(:'walletId')
|
330
|
+
self.wallet_id = attributes[:'walletId']
|
331
|
+
end
|
332
|
+
|
333
|
+
if attributes.has_key?(:'walletCardtransactionId')
|
334
|
+
self.wallet_cardtransaction_id = attributes[:'walletCardtransactionId']
|
335
|
+
end
|
336
|
+
|
337
|
+
if attributes.has_key?(:'mccRestrictionGroupId')
|
338
|
+
self.mcc_restriction_group_id = attributes[:'mccRestrictionGroupId']
|
339
|
+
end
|
340
|
+
|
341
|
+
if attributes.has_key?(:'merchantRestrictionGroupId')
|
342
|
+
self.merchant_restriction_group_id = attributes[:'merchantRestrictionGroupId']
|
343
|
+
end
|
344
|
+
|
345
|
+
if attributes.has_key?(:'countryRestrictionGroupId')
|
346
|
+
self.country_restriction_group_id = attributes[:'countryRestrictionGroupId']
|
347
|
+
end
|
348
|
+
|
349
|
+
if attributes.has_key?(:'publicToken')
|
350
|
+
self.public_token = attributes[:'publicToken']
|
351
|
+
end
|
352
|
+
|
353
|
+
if attributes.has_key?(:'cardTag')
|
354
|
+
self.card_tag = attributes[:'cardTag']
|
355
|
+
end
|
356
|
+
|
357
|
+
if attributes.has_key?(:'statusCode')
|
358
|
+
self.status_code = attributes[:'statusCode']
|
359
|
+
end
|
360
|
+
|
361
|
+
if attributes.has_key?(:'isLive')
|
362
|
+
self.is_live = attributes[:'isLive']
|
363
|
+
end
|
364
|
+
|
365
|
+
if attributes.has_key?(:'pinTryExceeds')
|
366
|
+
self.pin_try_exceeds = attributes[:'pinTryExceeds']
|
367
|
+
end
|
368
|
+
|
369
|
+
if attributes.has_key?(:'maskedPan')
|
370
|
+
self.masked_pan = attributes[:'maskedPan']
|
371
|
+
end
|
372
|
+
|
373
|
+
if attributes.has_key?(:'embossedName')
|
374
|
+
self.embossed_name = attributes[:'embossedName']
|
375
|
+
end
|
376
|
+
|
377
|
+
if attributes.has_key?(:'expiryDate')
|
378
|
+
self.expiry_date = attributes[:'expiryDate']
|
379
|
+
end
|
380
|
+
|
381
|
+
if attributes.has_key?(:'CVV')
|
382
|
+
self.cvv = attributes[:'CVV']
|
383
|
+
end
|
384
|
+
|
385
|
+
if attributes.has_key?(:'startDate')
|
386
|
+
self.start_date = attributes[:'startDate']
|
387
|
+
end
|
388
|
+
|
389
|
+
if attributes.has_key?(:'endDate')
|
390
|
+
self.end_date = attributes[:'endDate']
|
391
|
+
end
|
392
|
+
|
393
|
+
if attributes.has_key?(:'countryCode')
|
394
|
+
self.country_code = attributes[:'countryCode']
|
395
|
+
end
|
396
|
+
|
397
|
+
if attributes.has_key?(:'currencyCode')
|
398
|
+
self.currency_code = attributes[:'currencyCode']
|
399
|
+
end
|
400
|
+
|
401
|
+
if attributes.has_key?(:'lang')
|
402
|
+
self.lang = attributes[:'lang']
|
403
|
+
end
|
404
|
+
|
405
|
+
if attributes.has_key?(:'deliveryTitle')
|
406
|
+
self.delivery_title = attributes[:'deliveryTitle']
|
407
|
+
end
|
408
|
+
|
409
|
+
if attributes.has_key?(:'deliveryLastname')
|
410
|
+
self.delivery_lastname = attributes[:'deliveryLastname']
|
411
|
+
end
|
412
|
+
|
413
|
+
if attributes.has_key?(:'deliveryFirstname')
|
414
|
+
self.delivery_firstname = attributes[:'deliveryFirstname']
|
415
|
+
end
|
416
|
+
|
417
|
+
if attributes.has_key?(:'deliveryAddress1')
|
418
|
+
self.delivery_address1 = attributes[:'deliveryAddress1']
|
419
|
+
end
|
420
|
+
|
421
|
+
if attributes.has_key?(:'deliveryAddress2')
|
422
|
+
self.delivery_address2 = attributes[:'deliveryAddress2']
|
423
|
+
end
|
424
|
+
|
425
|
+
if attributes.has_key?(:'deliveryAddress3')
|
426
|
+
self.delivery_address3 = attributes[:'deliveryAddress3']
|
427
|
+
end
|
428
|
+
|
429
|
+
if attributes.has_key?(:'deliveryCity')
|
430
|
+
self.delivery_city = attributes[:'deliveryCity']
|
431
|
+
end
|
432
|
+
|
433
|
+
if attributes.has_key?(:'deliveryPostcode')
|
434
|
+
self.delivery_postcode = attributes[:'deliveryPostcode']
|
435
|
+
end
|
436
|
+
|
437
|
+
if attributes.has_key?(:'deliveryCountry')
|
438
|
+
self.delivery_country = attributes[:'deliveryCountry']
|
439
|
+
end
|
440
|
+
|
441
|
+
if attributes.has_key?(:'mobileSent')
|
442
|
+
self.mobile_sent = attributes[:'mobileSent']
|
443
|
+
end
|
444
|
+
|
445
|
+
if attributes.has_key?(:'limitsGroup')
|
446
|
+
self.limits_group = attributes[:'limitsGroup']
|
447
|
+
end
|
448
|
+
|
449
|
+
if attributes.has_key?(:'permsGroup')
|
450
|
+
self.perms_group = attributes[:'permsGroup']
|
451
|
+
end
|
452
|
+
|
453
|
+
if attributes.has_key?(:'cardDesign')
|
454
|
+
self.card_design = attributes[:'cardDesign']
|
455
|
+
end
|
456
|
+
|
457
|
+
if attributes.has_key?(:'virtualConverted')
|
458
|
+
self.virtual_converted = attributes[:'virtualConverted']
|
459
|
+
end
|
460
|
+
|
461
|
+
if attributes.has_key?(:'optionAtm')
|
462
|
+
self.option_atm = attributes[:'optionAtm']
|
463
|
+
end
|
464
|
+
|
465
|
+
if attributes.has_key?(:'optionForeign')
|
466
|
+
self.option_foreign = attributes[:'optionForeign']
|
467
|
+
end
|
468
|
+
|
469
|
+
if attributes.has_key?(:'optionOnline')
|
470
|
+
self.option_online = attributes[:'optionOnline']
|
471
|
+
end
|
472
|
+
|
473
|
+
if attributes.has_key?(:'optionNfc')
|
474
|
+
self.option_nfc = attributes[:'optionNfc']
|
475
|
+
end
|
476
|
+
|
477
|
+
if attributes.has_key?(:'limitAtmYear')
|
478
|
+
self.limit_atm_year = attributes[:'limitAtmYear']
|
479
|
+
end
|
480
|
+
|
481
|
+
if attributes.has_key?(:'limitAtmMonth')
|
482
|
+
self.limit_atm_month = attributes[:'limitAtmMonth']
|
483
|
+
end
|
484
|
+
|
485
|
+
if attributes.has_key?(:'limitAtmWeek')
|
486
|
+
self.limit_atm_week = attributes[:'limitAtmWeek']
|
487
|
+
end
|
488
|
+
|
489
|
+
if attributes.has_key?(:'limitAtmDay')
|
490
|
+
self.limit_atm_day = attributes[:'limitAtmDay']
|
491
|
+
end
|
492
|
+
|
493
|
+
if attributes.has_key?(:'limitAtmAll')
|
494
|
+
self.limit_atm_all = attributes[:'limitAtmAll']
|
495
|
+
end
|
496
|
+
|
497
|
+
if attributes.has_key?(:'limitPaymentYear')
|
498
|
+
self.limit_payment_year = attributes[:'limitPaymentYear']
|
499
|
+
end
|
500
|
+
|
501
|
+
if attributes.has_key?(:'limitPaymentMonth')
|
502
|
+
self.limit_payment_month = attributes[:'limitPaymentMonth']
|
503
|
+
end
|
504
|
+
|
505
|
+
if attributes.has_key?(:'limitPaymentWeek')
|
506
|
+
self.limit_payment_week = attributes[:'limitPaymentWeek']
|
507
|
+
end
|
508
|
+
|
509
|
+
if attributes.has_key?(:'limitPaymentDay')
|
510
|
+
self.limit_payment_day = attributes[:'limitPaymentDay']
|
511
|
+
end
|
512
|
+
|
513
|
+
if attributes.has_key?(:'limitPaymentAll')
|
514
|
+
self.limit_payment_all = attributes[:'limitPaymentAll']
|
515
|
+
end
|
516
|
+
|
517
|
+
if attributes.has_key?(:'totalAtmYear')
|
518
|
+
self.total_atm_year = attributes[:'totalAtmYear']
|
519
|
+
end
|
520
|
+
|
521
|
+
if attributes.has_key?(:'totalAtmMonth')
|
522
|
+
self.total_atm_month = attributes[:'totalAtmMonth']
|
523
|
+
end
|
524
|
+
|
525
|
+
if attributes.has_key?(:'totalAtmWeek')
|
526
|
+
self.total_atm_week = attributes[:'totalAtmWeek']
|
527
|
+
end
|
528
|
+
|
529
|
+
if attributes.has_key?(:'totalAtmDay')
|
530
|
+
self.total_atm_day = attributes[:'totalAtmDay']
|
531
|
+
end
|
532
|
+
|
533
|
+
if attributes.has_key?(:'totalAtmAll')
|
534
|
+
self.total_atm_all = attributes[:'totalAtmAll']
|
535
|
+
end
|
536
|
+
|
537
|
+
if attributes.has_key?(:'totalPaymentYear')
|
538
|
+
self.total_payment_year = attributes[:'totalPaymentYear']
|
539
|
+
end
|
540
|
+
|
541
|
+
if attributes.has_key?(:'totalPaymentMonth')
|
542
|
+
self.total_payment_month = attributes[:'totalPaymentMonth']
|
543
|
+
end
|
544
|
+
|
545
|
+
if attributes.has_key?(:'totalPaymentWeek')
|
546
|
+
self.total_payment_week = attributes[:'totalPaymentWeek']
|
547
|
+
end
|
548
|
+
|
549
|
+
if attributes.has_key?(:'totalPaymentDay')
|
550
|
+
self.total_payment_day = attributes[:'totalPaymentDay']
|
551
|
+
end
|
552
|
+
|
553
|
+
if attributes.has_key?(:'totalPaymentAll')
|
554
|
+
self.total_payment_all = attributes[:'totalPaymentAll']
|
555
|
+
end
|
556
|
+
|
557
|
+
if attributes.has_key?(:'createdBy')
|
558
|
+
self.created_by = attributes[:'createdBy']
|
559
|
+
end
|
560
|
+
|
561
|
+
if attributes.has_key?(:'createdDate')
|
562
|
+
self.created_date = attributes[:'createdDate']
|
563
|
+
end
|
564
|
+
|
565
|
+
if attributes.has_key?(:'modifiedBy')
|
566
|
+
self.modified_by = attributes[:'modifiedBy']
|
567
|
+
end
|
568
|
+
|
569
|
+
if attributes.has_key?(:'modifiedDate')
|
570
|
+
self.modified_date = attributes[:'modifiedDate']
|
571
|
+
end
|
572
|
+
|
573
|
+
if attributes.has_key?(:'totalRows')
|
574
|
+
self.total_rows = attributes[:'totalRows']
|
575
|
+
end
|
576
|
+
|
577
|
+
end
|
578
|
+
|
579
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
580
|
+
# @return Array for valid properties with the reasons
|
581
|
+
def list_invalid_properties
|
582
|
+
invalid_properties = Array.new
|
583
|
+
return invalid_properties
|
584
|
+
end
|
585
|
+
|
586
|
+
# Check to see if the all the properties in the model are valid
|
587
|
+
# @return true if the model is valid
|
588
|
+
def valid?
|
589
|
+
status_code_validator = EnumAttributeValidator.new('String', ["UNLOCK", "LOCK", "LOST", "STOLEN"])
|
590
|
+
return false unless status_code_validator.valid?(@status_code)
|
591
|
+
return true
|
592
|
+
end
|
593
|
+
|
594
|
+
# Custom attribute writer method checking allowed values (enum).
|
595
|
+
# @param [Object] status_code Object to be assigned
|
596
|
+
def status_code=(status_code)
|
597
|
+
validator = EnumAttributeValidator.new('String', ["UNLOCK", "LOCK", "LOST", "STOLEN"])
|
598
|
+
unless validator.valid?(status_code)
|
599
|
+
fail ArgumentError, "invalid value for 'status_code', must be one of #{validator.allowable_values}."
|
600
|
+
end
|
601
|
+
@status_code = status_code
|
602
|
+
end
|
603
|
+
|
604
|
+
# Checks equality by comparing each attribute.
|
605
|
+
# @param [Object] Object to be compared
|
606
|
+
def ==(o)
|
607
|
+
return true if self.equal?(o)
|
608
|
+
self.class == o.class &&
|
609
|
+
card_id == o.card_id &&
|
610
|
+
user_id == o.user_id &&
|
611
|
+
wallet_id == o.wallet_id &&
|
612
|
+
wallet_cardtransaction_id == o.wallet_cardtransaction_id &&
|
613
|
+
mcc_restriction_group_id == o.mcc_restriction_group_id &&
|
614
|
+
merchant_restriction_group_id == o.merchant_restriction_group_id &&
|
615
|
+
country_restriction_group_id == o.country_restriction_group_id &&
|
616
|
+
public_token == o.public_token &&
|
617
|
+
card_tag == o.card_tag &&
|
618
|
+
status_code == o.status_code &&
|
619
|
+
is_live == o.is_live &&
|
620
|
+
pin_try_exceeds == o.pin_try_exceeds &&
|
621
|
+
masked_pan == o.masked_pan &&
|
622
|
+
embossed_name == o.embossed_name &&
|
623
|
+
expiry_date == o.expiry_date &&
|
624
|
+
cvv == o.cvv &&
|
625
|
+
start_date == o.start_date &&
|
626
|
+
end_date == o.end_date &&
|
627
|
+
country_code == o.country_code &&
|
628
|
+
currency_code == o.currency_code &&
|
629
|
+
lang == o.lang &&
|
630
|
+
delivery_title == o.delivery_title &&
|
631
|
+
delivery_lastname == o.delivery_lastname &&
|
632
|
+
delivery_firstname == o.delivery_firstname &&
|
633
|
+
delivery_address1 == o.delivery_address1 &&
|
634
|
+
delivery_address2 == o.delivery_address2 &&
|
635
|
+
delivery_address3 == o.delivery_address3 &&
|
636
|
+
delivery_city == o.delivery_city &&
|
637
|
+
delivery_postcode == o.delivery_postcode &&
|
638
|
+
delivery_country == o.delivery_country &&
|
639
|
+
mobile_sent == o.mobile_sent &&
|
640
|
+
limits_group == o.limits_group &&
|
641
|
+
perms_group == o.perms_group &&
|
642
|
+
card_design == o.card_design &&
|
643
|
+
virtual_converted == o.virtual_converted &&
|
644
|
+
option_atm == o.option_atm &&
|
645
|
+
option_foreign == o.option_foreign &&
|
646
|
+
option_online == o.option_online &&
|
647
|
+
option_nfc == o.option_nfc &&
|
648
|
+
limit_atm_year == o.limit_atm_year &&
|
649
|
+
limit_atm_month == o.limit_atm_month &&
|
650
|
+
limit_atm_week == o.limit_atm_week &&
|
651
|
+
limit_atm_day == o.limit_atm_day &&
|
652
|
+
limit_atm_all == o.limit_atm_all &&
|
653
|
+
limit_payment_year == o.limit_payment_year &&
|
654
|
+
limit_payment_month == o.limit_payment_month &&
|
655
|
+
limit_payment_week == o.limit_payment_week &&
|
656
|
+
limit_payment_day == o.limit_payment_day &&
|
657
|
+
limit_payment_all == o.limit_payment_all &&
|
658
|
+
total_atm_year == o.total_atm_year &&
|
659
|
+
total_atm_month == o.total_atm_month &&
|
660
|
+
total_atm_week == o.total_atm_week &&
|
661
|
+
total_atm_day == o.total_atm_day &&
|
662
|
+
total_atm_all == o.total_atm_all &&
|
663
|
+
total_payment_year == o.total_payment_year &&
|
664
|
+
total_payment_month == o.total_payment_month &&
|
665
|
+
total_payment_week == o.total_payment_week &&
|
666
|
+
total_payment_day == o.total_payment_day &&
|
667
|
+
total_payment_all == o.total_payment_all &&
|
668
|
+
created_by == o.created_by &&
|
669
|
+
created_date == o.created_date &&
|
670
|
+
modified_by == o.modified_by &&
|
671
|
+
modified_date == o.modified_date &&
|
672
|
+
total_rows == o.total_rows
|
673
|
+
end
|
674
|
+
|
675
|
+
# @see the `==` method
|
676
|
+
# @param [Object] Object to be compared
|
677
|
+
def eql?(o)
|
678
|
+
self == o
|
679
|
+
end
|
680
|
+
|
681
|
+
# Calculates hash code according to all attributes.
|
682
|
+
# @return [Fixnum] Hash code
|
683
|
+
def hash
|
684
|
+
[card_id, user_id, wallet_id, wallet_cardtransaction_id, mcc_restriction_group_id, merchant_restriction_group_id, country_restriction_group_id, public_token, card_tag, status_code, is_live, pin_try_exceeds, masked_pan, embossed_name, expiry_date, cvv, start_date, end_date, country_code, currency_code, lang, delivery_title, delivery_lastname, delivery_firstname, delivery_address1, delivery_address2, delivery_address3, delivery_city, delivery_postcode, delivery_country, mobile_sent, limits_group, perms_group, card_design, virtual_converted, option_atm, option_foreign, option_online, option_nfc, limit_atm_year, limit_atm_month, limit_atm_week, limit_atm_day, limit_atm_all, limit_payment_year, limit_payment_month, limit_payment_week, limit_payment_day, limit_payment_all, total_atm_year, total_atm_month, total_atm_week, total_atm_day, total_atm_all, total_payment_year, total_payment_month, total_payment_week, total_payment_day, total_payment_all, created_by, created_date, modified_by, modified_date, total_rows].hash
|
685
|
+
end
|
686
|
+
|
687
|
+
# Builds the object from hash
|
688
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
689
|
+
# @return [Object] Returns the model itself
|
690
|
+
def build_from_hash(attributes)
|
691
|
+
return nil unless attributes.is_a?(Hash)
|
692
|
+
self.class.swagger_types.each_pair do |key, type|
|
693
|
+
if type =~ /\AArray<(.*)>/i
|
694
|
+
# check to ensure the input is an array given that the the attribute
|
695
|
+
# is documented as an array but the input is not
|
696
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
697
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
698
|
+
end
|
699
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
700
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
701
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
702
|
+
end
|
703
|
+
|
704
|
+
self
|
705
|
+
end
|
706
|
+
|
707
|
+
# Deserializes the data based on type
|
708
|
+
# @param string type Data type
|
709
|
+
# @param string value Value to be deserialized
|
710
|
+
# @return [Object] Deserialized data
|
711
|
+
def _deserialize(type, value)
|
712
|
+
case type.to_sym
|
713
|
+
when :DateTime
|
714
|
+
DateTime.parse(value)
|
715
|
+
when :Date
|
716
|
+
Date.parse(value)
|
717
|
+
when :String
|
718
|
+
value.to_s
|
719
|
+
when :Integer
|
720
|
+
value.to_i
|
721
|
+
when :Float
|
722
|
+
value.to_f
|
723
|
+
when :BOOLEAN
|
724
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
725
|
+
true
|
726
|
+
else
|
727
|
+
false
|
728
|
+
end
|
729
|
+
when :Object
|
730
|
+
# generic object (usually a Hash), return directly
|
731
|
+
value
|
732
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
733
|
+
inner_type = Regexp.last_match[:inner_type]
|
734
|
+
value.map { |v| _deserialize(inner_type, v) }
|
735
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
736
|
+
k_type = Regexp.last_match[:k_type]
|
737
|
+
v_type = Regexp.last_match[:v_type]
|
738
|
+
{}.tap do |hash|
|
739
|
+
value.each do |k, v|
|
740
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
741
|
+
end
|
742
|
+
end
|
743
|
+
else # model
|
744
|
+
temp_model = TreezorClient.const_get(type).new
|
745
|
+
temp_model.build_from_hash(value)
|
746
|
+
end
|
747
|
+
end
|
748
|
+
|
749
|
+
# Returns the string representation of the object
|
750
|
+
# @return [String] String presentation of the object
|
751
|
+
def to_s
|
752
|
+
to_hash.to_s
|
753
|
+
end
|
754
|
+
|
755
|
+
# to_body is an alias to to_hash (backward compatibility)
|
756
|
+
# @return [Hash] Returns the object in the form of hash
|
757
|
+
def to_body
|
758
|
+
to_hash
|
759
|
+
end
|
760
|
+
|
761
|
+
# Returns the object in the form of hash
|
762
|
+
# @return [Hash] Returns the object in the form of hash
|
763
|
+
def to_hash
|
764
|
+
hash = {}
|
765
|
+
self.class.attribute_map.each_pair do |attr, param|
|
766
|
+
value = self.send(attr)
|
767
|
+
next if value.nil?
|
768
|
+
hash[param] = _to_hash(value)
|
769
|
+
end
|
770
|
+
hash
|
771
|
+
end
|
772
|
+
|
773
|
+
# Outputs non-array value in the form of hash
|
774
|
+
# For object, use to_hash. Otherwise, just return the value
|
775
|
+
# @param [Object] value Any valid value
|
776
|
+
# @return [Hash] Returns the value in the form of hash
|
777
|
+
def _to_hash(value)
|
778
|
+
if value.is_a?(Array)
|
779
|
+
value.compact.map{ |v| _to_hash(v) }
|
780
|
+
elsif value.is_a?(Hash)
|
781
|
+
{}.tap do |hash|
|
782
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
783
|
+
end
|
784
|
+
elsif value.respond_to? :to_hash
|
785
|
+
value.to_hash
|
786
|
+
else
|
787
|
+
value
|
788
|
+
end
|
789
|
+
end
|
790
|
+
|
791
|
+
end
|
792
|
+
|
793
|
+
end
|