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,369 @@
|
|
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 "uri"
|
14
|
+
|
15
|
+
module TreezorClient
|
16
|
+
class VirtualibansApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# get a virtualiban by Id
|
24
|
+
# Get a virtualiban from the system by its id.
|
25
|
+
# @param id VirtualIban's id.
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [InlineResponse20017]
|
28
|
+
def getvirtualiban(id, opts = {})
|
29
|
+
data, _status_code, _headers = getvirtualiban_with_http_info(id, opts)
|
30
|
+
return data
|
31
|
+
end
|
32
|
+
|
33
|
+
# get a virtualiban by Id
|
34
|
+
# Get a virtualiban from the system by its id.
|
35
|
+
# @param id VirtualIban's id.
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(InlineResponse20017, Fixnum, Hash)>] InlineResponse20017 data, response status code and response headers
|
38
|
+
def getvirtualiban_with_http_info(id, opts = {})
|
39
|
+
if @api_client.config.debugging
|
40
|
+
@api_client.config.logger.debug "Calling API: VirtualibansApi.getvirtualiban ..."
|
41
|
+
end
|
42
|
+
# verify the required parameter 'id' is set
|
43
|
+
if @api_client.config.client_side_validation && id.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VirtualibansApi.getvirtualiban"
|
45
|
+
end
|
46
|
+
# resource path
|
47
|
+
local_var_path = "/virtualibans/{id}".sub('{' + 'id' + '}', id.to_s)
|
48
|
+
|
49
|
+
# query parameters
|
50
|
+
query_params = {}
|
51
|
+
|
52
|
+
# header parameters
|
53
|
+
header_params = {}
|
54
|
+
# HTTP header 'Accept' (if needed)
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
56
|
+
# HTTP header 'Content-Type'
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = {}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = nil
|
64
|
+
auth_names = ['api_key']
|
65
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
66
|
+
:header_params => header_params,
|
67
|
+
:query_params => query_params,
|
68
|
+
:form_params => form_params,
|
69
|
+
:body => post_body,
|
70
|
+
:auth_names => auth_names,
|
71
|
+
:return_type => 'InlineResponse20017')
|
72
|
+
if @api_client.config.debugging
|
73
|
+
@api_client.config.logger.debug "API called: VirtualibansApi#getvirtualiban\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
74
|
+
end
|
75
|
+
return data, status_code, headers
|
76
|
+
end
|
77
|
+
|
78
|
+
# search virtualibans
|
79
|
+
# Get virtualiban that match search criteria.
|
80
|
+
# @param valid_from The beginning date of validity.
|
81
|
+
# @param [Hash] opts the optional parameters
|
82
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
83
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
84
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
85
|
+
# @option opts [Integer] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
86
|
+
# @option opts [Integer] :virtual_iban_id VirtualIban's id.
|
87
|
+
# @option opts [Integer] :wallet_id VirtualIban's wallet id.
|
88
|
+
# @option opts [Integer] :type_id VirtualIban's type id.
|
89
|
+
# @option opts [Integer] :tag A tag generated by the client
|
90
|
+
# @option opts [String] :reference The client's internal reference of the vitual IBAN.
|
91
|
+
# @option opts [Date] :valid_to The limit date of validity.
|
92
|
+
# @option opts [String] :max_usage The maximum number of usage authorized.
|
93
|
+
# @option opts [Float] :max_amount The maximum amount authorized.
|
94
|
+
# @option opts [DateTime] :created_date_from The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
95
|
+
# @option opts [DateTime] :created_date_to The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
96
|
+
# @option opts [DateTime] :updated_date_from The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
97
|
+
# @option opts [DateTime] :updated_date_to The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
98
|
+
# @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
|
99
|
+
# @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
|
100
|
+
# @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : createdDate. More info [here](https://agent.treezor.com/lists).
|
101
|
+
# @option opts [String] :sort_order The order you want to sort the list. * **DESC** for a descending sort * **ASC** for a ascending sort. Default value : DESC. More info [here](https://agent.treezor.com/lists).
|
102
|
+
# @return [InlineResponse20017]
|
103
|
+
def getvirtualibans(valid_from, opts = {})
|
104
|
+
data, _status_code, _headers = getvirtualibans_with_http_info(valid_from, opts)
|
105
|
+
return data
|
106
|
+
end
|
107
|
+
|
108
|
+
# search virtualibans
|
109
|
+
# Get virtualiban that match search criteria.
|
110
|
+
# @param valid_from The beginning date of validity.
|
111
|
+
# @param [Hash] opts the optional parameters
|
112
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
113
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
114
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
115
|
+
# @option opts [Integer] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
116
|
+
# @option opts [Integer] :virtual_iban_id VirtualIban's id.
|
117
|
+
# @option opts [Integer] :wallet_id VirtualIban's wallet id.
|
118
|
+
# @option opts [Integer] :type_id VirtualIban's type id.
|
119
|
+
# @option opts [Integer] :tag A tag generated by the client
|
120
|
+
# @option opts [String] :reference The client's internal reference of the vitual IBAN.
|
121
|
+
# @option opts [Date] :valid_to The limit date of validity.
|
122
|
+
# @option opts [String] :max_usage The maximum number of usage authorized.
|
123
|
+
# @option opts [Float] :max_amount The maximum amount authorized.
|
124
|
+
# @option opts [DateTime] :created_date_from The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
125
|
+
# @option opts [DateTime] :created_date_to The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
126
|
+
# @option opts [DateTime] :updated_date_from The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
127
|
+
# @option opts [DateTime] :updated_date_to The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
128
|
+
# @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
|
129
|
+
# @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
|
130
|
+
# @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : createdDate. More info [here](https://agent.treezor.com/lists).
|
131
|
+
# @option opts [String] :sort_order The order you want to sort the list. * **DESC** for a descending sort * **ASC** for a ascending sort. Default value : DESC. More info [here](https://agent.treezor.com/lists).
|
132
|
+
# @return [Array<(InlineResponse20017, Fixnum, Hash)>] InlineResponse20017 data, response status code and response headers
|
133
|
+
def getvirtualibans_with_http_info(valid_from, opts = {})
|
134
|
+
if @api_client.config.debugging
|
135
|
+
@api_client.config.logger.debug "Calling API: VirtualibansApi.getvirtualibans ..."
|
136
|
+
end
|
137
|
+
# verify the required parameter 'valid_from' is set
|
138
|
+
if @api_client.config.client_side_validation && valid_from.nil?
|
139
|
+
fail ArgumentError, "Missing the required parameter 'valid_from' when calling VirtualibansApi.getvirtualibans"
|
140
|
+
end
|
141
|
+
# resource path
|
142
|
+
local_var_path = "/virtualibans"
|
143
|
+
|
144
|
+
# query parameters
|
145
|
+
query_params = {}
|
146
|
+
query_params[:'validFrom'] = valid_from
|
147
|
+
query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
|
148
|
+
query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
149
|
+
query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
150
|
+
query_params[:'accessUserIP'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
|
151
|
+
query_params[:'virtualIbanId'] = opts[:'virtual_iban_id'] if !opts[:'virtual_iban_id'].nil?
|
152
|
+
query_params[:'walletId'] = opts[:'wallet_id'] if !opts[:'wallet_id'].nil?
|
153
|
+
query_params[:'typeId'] = opts[:'type_id'] if !opts[:'type_id'].nil?
|
154
|
+
query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
|
155
|
+
query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
|
156
|
+
query_params[:'validTo'] = opts[:'valid_to'] if !opts[:'valid_to'].nil?
|
157
|
+
query_params[:'maxUsage'] = opts[:'max_usage'] if !opts[:'max_usage'].nil?
|
158
|
+
query_params[:'maxAmount'] = opts[:'max_amount'] if !opts[:'max_amount'].nil?
|
159
|
+
query_params[:'createdDateFrom'] = opts[:'created_date_from'] if !opts[:'created_date_from'].nil?
|
160
|
+
query_params[:'createdDateTo'] = opts[:'created_date_to'] if !opts[:'created_date_to'].nil?
|
161
|
+
query_params[:'updatedDateFrom'] = opts[:'updated_date_from'] if !opts[:'updated_date_from'].nil?
|
162
|
+
query_params[:'updatedDateTo'] = opts[:'updated_date_to'] if !opts[:'updated_date_to'].nil?
|
163
|
+
query_params[:'pageNumber'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
164
|
+
query_params[:'pageCount'] = opts[:'page_count'] if !opts[:'page_count'].nil?
|
165
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
166
|
+
query_params[:'sortOrder'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
167
|
+
|
168
|
+
# header parameters
|
169
|
+
header_params = {}
|
170
|
+
# HTTP header 'Accept' (if needed)
|
171
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
172
|
+
# HTTP header 'Content-Type'
|
173
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
174
|
+
|
175
|
+
# form parameters
|
176
|
+
form_params = {}
|
177
|
+
|
178
|
+
# http body (model)
|
179
|
+
post_body = nil
|
180
|
+
auth_names = ['api_key']
|
181
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
182
|
+
:header_params => header_params,
|
183
|
+
:query_params => query_params,
|
184
|
+
:form_params => form_params,
|
185
|
+
:body => post_body,
|
186
|
+
:auth_names => auth_names,
|
187
|
+
:return_type => 'InlineResponse20017')
|
188
|
+
if @api_client.config.debugging
|
189
|
+
@api_client.config.logger.debug "API called: VirtualibansApi#getvirtualibans\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
190
|
+
end
|
191
|
+
return data, status_code, headers
|
192
|
+
end
|
193
|
+
|
194
|
+
# create a virtual IBAN
|
195
|
+
# Create a new virtual IBAN in in the system.
|
196
|
+
# @param wallet_id The Id Of the Wallet. The Wallet must be in validated status. The wallet must be of type \"payment\" or \"electronic money\"
|
197
|
+
# @param type_id | Type Id | Virtual IBAN Type| | ---| --- | | 1 | DEBIT | | 2 | CREDIT |
|
198
|
+
# @param [Hash] opts the optional parameters
|
199
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
200
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
201
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
202
|
+
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
203
|
+
# @option opts [Integer] :tag A tag generated by the client
|
204
|
+
# @option opts [String] :reference The client's internal reference of the vitual IBAN. Less than 255 characters.
|
205
|
+
# @option opts [Date] :valid_from The beginning date of validity. The beginning date must not be less than today's date.
|
206
|
+
# @option opts [Date] :valid_to The limit date of validity. Cannot be less or equal to the validFrom date.
|
207
|
+
# @option opts [Integer] :max_usage The maximum number of usage authorized. If you want to set no maximum usage limitation you can omit the parameter or set it to null. If you want to limit usage please send an integer in that field. This integer cannot be less than 1.
|
208
|
+
# @option opts [Float] :max_amount The maximum amount authorized.If you want to set no maximum usage amount limitation you can omit the parameter or set it to null. If you want to limit the amount please send a DECIMAL (with a point as separator) in that field. This decimal cannot be less than 0.00.
|
209
|
+
# @return [InlineResponse20017]
|
210
|
+
def post_virtual_iban(wallet_id, type_id, opts = {})
|
211
|
+
data, _status_code, _headers = post_virtual_iban_with_http_info(wallet_id, type_id, opts)
|
212
|
+
return data
|
213
|
+
end
|
214
|
+
|
215
|
+
# create a virtual IBAN
|
216
|
+
# Create a new virtual IBAN in in the system.
|
217
|
+
# @param wallet_id The Id Of the Wallet. The Wallet must be in validated status. The wallet must be of type \"payment\" or \"electronic money\"
|
218
|
+
# @param type_id | Type Id | Virtual IBAN Type| | ---| --- | | 1 | DEBIT | | 2 | CREDIT |
|
219
|
+
# @param [Hash] opts the optional parameters
|
220
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
221
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
222
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
223
|
+
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
224
|
+
# @option opts [Integer] :tag A tag generated by the client
|
225
|
+
# @option opts [String] :reference The client's internal reference of the vitual IBAN. Less than 255 characters.
|
226
|
+
# @option opts [Date] :valid_from The beginning date of validity. The beginning date must not be less than today's date.
|
227
|
+
# @option opts [Date] :valid_to The limit date of validity. Cannot be less or equal to the validFrom date.
|
228
|
+
# @option opts [Integer] :max_usage The maximum number of usage authorized. If you want to set no maximum usage limitation you can omit the parameter or set it to null. If you want to limit usage please send an integer in that field. This integer cannot be less than 1.
|
229
|
+
# @option opts [Float] :max_amount The maximum amount authorized.If you want to set no maximum usage amount limitation you can omit the parameter or set it to null. If you want to limit the amount please send a DECIMAL (with a point as separator) in that field. This decimal cannot be less than 0.00.
|
230
|
+
# @return [Array<(InlineResponse20017, Fixnum, Hash)>] InlineResponse20017 data, response status code and response headers
|
231
|
+
def post_virtual_iban_with_http_info(wallet_id, type_id, opts = {})
|
232
|
+
if @api_client.config.debugging
|
233
|
+
@api_client.config.logger.debug "Calling API: VirtualibansApi.post_virtual_iban ..."
|
234
|
+
end
|
235
|
+
# verify the required parameter 'wallet_id' is set
|
236
|
+
if @api_client.config.client_side_validation && wallet_id.nil?
|
237
|
+
fail ArgumentError, "Missing the required parameter 'wallet_id' when calling VirtualibansApi.post_virtual_iban"
|
238
|
+
end
|
239
|
+
# verify the required parameter 'type_id' is set
|
240
|
+
if @api_client.config.client_side_validation && type_id.nil?
|
241
|
+
fail ArgumentError, "Missing the required parameter 'type_id' when calling VirtualibansApi.post_virtual_iban"
|
242
|
+
end
|
243
|
+
# resource path
|
244
|
+
local_var_path = "/virtualibans"
|
245
|
+
|
246
|
+
# query parameters
|
247
|
+
query_params = {}
|
248
|
+
query_params[:'walletId'] = wallet_id
|
249
|
+
query_params[:'typeId'] = type_id
|
250
|
+
query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
|
251
|
+
query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
252
|
+
query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
253
|
+
query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
|
254
|
+
query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
|
255
|
+
query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
|
256
|
+
query_params[:'validFrom'] = opts[:'valid_from'] if !opts[:'valid_from'].nil?
|
257
|
+
query_params[:'validTo'] = opts[:'valid_to'] if !opts[:'valid_to'].nil?
|
258
|
+
query_params[:'maxUsage'] = opts[:'max_usage'] if !opts[:'max_usage'].nil?
|
259
|
+
query_params[:'maxAmount'] = opts[:'max_amount'] if !opts[:'max_amount'].nil?
|
260
|
+
|
261
|
+
# header parameters
|
262
|
+
header_params = {}
|
263
|
+
# HTTP header 'Accept' (if needed)
|
264
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
265
|
+
# HTTP header 'Content-Type'
|
266
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
267
|
+
|
268
|
+
# form parameters
|
269
|
+
form_params = {}
|
270
|
+
|
271
|
+
# http body (model)
|
272
|
+
post_body = nil
|
273
|
+
auth_names = ['api_key']
|
274
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
275
|
+
:header_params => header_params,
|
276
|
+
:query_params => query_params,
|
277
|
+
:form_params => form_params,
|
278
|
+
:body => post_body,
|
279
|
+
:auth_names => auth_names,
|
280
|
+
:return_type => 'InlineResponse20017')
|
281
|
+
if @api_client.config.debugging
|
282
|
+
@api_client.config.logger.debug "API called: VirtualibansApi#post_virtual_iban\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
283
|
+
end
|
284
|
+
return data, status_code, headers
|
285
|
+
end
|
286
|
+
|
287
|
+
# update a Virtual IBAN
|
288
|
+
# Update Virtual IBAN's information.
|
289
|
+
# @param id VirtualIban's id.
|
290
|
+
# @param [Hash] opts the optional parameters
|
291
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
292
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
293
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
294
|
+
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
295
|
+
# @option opts [String] :reference The client's internal reference of the vitual IBAN.
|
296
|
+
# @option opts [Date] :valid_from The beginning date of validity. Date of validity can be changed. It must follow the rules explained in the POST endpoint.
|
297
|
+
# @option opts [Date] :valid_to The limit date of validity. It must follow the rules of creation. It must follow the rules explained in the POST endpoint.
|
298
|
+
# @option opts [Integer] :max_usage The maximum number of usage authorized. It must follow the rules explained in the POST endpoint AND the maximum usage cannot be strictly less than the transaction counter of the Virtual Iban.
|
299
|
+
# @option opts [Float] :max_amount The maximum amount authorized. It must follow the rules explained in the POST endpoint AND the maximum amount cannot be strictly less than the cumulated amount of this Virtual Iban.
|
300
|
+
# @return [InlineResponse20017]
|
301
|
+
def put_virtual_iban(id, opts = {})
|
302
|
+
data, _status_code, _headers = put_virtual_iban_with_http_info(id, opts)
|
303
|
+
return data
|
304
|
+
end
|
305
|
+
|
306
|
+
# update a Virtual IBAN
|
307
|
+
# Update Virtual IBAN's information.
|
308
|
+
# @param id VirtualIban's id.
|
309
|
+
# @param [Hash] opts the optional parameters
|
310
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
311
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
312
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
313
|
+
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
314
|
+
# @option opts [String] :reference The client's internal reference of the vitual IBAN.
|
315
|
+
# @option opts [Date] :valid_from The beginning date of validity. Date of validity can be changed. It must follow the rules explained in the POST endpoint.
|
316
|
+
# @option opts [Date] :valid_to The limit date of validity. It must follow the rules of creation. It must follow the rules explained in the POST endpoint.
|
317
|
+
# @option opts [Integer] :max_usage The maximum number of usage authorized. It must follow the rules explained in the POST endpoint AND the maximum usage cannot be strictly less than the transaction counter of the Virtual Iban.
|
318
|
+
# @option opts [Float] :max_amount The maximum amount authorized. It must follow the rules explained in the POST endpoint AND the maximum amount cannot be strictly less than the cumulated amount of this Virtual Iban.
|
319
|
+
# @return [Array<(InlineResponse20017, Fixnum, Hash)>] InlineResponse20017 data, response status code and response headers
|
320
|
+
def put_virtual_iban_with_http_info(id, opts = {})
|
321
|
+
if @api_client.config.debugging
|
322
|
+
@api_client.config.logger.debug "Calling API: VirtualibansApi.put_virtual_iban ..."
|
323
|
+
end
|
324
|
+
# verify the required parameter 'id' is set
|
325
|
+
if @api_client.config.client_side_validation && id.nil?
|
326
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VirtualibansApi.put_virtual_iban"
|
327
|
+
end
|
328
|
+
# resource path
|
329
|
+
local_var_path = "/virtualibans/{id}".sub('{' + 'id' + '}', id.to_s)
|
330
|
+
|
331
|
+
# query parameters
|
332
|
+
query_params = {}
|
333
|
+
query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
|
334
|
+
query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
335
|
+
query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
336
|
+
query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
|
337
|
+
query_params[:'reference'] = opts[:'reference'] if !opts[:'reference'].nil?
|
338
|
+
query_params[:'validFrom'] = opts[:'valid_from'] if !opts[:'valid_from'].nil?
|
339
|
+
query_params[:'validTo'] = opts[:'valid_to'] if !opts[:'valid_to'].nil?
|
340
|
+
query_params[:'maxUsage'] = opts[:'max_usage'] if !opts[:'max_usage'].nil?
|
341
|
+
query_params[:'maxAmount'] = opts[:'max_amount'] if !opts[:'max_amount'].nil?
|
342
|
+
|
343
|
+
# header parameters
|
344
|
+
header_params = {}
|
345
|
+
# HTTP header 'Accept' (if needed)
|
346
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
347
|
+
# HTTP header 'Content-Type'
|
348
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
349
|
+
|
350
|
+
# form parameters
|
351
|
+
form_params = {}
|
352
|
+
|
353
|
+
# http body (model)
|
354
|
+
post_body = nil
|
355
|
+
auth_names = ['api_key']
|
356
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
357
|
+
:header_params => header_params,
|
358
|
+
:query_params => query_params,
|
359
|
+
:form_params => form_params,
|
360
|
+
:body => post_body,
|
361
|
+
:auth_names => auth_names,
|
362
|
+
:return_type => 'InlineResponse20017')
|
363
|
+
if @api_client.config.debugging
|
364
|
+
@api_client.config.logger.debug "API called: VirtualibansApi#put_virtual_iban\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
365
|
+
end
|
366
|
+
return data, status_code, headers
|
367
|
+
end
|
368
|
+
end
|
369
|
+
end
|
@@ -0,0 +1,505 @@
|
|
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 "uri"
|
14
|
+
|
15
|
+
module TreezorClient
|
16
|
+
class WalletApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# delete a wallet
|
24
|
+
# Change wallet's status to **CANCELED**.
|
25
|
+
# @param id Wallet's id
|
26
|
+
# @param origin Request's origin. Possible values are: * OPERATOR * USER
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
29
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
30
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
31
|
+
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
32
|
+
# @return [InlineResponse20025]
|
33
|
+
def delete_wallet(id, origin, opts = {})
|
34
|
+
data, _status_code, _headers = delete_wallet_with_http_info(id, origin, opts)
|
35
|
+
return data
|
36
|
+
end
|
37
|
+
|
38
|
+
# delete a wallet
|
39
|
+
# Change wallet's status to **CANCELED**.
|
40
|
+
# @param id Wallet's id
|
41
|
+
# @param origin Request's origin. Possible values are: * OPERATOR * USER
|
42
|
+
# @param [Hash] opts the optional parameters
|
43
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
44
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
45
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
46
|
+
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
47
|
+
# @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
|
48
|
+
def delete_wallet_with_http_info(id, origin, opts = {})
|
49
|
+
if @api_client.config.debugging
|
50
|
+
@api_client.config.logger.debug "Calling API: WalletApi.delete_wallet ..."
|
51
|
+
end
|
52
|
+
# verify the required parameter 'id' is set
|
53
|
+
if @api_client.config.client_side_validation && id.nil?
|
54
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WalletApi.delete_wallet"
|
55
|
+
end
|
56
|
+
# verify the required parameter 'origin' is set
|
57
|
+
if @api_client.config.client_side_validation && origin.nil?
|
58
|
+
fail ArgumentError, "Missing the required parameter 'origin' when calling WalletApi.delete_wallet"
|
59
|
+
end
|
60
|
+
# resource path
|
61
|
+
local_var_path = "/wallets/{id}".sub('{' + 'id' + '}', id.to_s)
|
62
|
+
|
63
|
+
# query parameters
|
64
|
+
query_params = {}
|
65
|
+
query_params[:'origin'] = origin
|
66
|
+
query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
|
67
|
+
query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
68
|
+
query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
69
|
+
query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
|
70
|
+
|
71
|
+
# header parameters
|
72
|
+
header_params = {}
|
73
|
+
# HTTP header 'Accept' (if needed)
|
74
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
75
|
+
# HTTP header 'Content-Type'
|
76
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
77
|
+
|
78
|
+
# form parameters
|
79
|
+
form_params = {}
|
80
|
+
|
81
|
+
# http body (model)
|
82
|
+
post_body = nil
|
83
|
+
auth_names = ['api_key']
|
84
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
85
|
+
:header_params => header_params,
|
86
|
+
:query_params => query_params,
|
87
|
+
:form_params => form_params,
|
88
|
+
:body => post_body,
|
89
|
+
:auth_names => auth_names,
|
90
|
+
:return_type => 'InlineResponse20025')
|
91
|
+
if @api_client.config.debugging
|
92
|
+
@api_client.config.logger.debug "API called: WalletApi#delete_wallet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
93
|
+
end
|
94
|
+
return data, status_code, headers
|
95
|
+
end
|
96
|
+
|
97
|
+
# get a wallet
|
98
|
+
#
|
99
|
+
# @param id Object internal id.
|
100
|
+
# @param [Hash] opts the optional parameters
|
101
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
102
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
103
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
104
|
+
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
105
|
+
# @return [InlineResponse20025]
|
106
|
+
def get_wallet(id, opts = {})
|
107
|
+
data, _status_code, _headers = get_wallet_with_http_info(id, opts)
|
108
|
+
return data
|
109
|
+
end
|
110
|
+
|
111
|
+
# get a wallet
|
112
|
+
#
|
113
|
+
# @param id Object internal id.
|
114
|
+
# @param [Hash] opts the optional parameters
|
115
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
116
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
117
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
118
|
+
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
119
|
+
# @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
|
120
|
+
def get_wallet_with_http_info(id, opts = {})
|
121
|
+
if @api_client.config.debugging
|
122
|
+
@api_client.config.logger.debug "Calling API: WalletApi.get_wallet ..."
|
123
|
+
end
|
124
|
+
# verify the required parameter 'id' is set
|
125
|
+
if @api_client.config.client_side_validation && id.nil?
|
126
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WalletApi.get_wallet"
|
127
|
+
end
|
128
|
+
# resource path
|
129
|
+
local_var_path = "/wallets/{id}".sub('{' + 'id' + '}', id.to_s)
|
130
|
+
|
131
|
+
# query parameters
|
132
|
+
query_params = {}
|
133
|
+
query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
|
134
|
+
query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
135
|
+
query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
136
|
+
query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
|
137
|
+
|
138
|
+
# header parameters
|
139
|
+
header_params = {}
|
140
|
+
# HTTP header 'Accept' (if needed)
|
141
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
142
|
+
# HTTP header 'Content-Type'
|
143
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
144
|
+
|
145
|
+
# form parameters
|
146
|
+
form_params = {}
|
147
|
+
|
148
|
+
# http body (model)
|
149
|
+
post_body = nil
|
150
|
+
auth_names = ['api_key']
|
151
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
152
|
+
:header_params => header_params,
|
153
|
+
:query_params => query_params,
|
154
|
+
:form_params => form_params,
|
155
|
+
:body => post_body,
|
156
|
+
:auth_names => auth_names,
|
157
|
+
:return_type => 'InlineResponse20025')
|
158
|
+
if @api_client.config.debugging
|
159
|
+
@api_client.config.logger.debug "API called: WalletApi#get_wallet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
160
|
+
end
|
161
|
+
return data, status_code, headers
|
162
|
+
end
|
163
|
+
|
164
|
+
# search wallets
|
165
|
+
# Get wallets from the system that match the search criteria.
|
166
|
+
# @param [Hash] opts the optional parameters
|
167
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
168
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
169
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
170
|
+
# @option opts [Integer] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
171
|
+
# @option opts [Integer] :wallet_id Wallet's unique id.
|
172
|
+
# @option opts [String] :wallet_status Wallet's status: * **validated**: Wallet is active. It is possible to deposit to or retrieve money from the wallet. * **cancelled**: Wallet is closed. No action possible, there is no money in the wallet, it was closed by an operator or by the user. * **pending**: Wallet being validated (e.g. suspected fraud, late submission of documents' validation ... KYC ). In this case, it is not possible to use the wallet for transactions.
|
173
|
+
# @option opts [Integer] :user_id Wallet owner's id.
|
174
|
+
# @option opts [Integer] :parent_user_id Parent user id of the wallet owner
|
175
|
+
# @option opts [String] :wallet_tag Custom data.
|
176
|
+
# @option opts [Integer] :wallet_type_id Wallet type id. The following values are defined: | Id | Description | |----|----| | 9 | Electronic Money Wallet | | 10 | Payment Account Wallet | | 13 | Mirror Wallet | | 14 | Electronic Money Card (Internal only) |
|
177
|
+
# @option opts [String] :event_name Event name that will be used as wallet name. For example, in a wedding list: Wedding of X and Y
|
178
|
+
# @option opts [String] :event_alias Short url wallet name. It's automatically generated by the system, but it could be modified and customised by the user. For example: www.domain.com/wallet=mywedding
|
179
|
+
# @option opts [DateTime] :event_payin_start_date Wallet activation date. The date from which you can deposit money on the wallet. Format : YYYY-MM-DD HH:MM:SS
|
180
|
+
# @option opts [DateTime] :event_payin_end_date Deadline to money deposit on the wallet. Format : YYYY-MM-DD HH:MM:SS
|
181
|
+
# @option opts [Integer] :tariff_id Wallet pricing id.
|
182
|
+
# @option opts [Integer] :payin_count Number of payin done on the wallet.
|
183
|
+
# @option opts [String] :solde Wallet current balance.
|
184
|
+
# @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
|
185
|
+
# @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
|
186
|
+
# @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
|
187
|
+
# @option opts [String] :sort_order The order you want to sort the list. * **DESC** for a descending sort * **ASC** for a ascending sort. Default value : DESC. More info [here](https://agent.treezor.com/lists).
|
188
|
+
# @option opts [DateTime] :created_date_from The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
189
|
+
# @option opts [DateTime] :created_date_to The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
190
|
+
# @option opts [DateTime] :updated_date_from The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
191
|
+
# @option opts [DateTime] :updated_date_to The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
192
|
+
# @return [InlineResponse20025]
|
193
|
+
def get_wallets(opts = {})
|
194
|
+
data, _status_code, _headers = get_wallets_with_http_info(opts)
|
195
|
+
return data
|
196
|
+
end
|
197
|
+
|
198
|
+
# search wallets
|
199
|
+
# Get wallets from the system that match the search criteria.
|
200
|
+
# @param [Hash] opts the optional parameters
|
201
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
202
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
203
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
204
|
+
# @option opts [Integer] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
205
|
+
# @option opts [Integer] :wallet_id Wallet's unique id.
|
206
|
+
# @option opts [String] :wallet_status Wallet's status: * **validated**: Wallet is active. It is possible to deposit to or retrieve money from the wallet. * **cancelled**: Wallet is closed. No action possible, there is no money in the wallet, it was closed by an operator or by the user. * **pending**: Wallet being validated (e.g. suspected fraud, late submission of documents' validation ... KYC ). In this case, it is not possible to use the wallet for transactions.
|
207
|
+
# @option opts [Integer] :user_id Wallet owner's id.
|
208
|
+
# @option opts [Integer] :parent_user_id Parent user id of the wallet owner
|
209
|
+
# @option opts [String] :wallet_tag Custom data.
|
210
|
+
# @option opts [Integer] :wallet_type_id Wallet type id. The following values are defined: | Id | Description | |----|----| | 9 | Electronic Money Wallet | | 10 | Payment Account Wallet | | 13 | Mirror Wallet | | 14 | Electronic Money Card (Internal only) |
|
211
|
+
# @option opts [String] :event_name Event name that will be used as wallet name. For example, in a wedding list: Wedding of X and Y
|
212
|
+
# @option opts [String] :event_alias Short url wallet name. It's automatically generated by the system, but it could be modified and customised by the user. For example: www.domain.com/wallet=mywedding
|
213
|
+
# @option opts [DateTime] :event_payin_start_date Wallet activation date. The date from which you can deposit money on the wallet. Format : YYYY-MM-DD HH:MM:SS
|
214
|
+
# @option opts [DateTime] :event_payin_end_date Deadline to money deposit on the wallet. Format : YYYY-MM-DD HH:MM:SS
|
215
|
+
# @option opts [Integer] :tariff_id Wallet pricing id.
|
216
|
+
# @option opts [Integer] :payin_count Number of payin done on the wallet.
|
217
|
+
# @option opts [String] :solde Wallet current balance.
|
218
|
+
# @option opts [Integer] :page_number Pagination page number. More info [here](https://agent.treezor.com/lists).
|
219
|
+
# @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
|
220
|
+
# @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://agent.treezor.com/lists).
|
221
|
+
# @option opts [String] :sort_order The order you want to sort the list. * **DESC** for a descending sort * **ASC** for a ascending sort. Default value : DESC. More info [here](https://agent.treezor.com/lists).
|
222
|
+
# @option opts [DateTime] :created_date_from The creation date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
223
|
+
# @option opts [DateTime] :created_date_to The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
224
|
+
# @option opts [DateTime] :updated_date_from The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
225
|
+
# @option opts [DateTime] :updated_date_to The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
226
|
+
# @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
|
227
|
+
def get_wallets_with_http_info(opts = {})
|
228
|
+
if @api_client.config.debugging
|
229
|
+
@api_client.config.logger.debug "Calling API: WalletApi.get_wallets ..."
|
230
|
+
end
|
231
|
+
# resource path
|
232
|
+
local_var_path = "/wallets"
|
233
|
+
|
234
|
+
# query parameters
|
235
|
+
query_params = {}
|
236
|
+
query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
|
237
|
+
query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
238
|
+
query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
239
|
+
query_params[:'accessUserIP'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
|
240
|
+
query_params[:'walletId'] = opts[:'wallet_id'] if !opts[:'wallet_id'].nil?
|
241
|
+
query_params[:'walletStatus'] = opts[:'wallet_status'] if !opts[:'wallet_status'].nil?
|
242
|
+
query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
|
243
|
+
query_params[:'parentUserId'] = opts[:'parent_user_id'] if !opts[:'parent_user_id'].nil?
|
244
|
+
query_params[:'walletTag'] = opts[:'wallet_tag'] if !opts[:'wallet_tag'].nil?
|
245
|
+
query_params[:'walletTypeId'] = opts[:'wallet_type_id'] if !opts[:'wallet_type_id'].nil?
|
246
|
+
query_params[:'eventName'] = opts[:'event_name'] if !opts[:'event_name'].nil?
|
247
|
+
query_params[:'eventAlias'] = opts[:'event_alias'] if !opts[:'event_alias'].nil?
|
248
|
+
query_params[:'eventPayinStartDate'] = opts[:'event_payin_start_date'] if !opts[:'event_payin_start_date'].nil?
|
249
|
+
query_params[:'eventPayinEndDate'] = opts[:'event_payin_end_date'] if !opts[:'event_payin_end_date'].nil?
|
250
|
+
query_params[:'tariffId'] = opts[:'tariff_id'] if !opts[:'tariff_id'].nil?
|
251
|
+
query_params[:'payinCount'] = opts[:'payin_count'] if !opts[:'payin_count'].nil?
|
252
|
+
query_params[:'solde'] = opts[:'solde'] if !opts[:'solde'].nil?
|
253
|
+
query_params[:'pageNumber'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
254
|
+
query_params[:'pageCount'] = opts[:'page_count'] if !opts[:'page_count'].nil?
|
255
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
256
|
+
query_params[:'sortOrder'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
257
|
+
query_params[:'createdDateFrom'] = opts[:'created_date_from'] if !opts[:'created_date_from'].nil?
|
258
|
+
query_params[:'createdDateTo'] = opts[:'created_date_to'] if !opts[:'created_date_to'].nil?
|
259
|
+
query_params[:'updatedDateFrom'] = opts[:'updated_date_from'] if !opts[:'updated_date_from'].nil?
|
260
|
+
query_params[:'updatedDateTo'] = opts[:'updated_date_to'] if !opts[:'updated_date_to'].nil?
|
261
|
+
|
262
|
+
# header parameters
|
263
|
+
header_params = {}
|
264
|
+
# HTTP header 'Accept' (if needed)
|
265
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
266
|
+
# HTTP header 'Content-Type'
|
267
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
268
|
+
|
269
|
+
# form parameters
|
270
|
+
form_params = {}
|
271
|
+
|
272
|
+
# http body (model)
|
273
|
+
post_body = nil
|
274
|
+
auth_names = ['api_key']
|
275
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
276
|
+
:header_params => header_params,
|
277
|
+
:query_params => query_params,
|
278
|
+
:form_params => form_params,
|
279
|
+
:body => post_body,
|
280
|
+
:auth_names => auth_names,
|
281
|
+
:return_type => 'InlineResponse20025')
|
282
|
+
if @api_client.config.debugging
|
283
|
+
@api_client.config.logger.debug "API called: WalletApi#get_wallets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
284
|
+
end
|
285
|
+
return data, status_code, headers
|
286
|
+
end
|
287
|
+
|
288
|
+
# create a wallet
|
289
|
+
# Create a new wallet in the system..
|
290
|
+
# @param wallet_type_id Wallet type id. The following values are defined: | Id | Description | |----|----| | 9 | Electronic Money Wallet | | 10 | Payment Account Wallet | | 13 | Mirror Wallet | | 14 | Electronic Money Card (Internal only) |
|
291
|
+
# @param tariff_id Wallet pricing id.
|
292
|
+
# @param user_id Wallet owner's id.
|
293
|
+
# @param currency The currency that will be used for all wallet money transactions format : ISO 4217 3-letter code for each currency : Euro = EUR ; US Dollar = USD … Default currency will be same as the wallet
|
294
|
+
# @param event_name Event name that will be used as wallet name. For example, in a wedding list: Wedding of X and Y
|
295
|
+
# @param [Hash] opts the optional parameters
|
296
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
297
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
298
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
299
|
+
# @option opts [Integer] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
300
|
+
# @option opts [Integer] :joint_user_id Wallet co-owner's id. This user will not be allowed to collect the money from the wallet.
|
301
|
+
# @option opts [String] :wallet_tag Custom data
|
302
|
+
# @option opts [Float] :load Initial loading amount.
|
303
|
+
# @option opts [String] :event_alias Short url wallet name. It's automatically generated by the system, but it could be modified and customised by the user. For example: www.domain.com/wallet=mywedding. Please note that the eventAlias must be unique.
|
304
|
+
# @option opts [Date] :event_date Wallet event date. Format : YYYY-MM-DD. Default: Created date + 7 days.
|
305
|
+
# @option opts [String] :event_message It can be a description of the wallet.
|
306
|
+
# @option opts [Date] :event_payin_start_date Wallet activation date. The date from which you can deposit money on the wallet. Format : YYYY-MM-DD. If null, the default date will be the created date of the wallet.
|
307
|
+
# @option opts [Date] :event_payin_end_date Deadline to money deposit on the wallet. Format : YYYY-MM-DD. If null, the money can be deposited indefinitely on the wallet
|
308
|
+
# @return [InlineResponse20025]
|
309
|
+
def post_wallets(wallet_type_id, tariff_id, user_id, currency, event_name, opts = {})
|
310
|
+
data, _status_code, _headers = post_wallets_with_http_info(wallet_type_id, tariff_id, user_id, currency, event_name, opts)
|
311
|
+
return data
|
312
|
+
end
|
313
|
+
|
314
|
+
# create a wallet
|
315
|
+
# Create a new wallet in the system..
|
316
|
+
# @param wallet_type_id Wallet type id. The following values are defined: | Id | Description | |----|----| | 9 | Electronic Money Wallet | | 10 | Payment Account Wallet | | 13 | Mirror Wallet | | 14 | Electronic Money Card (Internal only) |
|
317
|
+
# @param tariff_id Wallet pricing id.
|
318
|
+
# @param user_id Wallet owner's id.
|
319
|
+
# @param currency The currency that will be used for all wallet money transactions format : ISO 4217 3-letter code for each currency : Euro = EUR ; US Dollar = USD … Default currency will be same as the wallet
|
320
|
+
# @param event_name Event name that will be used as wallet name. For example, in a wedding list: Wedding of X and Y
|
321
|
+
# @param [Hash] opts the optional parameters
|
322
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
323
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
324
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
325
|
+
# @option opts [Integer] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
326
|
+
# @option opts [Integer] :joint_user_id Wallet co-owner's id. This user will not be allowed to collect the money from the wallet.
|
327
|
+
# @option opts [String] :wallet_tag Custom data
|
328
|
+
# @option opts [Float] :load Initial loading amount.
|
329
|
+
# @option opts [String] :event_alias Short url wallet name. It's automatically generated by the system, but it could be modified and customised by the user. For example: www.domain.com/wallet=mywedding. Please note that the eventAlias must be unique.
|
330
|
+
# @option opts [Date] :event_date Wallet event date. Format : YYYY-MM-DD. Default: Created date + 7 days.
|
331
|
+
# @option opts [String] :event_message It can be a description of the wallet.
|
332
|
+
# @option opts [Date] :event_payin_start_date Wallet activation date. The date from which you can deposit money on the wallet. Format : YYYY-MM-DD. If null, the default date will be the created date of the wallet.
|
333
|
+
# @option opts [Date] :event_payin_end_date Deadline to money deposit on the wallet. Format : YYYY-MM-DD. If null, the money can be deposited indefinitely on the wallet
|
334
|
+
# @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
|
335
|
+
def post_wallets_with_http_info(wallet_type_id, tariff_id, user_id, currency, event_name, opts = {})
|
336
|
+
if @api_client.config.debugging
|
337
|
+
@api_client.config.logger.debug "Calling API: WalletApi.post_wallets ..."
|
338
|
+
end
|
339
|
+
# verify the required parameter 'wallet_type_id' is set
|
340
|
+
if @api_client.config.client_side_validation && wallet_type_id.nil?
|
341
|
+
fail ArgumentError, "Missing the required parameter 'wallet_type_id' when calling WalletApi.post_wallets"
|
342
|
+
end
|
343
|
+
# verify the required parameter 'tariff_id' is set
|
344
|
+
if @api_client.config.client_side_validation && tariff_id.nil?
|
345
|
+
fail ArgumentError, "Missing the required parameter 'tariff_id' when calling WalletApi.post_wallets"
|
346
|
+
end
|
347
|
+
# verify the required parameter 'user_id' is set
|
348
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
349
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling WalletApi.post_wallets"
|
350
|
+
end
|
351
|
+
# verify the required parameter 'currency' is set
|
352
|
+
if @api_client.config.client_side_validation && currency.nil?
|
353
|
+
fail ArgumentError, "Missing the required parameter 'currency' when calling WalletApi.post_wallets"
|
354
|
+
end
|
355
|
+
# verify the required parameter 'event_name' is set
|
356
|
+
if @api_client.config.client_side_validation && event_name.nil?
|
357
|
+
fail ArgumentError, "Missing the required parameter 'event_name' when calling WalletApi.post_wallets"
|
358
|
+
end
|
359
|
+
# resource path
|
360
|
+
local_var_path = "/wallets"
|
361
|
+
|
362
|
+
# query parameters
|
363
|
+
query_params = {}
|
364
|
+
query_params[:'walletTypeId'] = wallet_type_id
|
365
|
+
query_params[:'tariffId'] = tariff_id
|
366
|
+
query_params[:'userId'] = user_id
|
367
|
+
query_params[:'currency'] = currency
|
368
|
+
query_params[:'eventName'] = event_name
|
369
|
+
query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
|
370
|
+
query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
371
|
+
query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
372
|
+
query_params[:'accessUserIP'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
|
373
|
+
query_params[:'jointUserId'] = opts[:'joint_user_id'] if !opts[:'joint_user_id'].nil?
|
374
|
+
query_params[:'walletTag'] = opts[:'wallet_tag'] if !opts[:'wallet_tag'].nil?
|
375
|
+
query_params[:'load'] = opts[:'load'] if !opts[:'load'].nil?
|
376
|
+
query_params[:'eventAlias'] = opts[:'event_alias'] if !opts[:'event_alias'].nil?
|
377
|
+
query_params[:'eventDate'] = opts[:'event_date'] if !opts[:'event_date'].nil?
|
378
|
+
query_params[:'eventMessage'] = opts[:'event_message'] if !opts[:'event_message'].nil?
|
379
|
+
query_params[:'eventPayinStartDate'] = opts[:'event_payin_start_date'] if !opts[:'event_payin_start_date'].nil?
|
380
|
+
query_params[:'eventPayinEndDate'] = opts[:'event_payin_end_date'] if !opts[:'event_payin_end_date'].nil?
|
381
|
+
|
382
|
+
# header parameters
|
383
|
+
header_params = {}
|
384
|
+
# HTTP header 'Accept' (if needed)
|
385
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
386
|
+
# HTTP header 'Content-Type'
|
387
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
388
|
+
|
389
|
+
# form parameters
|
390
|
+
form_params = {}
|
391
|
+
|
392
|
+
# http body (model)
|
393
|
+
post_body = nil
|
394
|
+
auth_names = ['api_key']
|
395
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
396
|
+
:header_params => header_params,
|
397
|
+
:query_params => query_params,
|
398
|
+
:form_params => form_params,
|
399
|
+
:body => post_body,
|
400
|
+
:auth_names => auth_names,
|
401
|
+
:return_type => 'InlineResponse20025')
|
402
|
+
if @api_client.config.debugging
|
403
|
+
@api_client.config.logger.debug "API called: WalletApi#post_wallets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
404
|
+
end
|
405
|
+
return data, status_code, headers
|
406
|
+
end
|
407
|
+
|
408
|
+
# update a wallet
|
409
|
+
# Modifiy wallet information
|
410
|
+
# @param id Object internal id.
|
411
|
+
# @param [Hash] opts the optional parameters
|
412
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
413
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
414
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
415
|
+
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
416
|
+
# @option opts [String] :wallet_type_id Change wallet type id
|
417
|
+
# @option opts [String] :event_name Change event name
|
418
|
+
# @option opts [String] :event_alias Change event alias. Please note that the eventAlias must be unique.
|
419
|
+
# @option opts [String] :event_date Change event date
|
420
|
+
# @option opts [String] :event_message Change event message
|
421
|
+
# @option opts [String] :event_payin_start_date Change event payin starting date
|
422
|
+
# @option opts [String] :event_payin_end_date Change event payin end date
|
423
|
+
# @option opts [String] :url_image Change URL image
|
424
|
+
# @option opts [String] :image_name Change image name
|
425
|
+
# @option opts [String] :tariff_id Change tariff id
|
426
|
+
# @return [InlineResponse20025]
|
427
|
+
def put_wallet(id, opts = {})
|
428
|
+
data, _status_code, _headers = put_wallet_with_http_info(id, opts)
|
429
|
+
return data
|
430
|
+
end
|
431
|
+
|
432
|
+
# update a wallet
|
433
|
+
# Modifiy wallet information
|
434
|
+
# @param id Object internal id.
|
435
|
+
# @param [Hash] opts the optional parameters
|
436
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
437
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
438
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
439
|
+
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
440
|
+
# @option opts [String] :wallet_type_id Change wallet type id
|
441
|
+
# @option opts [String] :event_name Change event name
|
442
|
+
# @option opts [String] :event_alias Change event alias. Please note that the eventAlias must be unique.
|
443
|
+
# @option opts [String] :event_date Change event date
|
444
|
+
# @option opts [String] :event_message Change event message
|
445
|
+
# @option opts [String] :event_payin_start_date Change event payin starting date
|
446
|
+
# @option opts [String] :event_payin_end_date Change event payin end date
|
447
|
+
# @option opts [String] :url_image Change URL image
|
448
|
+
# @option opts [String] :image_name Change image name
|
449
|
+
# @option opts [String] :tariff_id Change tariff id
|
450
|
+
# @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
|
451
|
+
def put_wallet_with_http_info(id, opts = {})
|
452
|
+
if @api_client.config.debugging
|
453
|
+
@api_client.config.logger.debug "Calling API: WalletApi.put_wallet ..."
|
454
|
+
end
|
455
|
+
# verify the required parameter 'id' is set
|
456
|
+
if @api_client.config.client_side_validation && id.nil?
|
457
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WalletApi.put_wallet"
|
458
|
+
end
|
459
|
+
# resource path
|
460
|
+
local_var_path = "/wallets/{id}".sub('{' + 'id' + '}', id.to_s)
|
461
|
+
|
462
|
+
# query parameters
|
463
|
+
query_params = {}
|
464
|
+
query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
|
465
|
+
query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
466
|
+
query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
467
|
+
query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
|
468
|
+
query_params[:'walletTypeId'] = opts[:'wallet_type_id'] if !opts[:'wallet_type_id'].nil?
|
469
|
+
query_params[:'eventName'] = opts[:'event_name'] if !opts[:'event_name'].nil?
|
470
|
+
query_params[:'eventAlias'] = opts[:'event_alias'] if !opts[:'event_alias'].nil?
|
471
|
+
query_params[:'eventDate'] = opts[:'event_date'] if !opts[:'event_date'].nil?
|
472
|
+
query_params[:'eventMessage'] = opts[:'event_message'] if !opts[:'event_message'].nil?
|
473
|
+
query_params[:'eventPayinStartDate'] = opts[:'event_payin_start_date'] if !opts[:'event_payin_start_date'].nil?
|
474
|
+
query_params[:'eventPayinEndDate'] = opts[:'event_payin_end_date'] if !opts[:'event_payin_end_date'].nil?
|
475
|
+
query_params[:'urlImage'] = opts[:'url_image'] if !opts[:'url_image'].nil?
|
476
|
+
query_params[:'imageName'] = opts[:'image_name'] if !opts[:'image_name'].nil?
|
477
|
+
query_params[:'tariffId'] = opts[:'tariff_id'] if !opts[:'tariff_id'].nil?
|
478
|
+
|
479
|
+
# header parameters
|
480
|
+
header_params = {}
|
481
|
+
# HTTP header 'Accept' (if needed)
|
482
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
483
|
+
# HTTP header 'Content-Type'
|
484
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
485
|
+
|
486
|
+
# form parameters
|
487
|
+
form_params = {}
|
488
|
+
|
489
|
+
# http body (model)
|
490
|
+
post_body = nil
|
491
|
+
auth_names = ['api_key']
|
492
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
493
|
+
:header_params => header_params,
|
494
|
+
:query_params => query_params,
|
495
|
+
:form_params => form_params,
|
496
|
+
:body => post_body,
|
497
|
+
:auth_names => auth_names,
|
498
|
+
:return_type => 'InlineResponse20025')
|
499
|
+
if @api_client.config.debugging
|
500
|
+
@api_client.config.logger.debug "API called: WalletApi#put_wallet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
501
|
+
end
|
502
|
+
return data, status_code, headers
|
503
|
+
end
|
504
|
+
end
|
505
|
+
end
|