treezor_client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,83 @@
|
|
|
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 HeartbeatApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# Get the status of the API
|
|
24
|
+
# Get Heartbeat of Treezor API
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @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).
|
|
27
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
28
|
+
# @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).
|
|
29
|
+
# @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).
|
|
30
|
+
# @return [nil]
|
|
31
|
+
def get_heartbeat(opts = {})
|
|
32
|
+
get_heartbeat_with_http_info(opts)
|
|
33
|
+
return nil
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Get the status of the API
|
|
37
|
+
# Get Heartbeat of Treezor API
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @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).
|
|
40
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
41
|
+
# @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).
|
|
42
|
+
# @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).
|
|
43
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
44
|
+
def get_heartbeat_with_http_info(opts = {})
|
|
45
|
+
if @api_client.config.debugging
|
|
46
|
+
@api_client.config.logger.debug "Calling API: HeartbeatApi.get_heartbeat ..."
|
|
47
|
+
end
|
|
48
|
+
# resource path
|
|
49
|
+
local_var_path = "/heartbeats"
|
|
50
|
+
|
|
51
|
+
# query parameters
|
|
52
|
+
query_params = {}
|
|
53
|
+
query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
|
|
54
|
+
query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
|
55
|
+
query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
|
56
|
+
query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
|
|
57
|
+
|
|
58
|
+
# header parameters
|
|
59
|
+
header_params = {}
|
|
60
|
+
# HTTP header 'Accept' (if needed)
|
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
62
|
+
# HTTP header 'Content-Type'
|
|
63
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
64
|
+
|
|
65
|
+
# form parameters
|
|
66
|
+
form_params = {}
|
|
67
|
+
|
|
68
|
+
# http body (model)
|
|
69
|
+
post_body = nil
|
|
70
|
+
auth_names = ['api_key']
|
|
71
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
72
|
+
:header_params => header_params,
|
|
73
|
+
:query_params => query_params,
|
|
74
|
+
:form_params => form_params,
|
|
75
|
+
:body => post_body,
|
|
76
|
+
:auth_names => auth_names)
|
|
77
|
+
if @api_client.config.debugging
|
|
78
|
+
@api_client.config.logger.debug "API called: HeartbeatApi#get_heartbeat\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
79
|
+
end
|
|
80
|
+
return data, status_code, headers
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
@@ -0,0 +1,165 @@
|
|
|
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 IssuerInitiatedDigitizationDataApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# Request the issuerInitiatedDigitizationData
|
|
24
|
+
# Create a new issuerInitiatedDigitizationData request
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://www.treezor.com/security-authentication).
|
|
27
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://www.treezor.com/basics).
|
|
28
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://www.treezor.com/basics).
|
|
29
|
+
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://www.treezor.com/basics).
|
|
30
|
+
# @option opts [Body] :body
|
|
31
|
+
# @return [InlineResponse200]
|
|
32
|
+
def tav_request_post(opts = {})
|
|
33
|
+
data, _status_code, _headers = tav_request_post_with_http_info(opts)
|
|
34
|
+
return data
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Request the issuerInitiatedDigitizationData
|
|
38
|
+
# Create a new issuerInitiatedDigitizationData request
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://www.treezor.com/security-authentication).
|
|
41
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://www.treezor.com/basics).
|
|
42
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://www.treezor.com/basics).
|
|
43
|
+
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://www.treezor.com/basics).
|
|
44
|
+
# @option opts [Body] :body
|
|
45
|
+
# @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
|
|
46
|
+
def tav_request_post_with_http_info(opts = {})
|
|
47
|
+
if @api_client.config.debugging
|
|
48
|
+
@api_client.config.logger.debug "Calling API: IssuerInitiatedDigitizationDataApi.tav_request_post ..."
|
|
49
|
+
end
|
|
50
|
+
# resource path
|
|
51
|
+
local_var_path = "/issuerInitiatedDigitizationDatas"
|
|
52
|
+
|
|
53
|
+
# query parameters
|
|
54
|
+
query_params = {}
|
|
55
|
+
query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
|
|
56
|
+
query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
|
57
|
+
query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
|
58
|
+
query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
|
|
59
|
+
|
|
60
|
+
# header parameters
|
|
61
|
+
header_params = {}
|
|
62
|
+
# HTTP header 'Accept' (if needed)
|
|
63
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
64
|
+
# HTTP header 'Content-Type'
|
|
65
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
66
|
+
|
|
67
|
+
# form parameters
|
|
68
|
+
form_params = {}
|
|
69
|
+
|
|
70
|
+
# http body (model)
|
|
71
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
|
72
|
+
auth_names = ['api_key']
|
|
73
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
74
|
+
:header_params => header_params,
|
|
75
|
+
:query_params => query_params,
|
|
76
|
+
:form_params => form_params,
|
|
77
|
+
:body => post_body,
|
|
78
|
+
:auth_names => auth_names,
|
|
79
|
+
:return_type => 'InlineResponse200')
|
|
80
|
+
if @api_client.config.debugging
|
|
81
|
+
@api_client.config.logger.debug "API called: IssuerInitiatedDigitizationDataApi#tav_request_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Search issuerInitiatedDigitizationData requests
|
|
87
|
+
# Search tav issuerInitiatedDigitizationData requests that match search criteria.
|
|
88
|
+
# @param [Hash] opts the optional parameters
|
|
89
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://www.treezor.com/security-authentication).
|
|
90
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://www.treezor.com/basics).
|
|
91
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://www.treezor.com/basics).
|
|
92
|
+
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://www.treezor.com/basics).
|
|
93
|
+
# @option opts [Array<String>] :fields List of the object's properties you want to pick up.
|
|
94
|
+
# @option opts [String] :filter You can filter the API response by using filter(s). Filterable fields are : - id - cardId - tokenRequestor - statusId - createdDate - modifiedDate Filters should be separated by a \";\". Example for 3 filters : FILTER1;FILTER2;FILTER3. A single filter has the following syntax : \"fieldName criterion expression\". Where : - fieldName : the name of a filterable field of this object. - expression : the values to be included or excluded (see the table below for more information) - criterion : a filter criterion. Here are the possible values for criterion : | Criteria | Description | Type | Expression Example | |----------|------------------------|------------------------------------------|--------------------| | > | greater than | alphanumeric string | 100 | | >= | greater or equal than | alphanumeric string | 100 | | < | less than | alphanumeric string | 100 | | <= | less or equal than | alphanumeric string | 100 | | != | not equal to | alphanumeric string | 100 | | like | like | alphanumeric string | 100 | | in | in | alphanumeric strings separated by commas | 100,30,25 | | == | equals | alphanumeric string | 100 |
|
|
95
|
+
# @option opts [Integer] :page_number Pagination page number. More info [here](https://www.treezor.com/lists).
|
|
96
|
+
# @option opts [Integer] :page_count The number of items per page. More info [here](https://www.treezor.com/lists).
|
|
97
|
+
# @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://www.treezor.com/lists).
|
|
98
|
+
# @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://www.treezor.com/lists).
|
|
99
|
+
# @return [InlineResponse200]
|
|
100
|
+
def tavrequestget(opts = {})
|
|
101
|
+
data, _status_code, _headers = tavrequestget_with_http_info(opts)
|
|
102
|
+
return data
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Search issuerInitiatedDigitizationData requests
|
|
106
|
+
# Search tav issuerInitiatedDigitizationData requests that match search criteria.
|
|
107
|
+
# @param [Hash] opts the optional parameters
|
|
108
|
+
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://www.treezor.com/security-authentication).
|
|
109
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://www.treezor.com/basics).
|
|
110
|
+
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://www.treezor.com/basics).
|
|
111
|
+
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://www.treezor.com/basics).
|
|
112
|
+
# @option opts [Array<String>] :fields List of the object's properties you want to pick up.
|
|
113
|
+
# @option opts [String] :filter You can filter the API response by using filter(s). Filterable fields are : - id - cardId - tokenRequestor - statusId - createdDate - modifiedDate Filters should be separated by a \";\". Example for 3 filters : FILTER1;FILTER2;FILTER3. A single filter has the following syntax : \"fieldName criterion expression\". Where : - fieldName : the name of a filterable field of this object. - expression : the values to be included or excluded (see the table below for more information) - criterion : a filter criterion. Here are the possible values for criterion : | Criteria | Description | Type | Expression Example | |----------|------------------------|------------------------------------------|--------------------| | > | greater than | alphanumeric string | 100 | | >= | greater or equal than | alphanumeric string | 100 | | < | less than | alphanumeric string | 100 | | <= | less or equal than | alphanumeric string | 100 | | != | not equal to | alphanumeric string | 100 | | like | like | alphanumeric string | 100 | | in | in | alphanumeric strings separated by commas | 100,30,25 | | == | equals | alphanumeric string | 100 |
|
|
114
|
+
# @option opts [Integer] :page_number Pagination page number. More info [here](https://www.treezor.com/lists).
|
|
115
|
+
# @option opts [Integer] :page_count The number of items per page. More info [here](https://www.treezor.com/lists).
|
|
116
|
+
# @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : _createdDate_. More info [here](https://www.treezor.com/lists).
|
|
117
|
+
# @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://www.treezor.com/lists).
|
|
118
|
+
# @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
|
|
119
|
+
def tavrequestget_with_http_info(opts = {})
|
|
120
|
+
if @api_client.config.debugging
|
|
121
|
+
@api_client.config.logger.debug "Calling API: IssuerInitiatedDigitizationDataApi.tavrequestget ..."
|
|
122
|
+
end
|
|
123
|
+
# resource path
|
|
124
|
+
local_var_path = "/issuerInitiatedDigitizationDatas"
|
|
125
|
+
|
|
126
|
+
# query parameters
|
|
127
|
+
query_params = {}
|
|
128
|
+
query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
|
|
129
|
+
query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
|
130
|
+
query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
|
131
|
+
query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
|
|
132
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
|
133
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
|
134
|
+
query_params[:'pageNumber'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
135
|
+
query_params[:'pageCount'] = opts[:'page_count'] if !opts[:'page_count'].nil?
|
|
136
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
|
137
|
+
query_params[:'sortOrder'] = opts[:'sort_order'] if !opts[:'sort_order'].nil?
|
|
138
|
+
|
|
139
|
+
# header parameters
|
|
140
|
+
header_params = {}
|
|
141
|
+
# HTTP header 'Accept' (if needed)
|
|
142
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
143
|
+
# HTTP header 'Content-Type'
|
|
144
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
145
|
+
|
|
146
|
+
# form parameters
|
|
147
|
+
form_params = {}
|
|
148
|
+
|
|
149
|
+
# http body (model)
|
|
150
|
+
post_body = nil
|
|
151
|
+
auth_names = ['api_key']
|
|
152
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
153
|
+
:header_params => header_params,
|
|
154
|
+
:query_params => query_params,
|
|
155
|
+
:form_params => form_params,
|
|
156
|
+
:body => post_body,
|
|
157
|
+
:auth_names => auth_names,
|
|
158
|
+
:return_type => 'InlineResponse200')
|
|
159
|
+
if @api_client.config.debugging
|
|
160
|
+
@api_client.config.logger.debug "API called: IssuerInitiatedDigitizationDataApi#tavrequestget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
161
|
+
end
|
|
162
|
+
return data, status_code, headers
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
end
|
|
@@ -0,0 +1,543 @@
|
|
|
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 MandateApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# revoke a mandate
|
|
24
|
+
# Change mandate's status to canceled.
|
|
25
|
+
# @param id Mandate's internal id.
|
|
26
|
+
# @param origin The origin of the request for revocation
|
|
27
|
+
# @param [Hash] opts the optional parameters
|
|
28
|
+
# @return [InlineResponse20012]
|
|
29
|
+
def delete_mandate(id, origin, opts = {})
|
|
30
|
+
data, _status_code, _headers = delete_mandate_with_http_info(id, origin, opts)
|
|
31
|
+
return data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# revoke a mandate
|
|
35
|
+
# Change mandate's status to canceled.
|
|
36
|
+
# @param id Mandate's internal id.
|
|
37
|
+
# @param origin The origin of the request for revocation
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
|
|
40
|
+
def delete_mandate_with_http_info(id, origin, opts = {})
|
|
41
|
+
if @api_client.config.debugging
|
|
42
|
+
@api_client.config.logger.debug "Calling API: MandateApi.delete_mandate ..."
|
|
43
|
+
end
|
|
44
|
+
# verify the required parameter 'id' is set
|
|
45
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
46
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MandateApi.delete_mandate"
|
|
47
|
+
end
|
|
48
|
+
# verify the required parameter 'origin' is set
|
|
49
|
+
if @api_client.config.client_side_validation && origin.nil?
|
|
50
|
+
fail ArgumentError, "Missing the required parameter 'origin' when calling MandateApi.delete_mandate"
|
|
51
|
+
end
|
|
52
|
+
# verify enum value
|
|
53
|
+
if @api_client.config.client_side_validation && !['CREDITOR', 'DEBITOR'].include?(origin)
|
|
54
|
+
fail ArgumentError, "invalid value for 'origin', must be one of CREDITOR, DEBITOR"
|
|
55
|
+
end
|
|
56
|
+
# resource path
|
|
57
|
+
local_var_path = "/mandates/{id}".sub('{' + 'id' + '}', id.to_s)
|
|
58
|
+
|
|
59
|
+
# query parameters
|
|
60
|
+
query_params = {}
|
|
61
|
+
query_params[:'origin'] = origin
|
|
62
|
+
|
|
63
|
+
# header parameters
|
|
64
|
+
header_params = {}
|
|
65
|
+
# HTTP header 'Accept' (if needed)
|
|
66
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
67
|
+
# HTTP header 'Content-Type'
|
|
68
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
69
|
+
|
|
70
|
+
# form parameters
|
|
71
|
+
form_params = {}
|
|
72
|
+
|
|
73
|
+
# http body (model)
|
|
74
|
+
post_body = nil
|
|
75
|
+
auth_names = ['api_key']
|
|
76
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
77
|
+
:header_params => header_params,
|
|
78
|
+
:query_params => query_params,
|
|
79
|
+
:form_params => form_params,
|
|
80
|
+
:body => post_body,
|
|
81
|
+
:auth_names => auth_names,
|
|
82
|
+
:return_type => 'InlineResponse20012')
|
|
83
|
+
if @api_client.config.debugging
|
|
84
|
+
@api_client.config.logger.debug "API called: MandateApi#delete_mandate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
85
|
+
end
|
|
86
|
+
return data, status_code, headers
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# get mandate
|
|
90
|
+
# Get a mandate from the system.
|
|
91
|
+
# @param id Mandate's internal id.
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [InlineResponse20012]
|
|
94
|
+
def get_mandate(id, opts = {})
|
|
95
|
+
data, _status_code, _headers = get_mandate_with_http_info(id, opts)
|
|
96
|
+
return data
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# get mandate
|
|
100
|
+
# Get a mandate from the system.
|
|
101
|
+
# @param id Mandate's internal id.
|
|
102
|
+
# @param [Hash] opts the optional parameters
|
|
103
|
+
# @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
|
|
104
|
+
def get_mandate_with_http_info(id, opts = {})
|
|
105
|
+
if @api_client.config.debugging
|
|
106
|
+
@api_client.config.logger.debug "Calling API: MandateApi.get_mandate ..."
|
|
107
|
+
end
|
|
108
|
+
# verify the required parameter 'id' is set
|
|
109
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
110
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MandateApi.get_mandate"
|
|
111
|
+
end
|
|
112
|
+
# resource path
|
|
113
|
+
local_var_path = "/mandates/{id}".sub('{' + 'id' + '}', id.to_s)
|
|
114
|
+
|
|
115
|
+
# query parameters
|
|
116
|
+
query_params = {}
|
|
117
|
+
|
|
118
|
+
# header parameters
|
|
119
|
+
header_params = {}
|
|
120
|
+
# HTTP header 'Accept' (if needed)
|
|
121
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
122
|
+
# HTTP header 'Content-Type'
|
|
123
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
124
|
+
|
|
125
|
+
# form parameters
|
|
126
|
+
form_params = {}
|
|
127
|
+
|
|
128
|
+
# http body (model)
|
|
129
|
+
post_body = nil
|
|
130
|
+
auth_names = ['api_key']
|
|
131
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
132
|
+
:header_params => header_params,
|
|
133
|
+
:query_params => query_params,
|
|
134
|
+
:form_params => form_params,
|
|
135
|
+
:body => post_body,
|
|
136
|
+
:auth_names => auth_names,
|
|
137
|
+
:return_type => 'InlineResponse20012')
|
|
138
|
+
if @api_client.config.debugging
|
|
139
|
+
@api_client.config.logger.debug "API called: MandateApi#get_mandate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
140
|
+
end
|
|
141
|
+
return data, status_code, headers
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# search mandates
|
|
145
|
+
# Get mandates that match search criteria.
|
|
146
|
+
# @param [Hash] opts the optional parameters
|
|
147
|
+
# @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).
|
|
148
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
149
|
+
# @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).
|
|
150
|
+
# @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).
|
|
151
|
+
# @option opts [Integer] :mandate_id Mandate's Id
|
|
152
|
+
# @option opts [Integer] :user_id User's id who initiates the mandate request.
|
|
153
|
+
# @option opts [String] :unique_mandate_reference Unique Mandate Reference (UMR) of the searched mandate. It is a sequence of characters that ensures the mandate traceability. UMR coupled with SCI allows to uniquely identify a creditor and a contract for any mandate. It is provided at the mandate creation.
|
|
154
|
+
# @option opts [String] :mandate_status Mandate's status. Possible values: * CANCELED * PENDING * VALIDATED
|
|
155
|
+
# @option opts [String] :filter You can filter the API response by using filter(s). Filters should be separated by a \";\". Example for 3 filters : FILTER1;FILTER2;FILTER3. A single filter has the following syntax : \"fieldName criterion expression\". Where : - fieldName : the name of a filterable field of this object. - expression : the values to be included or excluded (see the table below for more information) - criterion : a filter criterion. Here are the possible values for criterion : | Criteria | Description | Type | Expression Example | |----------|------------------------|------------------------------------------|--------------------| | > | greater than | alphanumeric string | 100 | | >= | greater or equal than | alphanumeric string | 100 | | < | less than | alphanumeric string | 100 | | <= | less or equal than | alphanumeric string | 100 | | != | not equal to | alphanumeric string | 100 | | like | like | alphanumeric string | 100 | | in | in | alphanumeric strings separated by commas | 100,30,25 | | == | equals | alphanumeric string | 100 |
|
|
156
|
+
# @return [InlineResponse20012]
|
|
157
|
+
def get_mandates(opts = {})
|
|
158
|
+
data, _status_code, _headers = get_mandates_with_http_info(opts)
|
|
159
|
+
return data
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# search mandates
|
|
163
|
+
# Get mandates that match search criteria.
|
|
164
|
+
# @param [Hash] opts the optional parameters
|
|
165
|
+
# @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).
|
|
166
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
167
|
+
# @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).
|
|
168
|
+
# @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).
|
|
169
|
+
# @option opts [Integer] :mandate_id Mandate's Id
|
|
170
|
+
# @option opts [Integer] :user_id User's id who initiates the mandate request.
|
|
171
|
+
# @option opts [String] :unique_mandate_reference Unique Mandate Reference (UMR) of the searched mandate. It is a sequence of characters that ensures the mandate traceability. UMR coupled with SCI allows to uniquely identify a creditor and a contract for any mandate. It is provided at the mandate creation.
|
|
172
|
+
# @option opts [String] :mandate_status Mandate's status. Possible values: * CANCELED * PENDING * VALIDATED
|
|
173
|
+
# @option opts [String] :filter You can filter the API response by using filter(s). Filters should be separated by a \";\". Example for 3 filters : FILTER1;FILTER2;FILTER3. A single filter has the following syntax : \"fieldName criterion expression\". Where : - fieldName : the name of a filterable field of this object. - expression : the values to be included or excluded (see the table below for more information) - criterion : a filter criterion. Here are the possible values for criterion : | Criteria | Description | Type | Expression Example | |----------|------------------------|------------------------------------------|--------------------| | > | greater than | alphanumeric string | 100 | | >= | greater or equal than | alphanumeric string | 100 | | < | less than | alphanumeric string | 100 | | <= | less or equal than | alphanumeric string | 100 | | != | not equal to | alphanumeric string | 100 | | like | like | alphanumeric string | 100 | | in | in | alphanumeric strings separated by commas | 100,30,25 | | == | equals | alphanumeric string | 100 |
|
|
174
|
+
# @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
|
|
175
|
+
def get_mandates_with_http_info(opts = {})
|
|
176
|
+
if @api_client.config.debugging
|
|
177
|
+
@api_client.config.logger.debug "Calling API: MandateApi.get_mandates ..."
|
|
178
|
+
end
|
|
179
|
+
# resource path
|
|
180
|
+
local_var_path = "/mandates"
|
|
181
|
+
|
|
182
|
+
# query parameters
|
|
183
|
+
query_params = {}
|
|
184
|
+
query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
|
|
185
|
+
query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
|
186
|
+
query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
|
187
|
+
query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
|
|
188
|
+
query_params[:'mandateId'] = opts[:'mandate_id'] if !opts[:'mandate_id'].nil?
|
|
189
|
+
query_params[:'userId'] = opts[:'user_id'] if !opts[:'user_id'].nil?
|
|
190
|
+
query_params[:'uniqueMandateReference'] = opts[:'unique_mandate_reference'] if !opts[:'unique_mandate_reference'].nil?
|
|
191
|
+
query_params[:'mandateStatus'] = opts[:'mandate_status'] if !opts[:'mandate_status'].nil?
|
|
192
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
|
193
|
+
|
|
194
|
+
# header parameters
|
|
195
|
+
header_params = {}
|
|
196
|
+
# HTTP header 'Accept' (if needed)
|
|
197
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
198
|
+
# HTTP header 'Content-Type'
|
|
199
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
200
|
+
|
|
201
|
+
# form parameters
|
|
202
|
+
form_params = {}
|
|
203
|
+
|
|
204
|
+
# http body (model)
|
|
205
|
+
post_body = nil
|
|
206
|
+
auth_names = ['api_key']
|
|
207
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
208
|
+
:header_params => header_params,
|
|
209
|
+
:query_params => query_params,
|
|
210
|
+
:form_params => form_params,
|
|
211
|
+
:body => post_body,
|
|
212
|
+
:auth_names => auth_names,
|
|
213
|
+
:return_type => 'InlineResponse20012')
|
|
214
|
+
if @api_client.config.debugging
|
|
215
|
+
@api_client.config.logger.debug "API called: MandateApi#get_mandates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
216
|
+
end
|
|
217
|
+
return data, status_code, headers
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# send an OTP
|
|
221
|
+
# Send an OTP to sign a specific mandate. The OTP will be sent to the user's mobile phone OR to a specific mobile phone number in the request.
|
|
222
|
+
# @param id Mandate's id.
|
|
223
|
+
# @param access_token Access token must be defined here or in Authorization HTTP header. More info [here](https://agent.treezor.com/security-authentication).
|
|
224
|
+
# @param 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).
|
|
225
|
+
# @param user_id User's id who initiates the mandate request.
|
|
226
|
+
# @param [Hash] opts the optional parameters
|
|
227
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
228
|
+
# @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).
|
|
229
|
+
# @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).
|
|
230
|
+
# @option opts [String] :debtor_mobile Debtor's mobile phone number. Used to send the OTP for signature
|
|
231
|
+
# @return [InlineResponse20012]
|
|
232
|
+
def mandates_id_resend_otp_put(id, access_token, access_signature, user_id, opts = {})
|
|
233
|
+
data, _status_code, _headers = mandates_id_resend_otp_put_with_http_info(id, access_token, access_signature, user_id, opts)
|
|
234
|
+
return data
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# send an OTP
|
|
238
|
+
# Send an OTP to sign a specific mandate. The OTP will be sent to the user's mobile phone OR to a specific mobile phone number in the request.
|
|
239
|
+
# @param id Mandate's id.
|
|
240
|
+
# @param access_token Access token must be defined here or in Authorization HTTP header. More info [here](https://agent.treezor.com/security-authentication).
|
|
241
|
+
# @param 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).
|
|
242
|
+
# @param user_id User's id who initiates the mandate request.
|
|
243
|
+
# @param [Hash] opts the optional parameters
|
|
244
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
245
|
+
# @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).
|
|
246
|
+
# @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).
|
|
247
|
+
# @option opts [String] :debtor_mobile Debtor's mobile phone number. Used to send the OTP for signature
|
|
248
|
+
# @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
|
|
249
|
+
def mandates_id_resend_otp_put_with_http_info(id, access_token, access_signature, user_id, opts = {})
|
|
250
|
+
if @api_client.config.debugging
|
|
251
|
+
@api_client.config.logger.debug "Calling API: MandateApi.mandates_id_resend_otp_put ..."
|
|
252
|
+
end
|
|
253
|
+
# verify the required parameter 'id' is set
|
|
254
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
255
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MandateApi.mandates_id_resend_otp_put"
|
|
256
|
+
end
|
|
257
|
+
# verify the required parameter 'access_token' is set
|
|
258
|
+
if @api_client.config.client_side_validation && access_token.nil?
|
|
259
|
+
fail ArgumentError, "Missing the required parameter 'access_token' when calling MandateApi.mandates_id_resend_otp_put"
|
|
260
|
+
end
|
|
261
|
+
# verify the required parameter 'access_signature' is set
|
|
262
|
+
if @api_client.config.client_side_validation && access_signature.nil?
|
|
263
|
+
fail ArgumentError, "Missing the required parameter 'access_signature' when calling MandateApi.mandates_id_resend_otp_put"
|
|
264
|
+
end
|
|
265
|
+
# verify the required parameter 'user_id' is set
|
|
266
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
267
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling MandateApi.mandates_id_resend_otp_put"
|
|
268
|
+
end
|
|
269
|
+
# resource path
|
|
270
|
+
local_var_path = "/mandates/{id}/ResendOtp/".sub('{' + 'id' + '}', id.to_s)
|
|
271
|
+
|
|
272
|
+
# query parameters
|
|
273
|
+
query_params = {}
|
|
274
|
+
query_params[:'accessToken'] = access_token
|
|
275
|
+
query_params[:'accessSignature'] = access_signature
|
|
276
|
+
query_params[:'userId'] = user_id
|
|
277
|
+
query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
|
278
|
+
query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
|
279
|
+
query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
|
|
280
|
+
query_params[:'debtorMobile'] = opts[:'debtor_mobile'] if !opts[:'debtor_mobile'].nil?
|
|
281
|
+
|
|
282
|
+
# header parameters
|
|
283
|
+
header_params = {}
|
|
284
|
+
|
|
285
|
+
# form parameters
|
|
286
|
+
form_params = {}
|
|
287
|
+
|
|
288
|
+
# http body (model)
|
|
289
|
+
post_body = nil
|
|
290
|
+
auth_names = ['api_key']
|
|
291
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
292
|
+
:header_params => header_params,
|
|
293
|
+
:query_params => query_params,
|
|
294
|
+
:form_params => form_params,
|
|
295
|
+
:body => post_body,
|
|
296
|
+
:auth_names => auth_names,
|
|
297
|
+
:return_type => 'InlineResponse20012')
|
|
298
|
+
if @api_client.config.debugging
|
|
299
|
+
@api_client.config.logger.debug "API called: MandateApi#mandates_id_resend_otp_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
300
|
+
end
|
|
301
|
+
return data, status_code, headers
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
# sign a mandate
|
|
305
|
+
# Sign a mandate with the received OTP.
|
|
306
|
+
# @param id Mandate's id.
|
|
307
|
+
# @param access_token Access token must be defined here or in Authorization HTTP header. More info [here](https://agent.treezor.com/security-authentication).
|
|
308
|
+
# @param 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).
|
|
309
|
+
# @param user_id User's is who initiates the mandate request.
|
|
310
|
+
# @param otp The One-time password that the user got once mandate created.
|
|
311
|
+
# @param [Hash] opts the optional parameters
|
|
312
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
313
|
+
# @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).
|
|
314
|
+
# @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).
|
|
315
|
+
# @option opts [String] :debtor_signature_ip IP address from which the mandate will be signed.
|
|
316
|
+
# @return [InlineResponse20012]
|
|
317
|
+
def mandates_id_sign_put(id, access_token, access_signature, user_id, otp, opts = {})
|
|
318
|
+
data, _status_code, _headers = mandates_id_sign_put_with_http_info(id, access_token, access_signature, user_id, otp, opts)
|
|
319
|
+
return data
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
# sign a mandate
|
|
323
|
+
# Sign a mandate with the received OTP.
|
|
324
|
+
# @param id Mandate's id.
|
|
325
|
+
# @param access_token Access token must be defined here or in Authorization HTTP header. More info [here](https://agent.treezor.com/security-authentication).
|
|
326
|
+
# @param 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).
|
|
327
|
+
# @param user_id User's is who initiates the mandate request.
|
|
328
|
+
# @param otp The One-time password that the user got once mandate created.
|
|
329
|
+
# @param [Hash] opts the optional parameters
|
|
330
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
331
|
+
# @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).
|
|
332
|
+
# @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).
|
|
333
|
+
# @option opts [String] :debtor_signature_ip IP address from which the mandate will be signed.
|
|
334
|
+
# @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
|
|
335
|
+
def mandates_id_sign_put_with_http_info(id, access_token, access_signature, user_id, otp, opts = {})
|
|
336
|
+
if @api_client.config.debugging
|
|
337
|
+
@api_client.config.logger.debug "Calling API: MandateApi.mandates_id_sign_put ..."
|
|
338
|
+
end
|
|
339
|
+
# verify the required parameter 'id' is set
|
|
340
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
341
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling MandateApi.mandates_id_sign_put"
|
|
342
|
+
end
|
|
343
|
+
# verify the required parameter 'access_token' is set
|
|
344
|
+
if @api_client.config.client_side_validation && access_token.nil?
|
|
345
|
+
fail ArgumentError, "Missing the required parameter 'access_token' when calling MandateApi.mandates_id_sign_put"
|
|
346
|
+
end
|
|
347
|
+
# verify the required parameter 'access_signature' is set
|
|
348
|
+
if @api_client.config.client_side_validation && access_signature.nil?
|
|
349
|
+
fail ArgumentError, "Missing the required parameter 'access_signature' when calling MandateApi.mandates_id_sign_put"
|
|
350
|
+
end
|
|
351
|
+
# verify the required parameter 'user_id' is set
|
|
352
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
353
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling MandateApi.mandates_id_sign_put"
|
|
354
|
+
end
|
|
355
|
+
# verify the required parameter 'otp' is set
|
|
356
|
+
if @api_client.config.client_side_validation && otp.nil?
|
|
357
|
+
fail ArgumentError, "Missing the required parameter 'otp' when calling MandateApi.mandates_id_sign_put"
|
|
358
|
+
end
|
|
359
|
+
# resource path
|
|
360
|
+
local_var_path = "/mandates/{id}/Sign/".sub('{' + 'id' + '}', id.to_s)
|
|
361
|
+
|
|
362
|
+
# query parameters
|
|
363
|
+
query_params = {}
|
|
364
|
+
query_params[:'accessToken'] = access_token
|
|
365
|
+
query_params[:'accessSignature'] = access_signature
|
|
366
|
+
query_params[:'userId'] = user_id
|
|
367
|
+
query_params[:'otp'] = otp
|
|
368
|
+
query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
|
369
|
+
query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
|
370
|
+
query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
|
|
371
|
+
query_params[:'debtorSignatureIp'] = opts[:'debtor_signature_ip'] if !opts[:'debtor_signature_ip'].nil?
|
|
372
|
+
|
|
373
|
+
# header parameters
|
|
374
|
+
header_params = {}
|
|
375
|
+
|
|
376
|
+
# form parameters
|
|
377
|
+
form_params = {}
|
|
378
|
+
|
|
379
|
+
# http body (model)
|
|
380
|
+
post_body = nil
|
|
381
|
+
auth_names = ['api_key']
|
|
382
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
383
|
+
:header_params => header_params,
|
|
384
|
+
:query_params => query_params,
|
|
385
|
+
:form_params => form_params,
|
|
386
|
+
:body => post_body,
|
|
387
|
+
:auth_names => auth_names,
|
|
388
|
+
:return_type => 'InlineResponse20012')
|
|
389
|
+
if @api_client.config.debugging
|
|
390
|
+
@api_client.config.logger.debug "API called: MandateApi#mandates_id_sign_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
391
|
+
end
|
|
392
|
+
return data, status_code, headers
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# create a mandate
|
|
396
|
+
# Create a new mandate in the system.
|
|
397
|
+
# @param sdd_type Type of mandate. | Type | Description | | ---- | ----------- | | core | Sepa Direct Debit Core | | b2b | Sepa Direct Debit Business 2 Business |
|
|
398
|
+
# @param is_paper Indicate if it's a paper mandate or not
|
|
399
|
+
# @param user_id User's id who initiates the mandate request. The creditor.
|
|
400
|
+
# @param debtor_name Debtor's full name
|
|
401
|
+
# @param debtor_address Debtor's address.
|
|
402
|
+
# @param debtor_city Debtor's city.
|
|
403
|
+
# @param debtor_zip_code Debtor's zip code
|
|
404
|
+
# @param debtor_country Debtor's country
|
|
405
|
+
# @param debtor_iban Debtor's IBAN
|
|
406
|
+
# @param sequence_type Type of mandate. | Type | Description | | ---- | ----------- | | one-off | One-off payment | | recurrent | Recurrent payment | Default value: one-off.
|
|
407
|
+
# @param created_ip IP address of the system that created mandate.
|
|
408
|
+
# @param [Hash] opts the optional parameters
|
|
409
|
+
# @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).
|
|
410
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
411
|
+
# @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).
|
|
412
|
+
# @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).
|
|
413
|
+
# @option opts [String] :debtor_bic Debtor's BIC (or SWIFT)
|
|
414
|
+
# @option opts [String] :signature_date Signature date of the mandate. Required if is paper.
|
|
415
|
+
# @return [InlineResponse20012]
|
|
416
|
+
def post_mandates(sdd_type, is_paper, user_id, debtor_name, debtor_address, debtor_city, debtor_zip_code, debtor_country, debtor_iban, sequence_type, created_ip, opts = {})
|
|
417
|
+
data, _status_code, _headers = post_mandates_with_http_info(sdd_type, is_paper, user_id, debtor_name, debtor_address, debtor_city, debtor_zip_code, debtor_country, debtor_iban, sequence_type, created_ip, opts)
|
|
418
|
+
return data
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
# create a mandate
|
|
422
|
+
# Create a new mandate in the system.
|
|
423
|
+
# @param sdd_type Type of mandate. | Type | Description | | ---- | ----------- | | core | Sepa Direct Debit Core | | b2b | Sepa Direct Debit Business 2 Business |
|
|
424
|
+
# @param is_paper Indicate if it's a paper mandate or not
|
|
425
|
+
# @param user_id User's id who initiates the mandate request. The creditor.
|
|
426
|
+
# @param debtor_name Debtor's full name
|
|
427
|
+
# @param debtor_address Debtor's address.
|
|
428
|
+
# @param debtor_city Debtor's city.
|
|
429
|
+
# @param debtor_zip_code Debtor's zip code
|
|
430
|
+
# @param debtor_country Debtor's country
|
|
431
|
+
# @param debtor_iban Debtor's IBAN
|
|
432
|
+
# @param sequence_type Type of mandate. | Type | Description | | ---- | ----------- | | one-off | One-off payment | | recurrent | Recurrent payment | Default value: one-off.
|
|
433
|
+
# @param created_ip IP address of the system that created mandate.
|
|
434
|
+
# @param [Hash] opts the optional parameters
|
|
435
|
+
# @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).
|
|
436
|
+
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
|
437
|
+
# @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).
|
|
438
|
+
# @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).
|
|
439
|
+
# @option opts [String] :debtor_bic Debtor's BIC (or SWIFT)
|
|
440
|
+
# @option opts [String] :signature_date Signature date of the mandate. Required if is paper.
|
|
441
|
+
# @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
|
|
442
|
+
def post_mandates_with_http_info(sdd_type, is_paper, user_id, debtor_name, debtor_address, debtor_city, debtor_zip_code, debtor_country, debtor_iban, sequence_type, created_ip, opts = {})
|
|
443
|
+
if @api_client.config.debugging
|
|
444
|
+
@api_client.config.logger.debug "Calling API: MandateApi.post_mandates ..."
|
|
445
|
+
end
|
|
446
|
+
# verify the required parameter 'sdd_type' is set
|
|
447
|
+
if @api_client.config.client_side_validation && sdd_type.nil?
|
|
448
|
+
fail ArgumentError, "Missing the required parameter 'sdd_type' when calling MandateApi.post_mandates"
|
|
449
|
+
end
|
|
450
|
+
# verify enum value
|
|
451
|
+
if @api_client.config.client_side_validation && !['core', 'b2b'].include?(sdd_type)
|
|
452
|
+
fail ArgumentError, "invalid value for 'sdd_type', must be one of core, b2b"
|
|
453
|
+
end
|
|
454
|
+
# verify the required parameter 'is_paper' is set
|
|
455
|
+
if @api_client.config.client_side_validation && is_paper.nil?
|
|
456
|
+
fail ArgumentError, "Missing the required parameter 'is_paper' when calling MandateApi.post_mandates"
|
|
457
|
+
end
|
|
458
|
+
# verify the required parameter 'user_id' is set
|
|
459
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
460
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling MandateApi.post_mandates"
|
|
461
|
+
end
|
|
462
|
+
# verify the required parameter 'debtor_name' is set
|
|
463
|
+
if @api_client.config.client_side_validation && debtor_name.nil?
|
|
464
|
+
fail ArgumentError, "Missing the required parameter 'debtor_name' when calling MandateApi.post_mandates"
|
|
465
|
+
end
|
|
466
|
+
# verify the required parameter 'debtor_address' is set
|
|
467
|
+
if @api_client.config.client_side_validation && debtor_address.nil?
|
|
468
|
+
fail ArgumentError, "Missing the required parameter 'debtor_address' when calling MandateApi.post_mandates"
|
|
469
|
+
end
|
|
470
|
+
# verify the required parameter 'debtor_city' is set
|
|
471
|
+
if @api_client.config.client_side_validation && debtor_city.nil?
|
|
472
|
+
fail ArgumentError, "Missing the required parameter 'debtor_city' when calling MandateApi.post_mandates"
|
|
473
|
+
end
|
|
474
|
+
# verify the required parameter 'debtor_zip_code' is set
|
|
475
|
+
if @api_client.config.client_side_validation && debtor_zip_code.nil?
|
|
476
|
+
fail ArgumentError, "Missing the required parameter 'debtor_zip_code' when calling MandateApi.post_mandates"
|
|
477
|
+
end
|
|
478
|
+
# verify the required parameter 'debtor_country' is set
|
|
479
|
+
if @api_client.config.client_side_validation && debtor_country.nil?
|
|
480
|
+
fail ArgumentError, "Missing the required parameter 'debtor_country' when calling MandateApi.post_mandates"
|
|
481
|
+
end
|
|
482
|
+
# verify the required parameter 'debtor_iban' is set
|
|
483
|
+
if @api_client.config.client_side_validation && debtor_iban.nil?
|
|
484
|
+
fail ArgumentError, "Missing the required parameter 'debtor_iban' when calling MandateApi.post_mandates"
|
|
485
|
+
end
|
|
486
|
+
# verify the required parameter 'sequence_type' is set
|
|
487
|
+
if @api_client.config.client_side_validation && sequence_type.nil?
|
|
488
|
+
fail ArgumentError, "Missing the required parameter 'sequence_type' when calling MandateApi.post_mandates"
|
|
489
|
+
end
|
|
490
|
+
# verify the required parameter 'created_ip' is set
|
|
491
|
+
if @api_client.config.client_side_validation && created_ip.nil?
|
|
492
|
+
fail ArgumentError, "Missing the required parameter 'created_ip' when calling MandateApi.post_mandates"
|
|
493
|
+
end
|
|
494
|
+
# resource path
|
|
495
|
+
local_var_path = "/mandates"
|
|
496
|
+
|
|
497
|
+
# query parameters
|
|
498
|
+
query_params = {}
|
|
499
|
+
query_params[:'sddType'] = sdd_type
|
|
500
|
+
query_params[:'isPaper'] = is_paper
|
|
501
|
+
query_params[:'userId'] = user_id
|
|
502
|
+
query_params[:'debtorName'] = debtor_name
|
|
503
|
+
query_params[:'debtorAddress'] = debtor_address
|
|
504
|
+
query_params[:'debtorCity'] = debtor_city
|
|
505
|
+
query_params[:'debtorZipCode'] = debtor_zip_code
|
|
506
|
+
query_params[:'debtorCountry'] = debtor_country
|
|
507
|
+
query_params[:'debtorIban'] = debtor_iban
|
|
508
|
+
query_params[:'sequenceType'] = sequence_type
|
|
509
|
+
query_params[:'createdIp'] = created_ip
|
|
510
|
+
query_params[:'accessSignature'] = opts[:'access_signature'] if !opts[:'access_signature'].nil?
|
|
511
|
+
query_params[:'accessTag'] = opts[:'access_tag'] if !opts[:'access_tag'].nil?
|
|
512
|
+
query_params[:'accessUserId'] = opts[:'access_user_id'] if !opts[:'access_user_id'].nil?
|
|
513
|
+
query_params[:'accessUserIp'] = opts[:'access_user_ip'] if !opts[:'access_user_ip'].nil?
|
|
514
|
+
query_params[:'debtorBic'] = opts[:'debtor_bic'] if !opts[:'debtor_bic'].nil?
|
|
515
|
+
query_params[:'signatureDate'] = opts[:'signature_date'] if !opts[:'signature_date'].nil?
|
|
516
|
+
|
|
517
|
+
# header parameters
|
|
518
|
+
header_params = {}
|
|
519
|
+
# HTTP header 'Accept' (if needed)
|
|
520
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
521
|
+
# HTTP header 'Content-Type'
|
|
522
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
523
|
+
|
|
524
|
+
# form parameters
|
|
525
|
+
form_params = {}
|
|
526
|
+
|
|
527
|
+
# http body (model)
|
|
528
|
+
post_body = nil
|
|
529
|
+
auth_names = ['api_key']
|
|
530
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
531
|
+
:header_params => header_params,
|
|
532
|
+
:query_params => query_params,
|
|
533
|
+
:form_params => form_params,
|
|
534
|
+
:body => post_body,
|
|
535
|
+
:auth_names => auth_names,
|
|
536
|
+
:return_type => 'InlineResponse20012')
|
|
537
|
+
if @api_client.config.debugging
|
|
538
|
+
@api_client.config.logger.debug "API called: MandateApi#post_mandates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
539
|
+
end
|
|
540
|
+
return data, status_code, headers
|
|
541
|
+
end
|
|
542
|
+
end
|
|
543
|
+
end
|