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,688 @@
|
|
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 User
|
18
|
+
attr_accessor :user_id
|
19
|
+
|
20
|
+
attr_accessor :user_type_id
|
21
|
+
|
22
|
+
attr_accessor :user_status
|
23
|
+
|
24
|
+
attr_accessor :user_tag
|
25
|
+
|
26
|
+
attr_accessor :parent_user_id
|
27
|
+
|
28
|
+
attr_accessor :parent_type
|
29
|
+
|
30
|
+
attr_accessor :title
|
31
|
+
|
32
|
+
attr_accessor :firstname
|
33
|
+
|
34
|
+
attr_accessor :lastname
|
35
|
+
|
36
|
+
attr_accessor :middle_names
|
37
|
+
|
38
|
+
attr_accessor :birthday
|
39
|
+
|
40
|
+
attr_accessor :email
|
41
|
+
|
42
|
+
attr_accessor :address1
|
43
|
+
|
44
|
+
attr_accessor :address2
|
45
|
+
|
46
|
+
attr_accessor :postcode
|
47
|
+
|
48
|
+
attr_accessor :city
|
49
|
+
|
50
|
+
attr_accessor :state
|
51
|
+
|
52
|
+
attr_accessor :country
|
53
|
+
|
54
|
+
attr_accessor :country_name
|
55
|
+
|
56
|
+
attr_accessor :phone
|
57
|
+
|
58
|
+
attr_accessor :mobile
|
59
|
+
|
60
|
+
attr_accessor :nationality
|
61
|
+
|
62
|
+
attr_accessor :nationality_other
|
63
|
+
|
64
|
+
attr_accessor :place_of_birth
|
65
|
+
|
66
|
+
attr_accessor :place_country
|
67
|
+
|
68
|
+
attr_accessor :occupation
|
69
|
+
|
70
|
+
attr_accessor :income_range
|
71
|
+
|
72
|
+
attr_accessor :legal_name
|
73
|
+
|
74
|
+
attr_accessor :legal_name_embossed
|
75
|
+
|
76
|
+
attr_accessor :legal_registration_number
|
77
|
+
|
78
|
+
attr_accessor :legal_tva_number
|
79
|
+
|
80
|
+
# Date YYYY-MM-DD
|
81
|
+
attr_accessor :legal_registration_date
|
82
|
+
|
83
|
+
attr_accessor :legal_form
|
84
|
+
|
85
|
+
attr_accessor :legal_share_capital
|
86
|
+
|
87
|
+
attr_accessor :legal_sector
|
88
|
+
|
89
|
+
attr_accessor :legal_annual_turn_over
|
90
|
+
|
91
|
+
attr_accessor :legal_net_income_range
|
92
|
+
|
93
|
+
attr_accessor :legal_number_of_employee_range
|
94
|
+
|
95
|
+
attr_accessor :effective_beneficiary
|
96
|
+
|
97
|
+
# | Value | Description | |----|----| | 0 | NONE | | 1 | LIGHT | | 2 | REGULAR | | 4 | REFUSED |
|
98
|
+
attr_accessor :kyc_level
|
99
|
+
|
100
|
+
# | Value | Description | |----|----| | 0 | NONE | | 1 | PENDING | | 2 | VALIDATED | | 3 | REFUSED |
|
101
|
+
attr_accessor :kyc_review
|
102
|
+
|
103
|
+
attr_accessor :kyc_review_comment
|
104
|
+
|
105
|
+
attr_accessor :is_freezed
|
106
|
+
|
107
|
+
attr_accessor :language
|
108
|
+
|
109
|
+
attr_accessor :opt_in_mailing
|
110
|
+
|
111
|
+
attr_accessor :sepa_creditor_identifier
|
112
|
+
|
113
|
+
# Date YYYY-MM-DD HH:MM:SS
|
114
|
+
attr_accessor :created_date
|
115
|
+
|
116
|
+
# Date YYYY-MM-DD HH:MM:SS
|
117
|
+
attr_accessor :modified_date
|
118
|
+
|
119
|
+
attr_accessor :wallet_count
|
120
|
+
|
121
|
+
attr_accessor :payin_count
|
122
|
+
|
123
|
+
attr_accessor :total_rows
|
124
|
+
|
125
|
+
class EnumAttributeValidator
|
126
|
+
attr_reader :datatype
|
127
|
+
attr_reader :allowable_values
|
128
|
+
|
129
|
+
def initialize(datatype, allowable_values)
|
130
|
+
@allowable_values = allowable_values.map do |value|
|
131
|
+
case datatype.to_s
|
132
|
+
when /Integer/i
|
133
|
+
value.to_i
|
134
|
+
when /Float/i
|
135
|
+
value.to_f
|
136
|
+
else
|
137
|
+
value
|
138
|
+
end
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
def valid?(value)
|
143
|
+
!value || allowable_values.include?(value)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
148
|
+
def self.attribute_map
|
149
|
+
{
|
150
|
+
:'user_id' => :'userId',
|
151
|
+
:'user_type_id' => :'userTypeId',
|
152
|
+
:'user_status' => :'userStatus',
|
153
|
+
:'user_tag' => :'userTag',
|
154
|
+
:'parent_user_id' => :'parentUserId',
|
155
|
+
:'parent_type' => :'parentType',
|
156
|
+
:'title' => :'title',
|
157
|
+
:'firstname' => :'firstname',
|
158
|
+
:'lastname' => :'lastname',
|
159
|
+
:'middle_names' => :'middleNames',
|
160
|
+
:'birthday' => :'birthday',
|
161
|
+
:'email' => :'email',
|
162
|
+
:'address1' => :'address1',
|
163
|
+
:'address2' => :'address2',
|
164
|
+
:'postcode' => :'postcode',
|
165
|
+
:'city' => :'city',
|
166
|
+
:'state' => :'state',
|
167
|
+
:'country' => :'country',
|
168
|
+
:'country_name' => :'countryName',
|
169
|
+
:'phone' => :'phone',
|
170
|
+
:'mobile' => :'mobile',
|
171
|
+
:'nationality' => :'nationality',
|
172
|
+
:'nationality_other' => :'nationalityOther',
|
173
|
+
:'place_of_birth' => :'placeOfBirth',
|
174
|
+
:'place_country' => :'placeCountry',
|
175
|
+
:'occupation' => :'occupation',
|
176
|
+
:'income_range' => :'incomeRange',
|
177
|
+
:'legal_name' => :'legalName',
|
178
|
+
:'legal_name_embossed' => :'legalNameEmbossed',
|
179
|
+
:'legal_registration_number' => :'legalRegistrationNumber',
|
180
|
+
:'legal_tva_number' => :'legalTvaNumber',
|
181
|
+
:'legal_registration_date' => :'legalRegistrationDate',
|
182
|
+
:'legal_form' => :'legalForm',
|
183
|
+
:'legal_share_capital' => :'legalShareCapital',
|
184
|
+
:'legal_sector' => :'legalSector',
|
185
|
+
:'legal_annual_turn_over' => :'legalAnnualTurnOver',
|
186
|
+
:'legal_net_income_range' => :'legalNetIncomeRange',
|
187
|
+
:'legal_number_of_employee_range' => :'legalNumberOfEmployeeRange',
|
188
|
+
:'effective_beneficiary' => :'effectiveBeneficiary',
|
189
|
+
:'kyc_level' => :'kycLevel',
|
190
|
+
:'kyc_review' => :'kycReview',
|
191
|
+
:'kyc_review_comment' => :'kycReviewComment',
|
192
|
+
:'is_freezed' => :'isFreezed',
|
193
|
+
:'language' => :'language',
|
194
|
+
:'opt_in_mailing' => :'optInMailing',
|
195
|
+
:'sepa_creditor_identifier' => :'sepaCreditorIdentifier',
|
196
|
+
:'created_date' => :'createdDate',
|
197
|
+
:'modified_date' => :'modifiedDate',
|
198
|
+
:'wallet_count' => :'walletCount',
|
199
|
+
:'payin_count' => :'payinCount',
|
200
|
+
:'total_rows' => :'totalRows'
|
201
|
+
}
|
202
|
+
end
|
203
|
+
|
204
|
+
# Attribute type mapping.
|
205
|
+
def self.swagger_types
|
206
|
+
{
|
207
|
+
:'user_id' => :'Integer',
|
208
|
+
:'user_type_id' => :'Integer',
|
209
|
+
:'user_status' => :'String',
|
210
|
+
:'user_tag' => :'String',
|
211
|
+
:'parent_user_id' => :'Integer',
|
212
|
+
:'parent_type' => :'String',
|
213
|
+
:'title' => :'String',
|
214
|
+
:'firstname' => :'String',
|
215
|
+
:'lastname' => :'String',
|
216
|
+
:'middle_names' => :'String',
|
217
|
+
:'birthday' => :'String',
|
218
|
+
:'email' => :'String',
|
219
|
+
:'address1' => :'String',
|
220
|
+
:'address2' => :'String',
|
221
|
+
:'postcode' => :'String',
|
222
|
+
:'city' => :'String',
|
223
|
+
:'state' => :'String',
|
224
|
+
:'country' => :'String',
|
225
|
+
:'country_name' => :'String',
|
226
|
+
:'phone' => :'String',
|
227
|
+
:'mobile' => :'String',
|
228
|
+
:'nationality' => :'String',
|
229
|
+
:'nationality_other' => :'String',
|
230
|
+
:'place_of_birth' => :'String',
|
231
|
+
:'place_country' => :'String',
|
232
|
+
:'occupation' => :'String',
|
233
|
+
:'income_range' => :'String',
|
234
|
+
:'legal_name' => :'String',
|
235
|
+
:'legal_name_embossed' => :'String',
|
236
|
+
:'legal_registration_number' => :'String',
|
237
|
+
:'legal_tva_number' => :'String',
|
238
|
+
:'legal_registration_date' => :'String',
|
239
|
+
:'legal_form' => :'String',
|
240
|
+
:'legal_share_capital' => :'Integer',
|
241
|
+
:'legal_sector' => :'String',
|
242
|
+
:'legal_annual_turn_over' => :'String',
|
243
|
+
:'legal_net_income_range' => :'String',
|
244
|
+
:'legal_number_of_employee_range' => :'String',
|
245
|
+
:'effective_beneficiary' => :'Integer',
|
246
|
+
:'kyc_level' => :'Integer',
|
247
|
+
:'kyc_review' => :'Integer',
|
248
|
+
:'kyc_review_comment' => :'String',
|
249
|
+
:'is_freezed' => :'Integer',
|
250
|
+
:'language' => :'String',
|
251
|
+
:'opt_in_mailing' => :'Integer',
|
252
|
+
:'sepa_creditor_identifier' => :'String',
|
253
|
+
:'created_date' => :'String',
|
254
|
+
:'modified_date' => :'String',
|
255
|
+
:'wallet_count' => :'Integer',
|
256
|
+
:'payin_count' => :'Integer',
|
257
|
+
:'total_rows' => :'Integer'
|
258
|
+
}
|
259
|
+
end
|
260
|
+
|
261
|
+
# Initializes the object
|
262
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
263
|
+
def initialize(attributes = {})
|
264
|
+
return unless attributes.is_a?(Hash)
|
265
|
+
|
266
|
+
# convert string to symbol for hash key
|
267
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
268
|
+
|
269
|
+
if attributes.has_key?(:'userId')
|
270
|
+
self.user_id = attributes[:'userId']
|
271
|
+
end
|
272
|
+
|
273
|
+
if attributes.has_key?(:'userTypeId')
|
274
|
+
self.user_type_id = attributes[:'userTypeId']
|
275
|
+
end
|
276
|
+
|
277
|
+
if attributes.has_key?(:'userStatus')
|
278
|
+
self.user_status = attributes[:'userStatus']
|
279
|
+
end
|
280
|
+
|
281
|
+
if attributes.has_key?(:'userTag')
|
282
|
+
self.user_tag = attributes[:'userTag']
|
283
|
+
end
|
284
|
+
|
285
|
+
if attributes.has_key?(:'parentUserId')
|
286
|
+
self.parent_user_id = attributes[:'parentUserId']
|
287
|
+
end
|
288
|
+
|
289
|
+
if attributes.has_key?(:'parentType')
|
290
|
+
self.parent_type = attributes[:'parentType']
|
291
|
+
end
|
292
|
+
|
293
|
+
if attributes.has_key?(:'title')
|
294
|
+
self.title = attributes[:'title']
|
295
|
+
end
|
296
|
+
|
297
|
+
if attributes.has_key?(:'firstname')
|
298
|
+
self.firstname = attributes[:'firstname']
|
299
|
+
end
|
300
|
+
|
301
|
+
if attributes.has_key?(:'lastname')
|
302
|
+
self.lastname = attributes[:'lastname']
|
303
|
+
end
|
304
|
+
|
305
|
+
if attributes.has_key?(:'middleNames')
|
306
|
+
self.middle_names = attributes[:'middleNames']
|
307
|
+
end
|
308
|
+
|
309
|
+
if attributes.has_key?(:'birthday')
|
310
|
+
self.birthday = attributes[:'birthday']
|
311
|
+
end
|
312
|
+
|
313
|
+
if attributes.has_key?(:'email')
|
314
|
+
self.email = attributes[:'email']
|
315
|
+
end
|
316
|
+
|
317
|
+
if attributes.has_key?(:'address1')
|
318
|
+
self.address1 = attributes[:'address1']
|
319
|
+
end
|
320
|
+
|
321
|
+
if attributes.has_key?(:'address2')
|
322
|
+
self.address2 = attributes[:'address2']
|
323
|
+
end
|
324
|
+
|
325
|
+
if attributes.has_key?(:'postcode')
|
326
|
+
self.postcode = attributes[:'postcode']
|
327
|
+
end
|
328
|
+
|
329
|
+
if attributes.has_key?(:'city')
|
330
|
+
self.city = attributes[:'city']
|
331
|
+
end
|
332
|
+
|
333
|
+
if attributes.has_key?(:'state')
|
334
|
+
self.state = attributes[:'state']
|
335
|
+
end
|
336
|
+
|
337
|
+
if attributes.has_key?(:'country')
|
338
|
+
self.country = attributes[:'country']
|
339
|
+
end
|
340
|
+
|
341
|
+
if attributes.has_key?(:'countryName')
|
342
|
+
self.country_name = attributes[:'countryName']
|
343
|
+
end
|
344
|
+
|
345
|
+
if attributes.has_key?(:'phone')
|
346
|
+
self.phone = attributes[:'phone']
|
347
|
+
end
|
348
|
+
|
349
|
+
if attributes.has_key?(:'mobile')
|
350
|
+
self.mobile = attributes[:'mobile']
|
351
|
+
end
|
352
|
+
|
353
|
+
if attributes.has_key?(:'nationality')
|
354
|
+
self.nationality = attributes[:'nationality']
|
355
|
+
end
|
356
|
+
|
357
|
+
if attributes.has_key?(:'nationalityOther')
|
358
|
+
self.nationality_other = attributes[:'nationalityOther']
|
359
|
+
end
|
360
|
+
|
361
|
+
if attributes.has_key?(:'placeOfBirth')
|
362
|
+
self.place_of_birth = attributes[:'placeOfBirth']
|
363
|
+
end
|
364
|
+
|
365
|
+
if attributes.has_key?(:'placeCountry')
|
366
|
+
self.place_country = attributes[:'placeCountry']
|
367
|
+
end
|
368
|
+
|
369
|
+
if attributes.has_key?(:'occupation')
|
370
|
+
self.occupation = attributes[:'occupation']
|
371
|
+
end
|
372
|
+
|
373
|
+
if attributes.has_key?(:'incomeRange')
|
374
|
+
self.income_range = attributes[:'incomeRange']
|
375
|
+
end
|
376
|
+
|
377
|
+
if attributes.has_key?(:'legalName')
|
378
|
+
self.legal_name = attributes[:'legalName']
|
379
|
+
end
|
380
|
+
|
381
|
+
if attributes.has_key?(:'legalNameEmbossed')
|
382
|
+
self.legal_name_embossed = attributes[:'legalNameEmbossed']
|
383
|
+
end
|
384
|
+
|
385
|
+
if attributes.has_key?(:'legalRegistrationNumber')
|
386
|
+
self.legal_registration_number = attributes[:'legalRegistrationNumber']
|
387
|
+
end
|
388
|
+
|
389
|
+
if attributes.has_key?(:'legalTvaNumber')
|
390
|
+
self.legal_tva_number = attributes[:'legalTvaNumber']
|
391
|
+
end
|
392
|
+
|
393
|
+
if attributes.has_key?(:'legalRegistrationDate')
|
394
|
+
self.legal_registration_date = attributes[:'legalRegistrationDate']
|
395
|
+
end
|
396
|
+
|
397
|
+
if attributes.has_key?(:'legalForm')
|
398
|
+
self.legal_form = attributes[:'legalForm']
|
399
|
+
end
|
400
|
+
|
401
|
+
if attributes.has_key?(:'legalShareCapital')
|
402
|
+
self.legal_share_capital = attributes[:'legalShareCapital']
|
403
|
+
end
|
404
|
+
|
405
|
+
if attributes.has_key?(:'legalSector')
|
406
|
+
self.legal_sector = attributes[:'legalSector']
|
407
|
+
end
|
408
|
+
|
409
|
+
if attributes.has_key?(:'legalAnnualTurnOver')
|
410
|
+
self.legal_annual_turn_over = attributes[:'legalAnnualTurnOver']
|
411
|
+
end
|
412
|
+
|
413
|
+
if attributes.has_key?(:'legalNetIncomeRange')
|
414
|
+
self.legal_net_income_range = attributes[:'legalNetIncomeRange']
|
415
|
+
end
|
416
|
+
|
417
|
+
if attributes.has_key?(:'legalNumberOfEmployeeRange')
|
418
|
+
self.legal_number_of_employee_range = attributes[:'legalNumberOfEmployeeRange']
|
419
|
+
end
|
420
|
+
|
421
|
+
if attributes.has_key?(:'effectiveBeneficiary')
|
422
|
+
self.effective_beneficiary = attributes[:'effectiveBeneficiary']
|
423
|
+
end
|
424
|
+
|
425
|
+
if attributes.has_key?(:'kycLevel')
|
426
|
+
self.kyc_level = attributes[:'kycLevel']
|
427
|
+
end
|
428
|
+
|
429
|
+
if attributes.has_key?(:'kycReview')
|
430
|
+
self.kyc_review = attributes[:'kycReview']
|
431
|
+
end
|
432
|
+
|
433
|
+
if attributes.has_key?(:'kycReviewComment')
|
434
|
+
self.kyc_review_comment = attributes[:'kycReviewComment']
|
435
|
+
end
|
436
|
+
|
437
|
+
if attributes.has_key?(:'isFreezed')
|
438
|
+
self.is_freezed = attributes[:'isFreezed']
|
439
|
+
end
|
440
|
+
|
441
|
+
if attributes.has_key?(:'language')
|
442
|
+
self.language = attributes[:'language']
|
443
|
+
end
|
444
|
+
|
445
|
+
if attributes.has_key?(:'optInMailing')
|
446
|
+
self.opt_in_mailing = attributes[:'optInMailing']
|
447
|
+
end
|
448
|
+
|
449
|
+
if attributes.has_key?(:'sepaCreditorIdentifier')
|
450
|
+
self.sepa_creditor_identifier = attributes[:'sepaCreditorIdentifier']
|
451
|
+
end
|
452
|
+
|
453
|
+
if attributes.has_key?(:'createdDate')
|
454
|
+
self.created_date = attributes[:'createdDate']
|
455
|
+
end
|
456
|
+
|
457
|
+
if attributes.has_key?(:'modifiedDate')
|
458
|
+
self.modified_date = attributes[:'modifiedDate']
|
459
|
+
end
|
460
|
+
|
461
|
+
if attributes.has_key?(:'walletCount')
|
462
|
+
self.wallet_count = attributes[:'walletCount']
|
463
|
+
end
|
464
|
+
|
465
|
+
if attributes.has_key?(:'payinCount')
|
466
|
+
self.payin_count = attributes[:'payinCount']
|
467
|
+
end
|
468
|
+
|
469
|
+
if attributes.has_key?(:'totalRows')
|
470
|
+
self.total_rows = attributes[:'totalRows']
|
471
|
+
end
|
472
|
+
|
473
|
+
end
|
474
|
+
|
475
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
476
|
+
# @return Array for valid properties with the reasons
|
477
|
+
def list_invalid_properties
|
478
|
+
invalid_properties = Array.new
|
479
|
+
return invalid_properties
|
480
|
+
end
|
481
|
+
|
482
|
+
# Check to see if the all the properties in the model are valid
|
483
|
+
# @return true if the model is valid
|
484
|
+
def valid?
|
485
|
+
user_status_validator = EnumAttributeValidator.new('String', ["PENDING", "CANCELED", "VALIDATED"])
|
486
|
+
return false unless user_status_validator.valid?(@user_status)
|
487
|
+
title_validator = EnumAttributeValidator.new('String', ["M", "MME", "MLLE"])
|
488
|
+
return false unless title_validator.valid?(@title)
|
489
|
+
return true
|
490
|
+
end
|
491
|
+
|
492
|
+
# Custom attribute writer method checking allowed values (enum).
|
493
|
+
# @param [Object] user_status Object to be assigned
|
494
|
+
def user_status=(user_status)
|
495
|
+
validator = EnumAttributeValidator.new('String', ["PENDING", "CANCELED", "VALIDATED"])
|
496
|
+
unless validator.valid?(user_status)
|
497
|
+
fail ArgumentError, "invalid value for 'user_status', must be one of #{validator.allowable_values}."
|
498
|
+
end
|
499
|
+
@user_status = user_status
|
500
|
+
end
|
501
|
+
|
502
|
+
# Custom attribute writer method checking allowed values (enum).
|
503
|
+
# @param [Object] title Object to be assigned
|
504
|
+
def title=(title)
|
505
|
+
validator = EnumAttributeValidator.new('String', ["M", "MME", "MLLE"])
|
506
|
+
unless validator.valid?(title)
|
507
|
+
fail ArgumentError, "invalid value for 'title', must be one of #{validator.allowable_values}."
|
508
|
+
end
|
509
|
+
@title = title
|
510
|
+
end
|
511
|
+
|
512
|
+
# Checks equality by comparing each attribute.
|
513
|
+
# @param [Object] Object to be compared
|
514
|
+
def ==(o)
|
515
|
+
return true if self.equal?(o)
|
516
|
+
self.class == o.class &&
|
517
|
+
user_id == o.user_id &&
|
518
|
+
user_type_id == o.user_type_id &&
|
519
|
+
user_status == o.user_status &&
|
520
|
+
user_tag == o.user_tag &&
|
521
|
+
parent_user_id == o.parent_user_id &&
|
522
|
+
parent_type == o.parent_type &&
|
523
|
+
title == o.title &&
|
524
|
+
firstname == o.firstname &&
|
525
|
+
lastname == o.lastname &&
|
526
|
+
middle_names == o.middle_names &&
|
527
|
+
birthday == o.birthday &&
|
528
|
+
email == o.email &&
|
529
|
+
address1 == o.address1 &&
|
530
|
+
address2 == o.address2 &&
|
531
|
+
postcode == o.postcode &&
|
532
|
+
city == o.city &&
|
533
|
+
state == o.state &&
|
534
|
+
country == o.country &&
|
535
|
+
country_name == o.country_name &&
|
536
|
+
phone == o.phone &&
|
537
|
+
mobile == o.mobile &&
|
538
|
+
nationality == o.nationality &&
|
539
|
+
nationality_other == o.nationality_other &&
|
540
|
+
place_of_birth == o.place_of_birth &&
|
541
|
+
place_country == o.place_country &&
|
542
|
+
occupation == o.occupation &&
|
543
|
+
income_range == o.income_range &&
|
544
|
+
legal_name == o.legal_name &&
|
545
|
+
legal_name_embossed == o.legal_name_embossed &&
|
546
|
+
legal_registration_number == o.legal_registration_number &&
|
547
|
+
legal_tva_number == o.legal_tva_number &&
|
548
|
+
legal_registration_date == o.legal_registration_date &&
|
549
|
+
legal_form == o.legal_form &&
|
550
|
+
legal_share_capital == o.legal_share_capital &&
|
551
|
+
legal_sector == o.legal_sector &&
|
552
|
+
legal_annual_turn_over == o.legal_annual_turn_over &&
|
553
|
+
legal_net_income_range == o.legal_net_income_range &&
|
554
|
+
legal_number_of_employee_range == o.legal_number_of_employee_range &&
|
555
|
+
effective_beneficiary == o.effective_beneficiary &&
|
556
|
+
kyc_level == o.kyc_level &&
|
557
|
+
kyc_review == o.kyc_review &&
|
558
|
+
kyc_review_comment == o.kyc_review_comment &&
|
559
|
+
is_freezed == o.is_freezed &&
|
560
|
+
language == o.language &&
|
561
|
+
opt_in_mailing == o.opt_in_mailing &&
|
562
|
+
sepa_creditor_identifier == o.sepa_creditor_identifier &&
|
563
|
+
created_date == o.created_date &&
|
564
|
+
modified_date == o.modified_date &&
|
565
|
+
wallet_count == o.wallet_count &&
|
566
|
+
payin_count == o.payin_count &&
|
567
|
+
total_rows == o.total_rows
|
568
|
+
end
|
569
|
+
|
570
|
+
# @see the `==` method
|
571
|
+
# @param [Object] Object to be compared
|
572
|
+
def eql?(o)
|
573
|
+
self == o
|
574
|
+
end
|
575
|
+
|
576
|
+
# Calculates hash code according to all attributes.
|
577
|
+
# @return [Fixnum] Hash code
|
578
|
+
def hash
|
579
|
+
[user_id, user_type_id, user_status, user_tag, parent_user_id, parent_type, title, firstname, lastname, middle_names, birthday, email, address1, address2, postcode, city, state, country, country_name, phone, mobile, nationality, nationality_other, place_of_birth, place_country, occupation, income_range, legal_name, legal_name_embossed, legal_registration_number, legal_tva_number, legal_registration_date, legal_form, legal_share_capital, legal_sector, legal_annual_turn_over, legal_net_income_range, legal_number_of_employee_range, effective_beneficiary, kyc_level, kyc_review, kyc_review_comment, is_freezed, language, opt_in_mailing, sepa_creditor_identifier, created_date, modified_date, wallet_count, payin_count, total_rows].hash
|
580
|
+
end
|
581
|
+
|
582
|
+
# Builds the object from hash
|
583
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
584
|
+
# @return [Object] Returns the model itself
|
585
|
+
def build_from_hash(attributes)
|
586
|
+
return nil unless attributes.is_a?(Hash)
|
587
|
+
self.class.swagger_types.each_pair do |key, type|
|
588
|
+
if type =~ /\AArray<(.*)>/i
|
589
|
+
# check to ensure the input is an array given that the the attribute
|
590
|
+
# is documented as an array but the input is not
|
591
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
592
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
593
|
+
end
|
594
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
595
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
596
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
597
|
+
end
|
598
|
+
|
599
|
+
self
|
600
|
+
end
|
601
|
+
|
602
|
+
# Deserializes the data based on type
|
603
|
+
# @param string type Data type
|
604
|
+
# @param string value Value to be deserialized
|
605
|
+
# @return [Object] Deserialized data
|
606
|
+
def _deserialize(type, value)
|
607
|
+
case type.to_sym
|
608
|
+
when :DateTime
|
609
|
+
DateTime.parse(value)
|
610
|
+
when :Date
|
611
|
+
Date.parse(value)
|
612
|
+
when :String
|
613
|
+
value.to_s
|
614
|
+
when :Integer
|
615
|
+
value.to_i
|
616
|
+
when :Float
|
617
|
+
value.to_f
|
618
|
+
when :BOOLEAN
|
619
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
620
|
+
true
|
621
|
+
else
|
622
|
+
false
|
623
|
+
end
|
624
|
+
when :Object
|
625
|
+
# generic object (usually a Hash), return directly
|
626
|
+
value
|
627
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
628
|
+
inner_type = Regexp.last_match[:inner_type]
|
629
|
+
value.map { |v| _deserialize(inner_type, v) }
|
630
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
631
|
+
k_type = Regexp.last_match[:k_type]
|
632
|
+
v_type = Regexp.last_match[:v_type]
|
633
|
+
{}.tap do |hash|
|
634
|
+
value.each do |k, v|
|
635
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
636
|
+
end
|
637
|
+
end
|
638
|
+
else # model
|
639
|
+
temp_model = TreezorClient.const_get(type).new
|
640
|
+
temp_model.build_from_hash(value)
|
641
|
+
end
|
642
|
+
end
|
643
|
+
|
644
|
+
# Returns the string representation of the object
|
645
|
+
# @return [String] String presentation of the object
|
646
|
+
def to_s
|
647
|
+
to_hash.to_s
|
648
|
+
end
|
649
|
+
|
650
|
+
# to_body is an alias to to_hash (backward compatibility)
|
651
|
+
# @return [Hash] Returns the object in the form of hash
|
652
|
+
def to_body
|
653
|
+
to_hash
|
654
|
+
end
|
655
|
+
|
656
|
+
# Returns the object in the form of hash
|
657
|
+
# @return [Hash] Returns the object in the form of hash
|
658
|
+
def to_hash
|
659
|
+
hash = {}
|
660
|
+
self.class.attribute_map.each_pair do |attr, param|
|
661
|
+
value = self.send(attr)
|
662
|
+
next if value.nil?
|
663
|
+
hash[param] = _to_hash(value)
|
664
|
+
end
|
665
|
+
hash
|
666
|
+
end
|
667
|
+
|
668
|
+
# Outputs non-array value in the form of hash
|
669
|
+
# For object, use to_hash. Otherwise, just return the value
|
670
|
+
# @param [Object] value Any valid value
|
671
|
+
# @return [Hash] Returns the value in the form of hash
|
672
|
+
def _to_hash(value)
|
673
|
+
if value.is_a?(Array)
|
674
|
+
value.compact.map{ |v| _to_hash(v) }
|
675
|
+
elsif value.is_a?(Hash)
|
676
|
+
{}.tap do |hash|
|
677
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
678
|
+
end
|
679
|
+
elsif value.respond_to? :to_hash
|
680
|
+
value.to_hash
|
681
|
+
else
|
682
|
+
value
|
683
|
+
end
|
684
|
+
end
|
685
|
+
|
686
|
+
end
|
687
|
+
|
688
|
+
end
|