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,1548 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>
|
|
7
|
+
Class: TreezorClient::BusinessApi
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.9.15
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
|
18
|
+
pathId = "TreezorClient::BusinessApi";
|
|
19
|
+
relpath = '../';
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
24
|
+
|
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
</head>
|
|
29
|
+
<body>
|
|
30
|
+
<div class="nav_wrap">
|
|
31
|
+
<iframe id="nav" src="../class_list.html?1"></iframe>
|
|
32
|
+
<div id="resizer"></div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div id="main" tabindex="-1">
|
|
36
|
+
<div id="header">
|
|
37
|
+
<div id="menu">
|
|
38
|
+
|
|
39
|
+
<a href="../_index.html">Index (B)</a> »
|
|
40
|
+
<span class='title'><span class='object_link'><a href="../TreezorClient.html" title="TreezorClient (module)">TreezorClient</a></span></span>
|
|
41
|
+
»
|
|
42
|
+
<span class="title">BusinessApi</span>
|
|
43
|
+
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<div id="search">
|
|
47
|
+
|
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
|
49
|
+
href="../class_list.html">
|
|
50
|
+
|
|
51
|
+
<svg width="24" height="24">
|
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
|
55
|
+
</svg>
|
|
56
|
+
</a>
|
|
57
|
+
|
|
58
|
+
</div>
|
|
59
|
+
<div class="clear"></div>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div id="content"><h1>Class: TreezorClient::BusinessApi
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
</h1>
|
|
67
|
+
<div class="box_info">
|
|
68
|
+
|
|
69
|
+
<dl>
|
|
70
|
+
<dt>Inherits:</dt>
|
|
71
|
+
<dd>
|
|
72
|
+
<span class="inheritName">Object</span>
|
|
73
|
+
|
|
74
|
+
<ul class="fullTree">
|
|
75
|
+
<li>Object</li>
|
|
76
|
+
|
|
77
|
+
<li class="next">TreezorClient::BusinessApi</li>
|
|
78
|
+
|
|
79
|
+
</ul>
|
|
80
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
81
|
+
|
|
82
|
+
</dd>
|
|
83
|
+
</dl>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
<dl>
|
|
96
|
+
<dt>Defined in:</dt>
|
|
97
|
+
<dd>lib/treezor_client/api/business_api.rb</dd>
|
|
98
|
+
</dl>
|
|
99
|
+
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
|
107
|
+
<ul class="summary">
|
|
108
|
+
|
|
109
|
+
<li class="public ">
|
|
110
|
+
<span class="summary_signature">
|
|
111
|
+
|
|
112
|
+
<a href="#api_client-instance_method" title="#api_client (instance method)">#<strong>api_client</strong> ⇒ Object </a>
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
</span>
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
<span class="summary_desc"><div class='inline'>
|
|
130
|
+
<p>Returns the value of attribute api_client.</p>
|
|
131
|
+
</div></span>
|
|
132
|
+
|
|
133
|
+
</li>
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
</ul>
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
<h2>
|
|
143
|
+
Instance Method Summary
|
|
144
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
145
|
+
</h2>
|
|
146
|
+
|
|
147
|
+
<ul class="summary">
|
|
148
|
+
|
|
149
|
+
<li class="public ">
|
|
150
|
+
<span class="summary_signature">
|
|
151
|
+
|
|
152
|
+
<a href="#businessinformations_get-instance_method" title="#businessinformations_get (instance method)">#<strong>businessinformations_get</strong>(country, opts = {}) ⇒ InlineResponse2005 </a>
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
</span>
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
<span class="summary_desc"><div class='inline'>
|
|
167
|
+
<p>get business information The get business information endpoint returns all
|
|
168
|
+
already known business information.</p>
|
|
169
|
+
</div></span>
|
|
170
|
+
|
|
171
|
+
</li>
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
<li class="public ">
|
|
175
|
+
<span class="summary_signature">
|
|
176
|
+
|
|
177
|
+
<a href="#businessinformations_get_with_http_info-instance_method" title="#businessinformations_get_with_http_info (instance method)">#<strong>businessinformations_get_with_http_info</strong>(country, opts = {}) ⇒ Array<(InlineResponse2005, Fixnum, Hash)> </a>
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
</span>
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
<span class="summary_desc"><div class='inline'>
|
|
192
|
+
<p>get business information The get business information endpoint returns all
|
|
193
|
+
already known business information.</p>
|
|
194
|
+
</div></span>
|
|
195
|
+
|
|
196
|
+
</li>
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
<li class="public ">
|
|
200
|
+
<span class="summary_signature">
|
|
201
|
+
|
|
202
|
+
<a href="#businesssearchs_get-instance_method" title="#businesssearchs_get (instance method)">#<strong>businesssearchs_get</strong>(country, opts = {}) ⇒ Array<InlineResponse2004> </a>
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
</span>
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
<span class="summary_desc"><div class='inline'>
|
|
217
|
+
<p>search businesses The search endpoint returns some business information.</p>
|
|
218
|
+
</div></span>
|
|
219
|
+
|
|
220
|
+
</li>
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
<li class="public ">
|
|
224
|
+
<span class="summary_signature">
|
|
225
|
+
|
|
226
|
+
<a href="#businesssearchs_get_with_http_info-instance_method" title="#businesssearchs_get_with_http_info (instance method)">#<strong>businesssearchs_get_with_http_info</strong>(country, opts = {}) ⇒ Array<(Array<InlineResponse2004>, Fixnum, Hash)> </a>
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
</span>
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
<span class="summary_desc"><div class='inline'>
|
|
241
|
+
<p>search businesses The search endpoint returns some business information.</p>
|
|
242
|
+
</div></span>
|
|
243
|
+
|
|
244
|
+
</li>
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
<li class="public ">
|
|
248
|
+
<span class="summary_signature">
|
|
249
|
+
|
|
250
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(api_client = ApiClient.default) ⇒ BusinessApi </a>
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
</span>
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
<span class="note title constructor">constructor</span>
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
<span class="summary_desc"><div class='inline'>
|
|
267
|
+
<p>A new instance of BusinessApi.</p>
|
|
268
|
+
</div></span>
|
|
269
|
+
|
|
270
|
+
</li>
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
</ul>
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
<div id="constructor_details" class="method_details_list">
|
|
277
|
+
<h2>Constructor Details</h2>
|
|
278
|
+
|
|
279
|
+
<div class="method_details first">
|
|
280
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
281
|
+
|
|
282
|
+
#<strong>initialize</strong>(api_client = ApiClient.default) ⇒ <tt><span class='object_link'><a href="" title="TreezorClient::BusinessApi (class)">BusinessApi</a></span></tt>
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
</h3><div class="docstring">
|
|
289
|
+
<div class="discussion">
|
|
290
|
+
|
|
291
|
+
<p>Returns a new instance of BusinessApi</p>
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
</div>
|
|
295
|
+
</div>
|
|
296
|
+
<div class="tags">
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
</div><table class="source_code">
|
|
300
|
+
<tr>
|
|
301
|
+
<td>
|
|
302
|
+
<pre class="lines">
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
19
|
|
306
|
+
20
|
|
307
|
+
21</pre>
|
|
308
|
+
</td>
|
|
309
|
+
<td>
|
|
310
|
+
<pre class="code"><span class="info file"># File 'lib/treezor_client/api/business_api.rb', line 19</span>
|
|
311
|
+
|
|
312
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_api_client'>api_client</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="ApiClient.html" title="TreezorClient::ApiClient (class)">ApiClient</a></span></span><span class='period'>.</span><span class='id identifier rubyid_default'><span class='object_link'><a href="ApiClient.html#default-class_method" title="TreezorClient::ApiClient.default (method)">default</a></span></span><span class='rparen'>)</span>
|
|
313
|
+
<span class='ivar'>@api_client</span> <span class='op'>=</span> <span class='id identifier rubyid_api_client'>api_client</span>
|
|
314
|
+
<span class='kw'>end</span></pre>
|
|
315
|
+
</td>
|
|
316
|
+
</tr>
|
|
317
|
+
</table>
|
|
318
|
+
</div>
|
|
319
|
+
|
|
320
|
+
</div>
|
|
321
|
+
|
|
322
|
+
<div id="instance_attr_details" class="attr_details">
|
|
323
|
+
<h2>Instance Attribute Details</h2>
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
<span id="api_client=-instance_method"></span>
|
|
327
|
+
<div class="method_details first">
|
|
328
|
+
<h3 class="signature first" id="api_client-instance_method">
|
|
329
|
+
|
|
330
|
+
#<strong>api_client</strong> ⇒ <tt>Object</tt>
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
</h3><div class="docstring">
|
|
337
|
+
<div class="discussion">
|
|
338
|
+
|
|
339
|
+
<p>Returns the value of attribute api_client</p>
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
</div>
|
|
343
|
+
</div>
|
|
344
|
+
<div class="tags">
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
</div><table class="source_code">
|
|
348
|
+
<tr>
|
|
349
|
+
<td>
|
|
350
|
+
<pre class="lines">
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
17
|
|
354
|
+
18
|
|
355
|
+
19</pre>
|
|
356
|
+
</td>
|
|
357
|
+
<td>
|
|
358
|
+
<pre class="code"><span class="info file"># File 'lib/treezor_client/api/business_api.rb', line 17</span>
|
|
359
|
+
|
|
360
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_api_client'>api_client</span>
|
|
361
|
+
<span class='ivar'>@api_client</span>
|
|
362
|
+
<span class='kw'>end</span></pre>
|
|
363
|
+
</td>
|
|
364
|
+
</tr>
|
|
365
|
+
</table>
|
|
366
|
+
</div>
|
|
367
|
+
|
|
368
|
+
</div>
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
<div id="instance_method_details" class="method_details_list">
|
|
372
|
+
<h2>Instance Method Details</h2>
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
<div class="method_details first">
|
|
376
|
+
<h3 class="signature first" id="businessinformations_get-instance_method">
|
|
377
|
+
|
|
378
|
+
#<strong>businessinformations_get</strong>(country, opts = {}) ⇒ <tt><span class='object_link'><a href="InlineResponse2005.html" title="TreezorClient::InlineResponse2005 (class)">InlineResponse2005</a></span></tt>
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
</h3><div class="docstring">
|
|
385
|
+
<div class="discussion">
|
|
386
|
+
|
|
387
|
+
<p>get business information The get business information endpoint returns all
|
|
388
|
+
already known business information. End user will have then to
|
|
389
|
+
verify/correct it.</p>
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
</div>
|
|
393
|
+
</div>
|
|
394
|
+
<div class="tags">
|
|
395
|
+
<p class="tag_title">Parameters:</p>
|
|
396
|
+
<ul class="param">
|
|
397
|
+
|
|
398
|
+
<li>
|
|
399
|
+
|
|
400
|
+
<span class='name'>country</span>
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
<span class='type'></span>
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
—
|
|
408
|
+
<div class='inline'>
|
|
409
|
+
<p>In which country to search. Format [ISO 3166-1 alpha-2](<a
|
|
410
|
+
href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">en.wikipedia.org/wiki/ISO_3166-1_alpha-2</a>)</p>
|
|
411
|
+
</div>
|
|
412
|
+
|
|
413
|
+
</li>
|
|
414
|
+
|
|
415
|
+
<li>
|
|
416
|
+
|
|
417
|
+
<span class='name'>opts</span>
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
—
|
|
427
|
+
<div class='inline'>
|
|
428
|
+
<p>the optional parameters</p>
|
|
429
|
+
</div>
|
|
430
|
+
|
|
431
|
+
</li>
|
|
432
|
+
|
|
433
|
+
</ul>
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
|
441
|
+
<ul class="option">
|
|
442
|
+
|
|
443
|
+
<li>
|
|
444
|
+
<span class="name">:access_signature</span>
|
|
445
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
446
|
+
<span class="default">
|
|
447
|
+
|
|
448
|
+
</span>
|
|
449
|
+
|
|
450
|
+
— <div class='inline'>
|
|
451
|
+
<p>Access signature can be mandatory for specific context. Treezor will
|
|
452
|
+
contact you if so. More info [here](<a
|
|
453
|
+
href="https://agent.treezor.com/security-authentication">agent.treezor.com/security-authentication</a>).</p>
|
|
454
|
+
</div>
|
|
455
|
+
|
|
456
|
+
</li>
|
|
457
|
+
|
|
458
|
+
<li>
|
|
459
|
+
<span class="name">:access_tag</span>
|
|
460
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
461
|
+
<span class="default">
|
|
462
|
+
|
|
463
|
+
</span>
|
|
464
|
+
|
|
465
|
+
— <div class='inline'>
|
|
466
|
+
<p>Access tag is used for idem potency query. More info [here](<a
|
|
467
|
+
href="https://agent.treezor.com/basics">agent.treezor.com/basics</a>).</p>
|
|
468
|
+
</div>
|
|
469
|
+
|
|
470
|
+
</li>
|
|
471
|
+
|
|
472
|
+
<li>
|
|
473
|
+
<span class="name">:access_user_id</span>
|
|
474
|
+
<span class="type">(<tt>Integer</tt>)</span>
|
|
475
|
+
<span class="default">
|
|
476
|
+
|
|
477
|
+
</span>
|
|
478
|
+
|
|
479
|
+
— <div class='inline'>
|
|
480
|
+
<p>Access user&#39;s id is used for user&#39;s action restriction.
|
|
481
|
+
More info [here](<a
|
|
482
|
+
href="https://agent.treezor.com/basics">agent.treezor.com/basics</a>).</p>
|
|
483
|
+
</div>
|
|
484
|
+
|
|
485
|
+
</li>
|
|
486
|
+
|
|
487
|
+
<li>
|
|
488
|
+
<span class="name">:access_user_ip</span>
|
|
489
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
490
|
+
<span class="default">
|
|
491
|
+
|
|
492
|
+
</span>
|
|
493
|
+
|
|
494
|
+
— <div class='inline'>
|
|
495
|
+
<p>Access user&#39;s ip is used for user&#39;s action restriction.
|
|
496
|
+
More info [here](<a
|
|
497
|
+
href="https://agent.treezor.com/basics">agent.treezor.com/basics</a>).</p>
|
|
498
|
+
</div>
|
|
499
|
+
|
|
500
|
+
</li>
|
|
501
|
+
|
|
502
|
+
<li>
|
|
503
|
+
<span class="name">:external_id</span>
|
|
504
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
505
|
+
<span class="default">
|
|
506
|
+
|
|
507
|
+
</span>
|
|
508
|
+
|
|
509
|
+
— <div class='inline'>
|
|
510
|
+
<p>External unique business id. As given in businesssearch reponse.</p>
|
|
511
|
+
</div>
|
|
512
|
+
|
|
513
|
+
</li>
|
|
514
|
+
|
|
515
|
+
<li>
|
|
516
|
+
<span class="name">:registration_number</span>
|
|
517
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
518
|
+
<span class="default">
|
|
519
|
+
|
|
520
|
+
</span>
|
|
521
|
+
|
|
522
|
+
— <div class='inline'>
|
|
523
|
+
<p>Unique business registration number.</p>
|
|
524
|
+
</div>
|
|
525
|
+
|
|
526
|
+
</li>
|
|
527
|
+
|
|
528
|
+
<li>
|
|
529
|
+
<span class="name">:vat_number</span>
|
|
530
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
531
|
+
<span class="default">
|
|
532
|
+
|
|
533
|
+
</span>
|
|
534
|
+
|
|
535
|
+
— <div class='inline'>
|
|
536
|
+
<p>Unique business VAT number.</p>
|
|
537
|
+
</div>
|
|
538
|
+
|
|
539
|
+
</li>
|
|
540
|
+
|
|
541
|
+
</ul>
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
<p class="tag_title">Returns:</p>
|
|
545
|
+
<ul class="return">
|
|
546
|
+
|
|
547
|
+
<li>
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
<span class='type'>(<tt><span class='object_link'><a href="InlineResponse2005.html" title="TreezorClient::InlineResponse2005 (class)">InlineResponse2005</a></span></tt>)</span>
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
</li>
|
|
555
|
+
|
|
556
|
+
</ul>
|
|
557
|
+
|
|
558
|
+
</div><table class="source_code">
|
|
559
|
+
<tr>
|
|
560
|
+
<td>
|
|
561
|
+
<pre class="lines">
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
35
|
|
565
|
+
36
|
|
566
|
+
37
|
|
567
|
+
38</pre>
|
|
568
|
+
</td>
|
|
569
|
+
<td>
|
|
570
|
+
<pre class="code"><span class="info file"># File 'lib/treezor_client/api/business_api.rb', line 35</span>
|
|
571
|
+
|
|
572
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_businessinformations_get'>businessinformations_get</span><span class='lparen'>(</span><span class='id identifier rubyid_country'>country</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
573
|
+
<span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid__status_code'>_status_code</span><span class='comma'>,</span> <span class='id identifier rubyid__headers'>_headers</span> <span class='op'>=</span> <span class='id identifier rubyid_businessinformations_get_with_http_info'>businessinformations_get_with_http_info</span><span class='lparen'>(</span><span class='id identifier rubyid_country'>country</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
|
574
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_data'>data</span>
|
|
575
|
+
<span class='kw'>end</span></pre>
|
|
576
|
+
</td>
|
|
577
|
+
</tr>
|
|
578
|
+
</table>
|
|
579
|
+
</div>
|
|
580
|
+
|
|
581
|
+
<div class="method_details ">
|
|
582
|
+
<h3 class="signature " id="businessinformations_get_with_http_info-instance_method">
|
|
583
|
+
|
|
584
|
+
#<strong>businessinformations_get_with_http_info</strong>(country, opts = {}) ⇒ <tt>Array<(<span class='object_link'><a href="InlineResponse2005.html" title="TreezorClient::InlineResponse2005 (class)">InlineResponse2005</a></span>, Fixnum, Hash)></tt>
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
</h3><div class="docstring">
|
|
591
|
+
<div class="discussion">
|
|
592
|
+
|
|
593
|
+
<p>get business information The get business information endpoint returns all
|
|
594
|
+
already known business information. End user will have then to
|
|
595
|
+
verify/correct it.</p>
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
</div>
|
|
599
|
+
</div>
|
|
600
|
+
<div class="tags">
|
|
601
|
+
<p class="tag_title">Parameters:</p>
|
|
602
|
+
<ul class="param">
|
|
603
|
+
|
|
604
|
+
<li>
|
|
605
|
+
|
|
606
|
+
<span class='name'>country</span>
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
<span class='type'></span>
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
—
|
|
614
|
+
<div class='inline'>
|
|
615
|
+
<p>In which country to search. Format [ISO 3166-1 alpha-2](<a
|
|
616
|
+
href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">en.wikipedia.org/wiki/ISO_3166-1_alpha-2</a>)</p>
|
|
617
|
+
</div>
|
|
618
|
+
|
|
619
|
+
</li>
|
|
620
|
+
|
|
621
|
+
<li>
|
|
622
|
+
|
|
623
|
+
<span class='name'>opts</span>
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
—
|
|
633
|
+
<div class='inline'>
|
|
634
|
+
<p>the optional parameters</p>
|
|
635
|
+
</div>
|
|
636
|
+
|
|
637
|
+
</li>
|
|
638
|
+
|
|
639
|
+
</ul>
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
|
647
|
+
<ul class="option">
|
|
648
|
+
|
|
649
|
+
<li>
|
|
650
|
+
<span class="name">:access_signature</span>
|
|
651
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
652
|
+
<span class="default">
|
|
653
|
+
|
|
654
|
+
</span>
|
|
655
|
+
|
|
656
|
+
— <div class='inline'>
|
|
657
|
+
<p>Access signature can be mandatory for specific context. Treezor will
|
|
658
|
+
contact you if so. More info [here](<a
|
|
659
|
+
href="https://agent.treezor.com/security-authentication">agent.treezor.com/security-authentication</a>).</p>
|
|
660
|
+
</div>
|
|
661
|
+
|
|
662
|
+
</li>
|
|
663
|
+
|
|
664
|
+
<li>
|
|
665
|
+
<span class="name">:access_tag</span>
|
|
666
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
667
|
+
<span class="default">
|
|
668
|
+
|
|
669
|
+
</span>
|
|
670
|
+
|
|
671
|
+
— <div class='inline'>
|
|
672
|
+
<p>Access tag is used for idem potency query. More info [here](<a
|
|
673
|
+
href="https://agent.treezor.com/basics">agent.treezor.com/basics</a>).</p>
|
|
674
|
+
</div>
|
|
675
|
+
|
|
676
|
+
</li>
|
|
677
|
+
|
|
678
|
+
<li>
|
|
679
|
+
<span class="name">:access_user_id</span>
|
|
680
|
+
<span class="type">(<tt>Integer</tt>)</span>
|
|
681
|
+
<span class="default">
|
|
682
|
+
|
|
683
|
+
</span>
|
|
684
|
+
|
|
685
|
+
— <div class='inline'>
|
|
686
|
+
<p>Access user&#39;s id is used for user&#39;s action restriction.
|
|
687
|
+
More info [here](<a
|
|
688
|
+
href="https://agent.treezor.com/basics">agent.treezor.com/basics</a>).</p>
|
|
689
|
+
</div>
|
|
690
|
+
|
|
691
|
+
</li>
|
|
692
|
+
|
|
693
|
+
<li>
|
|
694
|
+
<span class="name">:access_user_ip</span>
|
|
695
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
696
|
+
<span class="default">
|
|
697
|
+
|
|
698
|
+
</span>
|
|
699
|
+
|
|
700
|
+
— <div class='inline'>
|
|
701
|
+
<p>Access user&#39;s ip is used for user&#39;s action restriction.
|
|
702
|
+
More info [here](<a
|
|
703
|
+
href="https://agent.treezor.com/basics">agent.treezor.com/basics</a>).</p>
|
|
704
|
+
</div>
|
|
705
|
+
|
|
706
|
+
</li>
|
|
707
|
+
|
|
708
|
+
<li>
|
|
709
|
+
<span class="name">:external_id</span>
|
|
710
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
711
|
+
<span class="default">
|
|
712
|
+
|
|
713
|
+
</span>
|
|
714
|
+
|
|
715
|
+
— <div class='inline'>
|
|
716
|
+
<p>External unique business id. As given in businesssearch reponse.</p>
|
|
717
|
+
</div>
|
|
718
|
+
|
|
719
|
+
</li>
|
|
720
|
+
|
|
721
|
+
<li>
|
|
722
|
+
<span class="name">:registration_number</span>
|
|
723
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
724
|
+
<span class="default">
|
|
725
|
+
|
|
726
|
+
</span>
|
|
727
|
+
|
|
728
|
+
— <div class='inline'>
|
|
729
|
+
<p>Unique business registration number.</p>
|
|
730
|
+
</div>
|
|
731
|
+
|
|
732
|
+
</li>
|
|
733
|
+
|
|
734
|
+
<li>
|
|
735
|
+
<span class="name">:vat_number</span>
|
|
736
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
737
|
+
<span class="default">
|
|
738
|
+
|
|
739
|
+
</span>
|
|
740
|
+
|
|
741
|
+
— <div class='inline'>
|
|
742
|
+
<p>Unique business VAT number.</p>
|
|
743
|
+
</div>
|
|
744
|
+
|
|
745
|
+
</li>
|
|
746
|
+
|
|
747
|
+
</ul>
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
<p class="tag_title">Returns:</p>
|
|
751
|
+
<ul class="return">
|
|
752
|
+
|
|
753
|
+
<li>
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
<span class='type'>(<tt>Array<(<span class='object_link'><a href="InlineResponse2005.html" title="TreezorClient::InlineResponse2005 (class)">InlineResponse2005</a></span>, Fixnum, Hash)></tt>)</span>
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
—
|
|
761
|
+
<div class='inline'>
|
|
762
|
+
<p>InlineResponse2005 data, response status code and response headers</p>
|
|
763
|
+
</div>
|
|
764
|
+
|
|
765
|
+
</li>
|
|
766
|
+
|
|
767
|
+
</ul>
|
|
768
|
+
|
|
769
|
+
</div><table class="source_code">
|
|
770
|
+
<tr>
|
|
771
|
+
<td>
|
|
772
|
+
<pre class="lines">
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
52
|
|
776
|
+
53
|
|
777
|
+
54
|
|
778
|
+
55
|
|
779
|
+
56
|
|
780
|
+
57
|
|
781
|
+
58
|
|
782
|
+
59
|
|
783
|
+
60
|
|
784
|
+
61
|
|
785
|
+
62
|
|
786
|
+
63
|
|
787
|
+
64
|
|
788
|
+
65
|
|
789
|
+
66
|
|
790
|
+
67
|
|
791
|
+
68
|
|
792
|
+
69
|
|
793
|
+
70
|
|
794
|
+
71
|
|
795
|
+
72
|
|
796
|
+
73
|
|
797
|
+
74
|
|
798
|
+
75
|
|
799
|
+
76
|
|
800
|
+
77
|
|
801
|
+
78
|
|
802
|
+
79
|
|
803
|
+
80
|
|
804
|
+
81
|
|
805
|
+
82
|
|
806
|
+
83
|
|
807
|
+
84
|
|
808
|
+
85
|
|
809
|
+
86
|
|
810
|
+
87
|
|
811
|
+
88
|
|
812
|
+
89
|
|
813
|
+
90
|
|
814
|
+
91
|
|
815
|
+
92
|
|
816
|
+
93
|
|
817
|
+
94</pre>
|
|
818
|
+
</td>
|
|
819
|
+
<td>
|
|
820
|
+
<pre class="code"><span class="info file"># File 'lib/treezor_client/api/business_api.rb', line 52</span>
|
|
821
|
+
|
|
822
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_businessinformations_get_with_http_info'>businessinformations_get_with_http_info</span><span class='lparen'>(</span><span class='id identifier rubyid_country'>country</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
823
|
+
<span class='kw'>if</span> <span class='ivar'>@api_client</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_debugging'>debugging</span>
|
|
824
|
+
<span class='ivar'>@api_client</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_debug'>debug</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Calling API: BusinessApi.businessinformations_get ...</span><span class='tstring_end'>"</span></span>
|
|
825
|
+
<span class='kw'>end</span>
|
|
826
|
+
<span class='comment'># verify the required parameter 'country' is set
|
|
827
|
+
</span> <span class='kw'>if</span> <span class='ivar'>@api_client</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_client_side_validation'>client_side_validation</span> <span class='op'>&&</span> <span class='id identifier rubyid_country'>country</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
828
|
+
<span class='id identifier rubyid_fail'>fail</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Missing the required parameter 'country' when calling BusinessApi.businessinformations_get</span><span class='tstring_end'>"</span></span>
|
|
829
|
+
<span class='kw'>end</span>
|
|
830
|
+
<span class='comment'># resource path
|
|
831
|
+
</span> <span class='id identifier rubyid_local_var_path'>local_var_path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/businessinformations</span><span class='tstring_end'>"</span></span>
|
|
832
|
+
|
|
833
|
+
<span class='comment'># query parameters
|
|
834
|
+
</span> <span class='id identifier rubyid_query_params'>query_params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
835
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'country'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_country'>country</span>
|
|
836
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'accessSignature'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'access_signature'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'access_signature'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
837
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'accessTag'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'access_tag'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'access_tag'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
838
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'accessUserId'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'access_user_id'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'access_user_id'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
839
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'accessUserIp'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'access_user_ip'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'access_user_ip'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
840
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'externalId'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'external_id'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'external_id'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
841
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'registrationNumber'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'registration_number'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'registration_number'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
842
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'vatNumber'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'vat_number'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'vat_number'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
843
|
+
|
|
844
|
+
<span class='comment'># header parameters
|
|
845
|
+
</span> <span class='id identifier rubyid_header_params'>header_params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
846
|
+
|
|
847
|
+
<span class='comment'># form parameters
|
|
848
|
+
</span> <span class='id identifier rubyid_form_params'>form_params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
849
|
+
|
|
850
|
+
<span class='comment'># http body (model)
|
|
851
|
+
</span> <span class='id identifier rubyid_post_body'>post_body</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
|
852
|
+
<span class='id identifier rubyid_auth_names'>auth_names</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>api_key</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
|
853
|
+
<span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_status_code'>status_code</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='ivar'>@api_client</span><span class='period'>.</span><span class='id identifier rubyid_call_api'>call_api</span><span class='lparen'>(</span><span class='symbol'>:GET</span><span class='comma'>,</span> <span class='id identifier rubyid_local_var_path'>local_var_path</span><span class='comma'>,</span>
|
|
854
|
+
<span class='symbol'>:header_params</span> <span class='op'>=></span> <span class='id identifier rubyid_header_params'>header_params</span><span class='comma'>,</span>
|
|
855
|
+
<span class='symbol'>:query_params</span> <span class='op'>=></span> <span class='id identifier rubyid_query_params'>query_params</span><span class='comma'>,</span>
|
|
856
|
+
<span class='symbol'>:form_params</span> <span class='op'>=></span> <span class='id identifier rubyid_form_params'>form_params</span><span class='comma'>,</span>
|
|
857
|
+
<span class='symbol'>:body</span> <span class='op'>=></span> <span class='id identifier rubyid_post_body'>post_body</span><span class='comma'>,</span>
|
|
858
|
+
<span class='symbol'>:auth_names</span> <span class='op'>=></span> <span class='id identifier rubyid_auth_names'>auth_names</span><span class='comma'>,</span>
|
|
859
|
+
<span class='symbol'>:return_type</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>InlineResponse2005</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
860
|
+
<span class='kw'>if</span> <span class='ivar'>@api_client</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_debugging'>debugging</span>
|
|
861
|
+
<span class='ivar'>@api_client</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_debug'>debug</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>API called: BusinessApi#businessinformations_get\nData: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nStatus code: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_status_code'>status_code</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nHeaders: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_headers'>headers</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
|
862
|
+
<span class='kw'>end</span>
|
|
863
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_status_code'>status_code</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span>
|
|
864
|
+
<span class='kw'>end</span></pre>
|
|
865
|
+
</td>
|
|
866
|
+
</tr>
|
|
867
|
+
</table>
|
|
868
|
+
</div>
|
|
869
|
+
|
|
870
|
+
<div class="method_details ">
|
|
871
|
+
<h3 class="signature " id="businesssearchs_get-instance_method">
|
|
872
|
+
|
|
873
|
+
#<strong>businesssearchs_get</strong>(country, opts = {}) ⇒ <tt>Array<<span class='object_link'><a href="InlineResponse2004.html" title="TreezorClient::InlineResponse2004 (class)">InlineResponse2004</a></span>></tt>
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
</h3><div class="docstring">
|
|
880
|
+
<div class="discussion">
|
|
881
|
+
|
|
882
|
+
<p>search businesses The search endpoint returns some business information.</p>
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
</div>
|
|
886
|
+
</div>
|
|
887
|
+
<div class="tags">
|
|
888
|
+
<p class="tag_title">Parameters:</p>
|
|
889
|
+
<ul class="param">
|
|
890
|
+
|
|
891
|
+
<li>
|
|
892
|
+
|
|
893
|
+
<span class='name'>country</span>
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
<span class='type'></span>
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
|
|
900
|
+
—
|
|
901
|
+
<div class='inline'>
|
|
902
|
+
<p>In which country to search. Format [ISO 3166-1 alpha-2](<a
|
|
903
|
+
href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">en.wikipedia.org/wiki/ISO_3166-1_alpha-2</a>)</p>
|
|
904
|
+
</div>
|
|
905
|
+
|
|
906
|
+
</li>
|
|
907
|
+
|
|
908
|
+
<li>
|
|
909
|
+
|
|
910
|
+
<span class='name'>opts</span>
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
—
|
|
920
|
+
<div class='inline'>
|
|
921
|
+
<p>the optional parameters</p>
|
|
922
|
+
</div>
|
|
923
|
+
|
|
924
|
+
</li>
|
|
925
|
+
|
|
926
|
+
</ul>
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
|
|
932
|
+
|
|
933
|
+
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
|
934
|
+
<ul class="option">
|
|
935
|
+
|
|
936
|
+
<li>
|
|
937
|
+
<span class="name">:access_signature</span>
|
|
938
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
939
|
+
<span class="default">
|
|
940
|
+
|
|
941
|
+
</span>
|
|
942
|
+
|
|
943
|
+
— <div class='inline'>
|
|
944
|
+
<p>Access signature can be mandatory for specific context. Treezor will
|
|
945
|
+
contact you if so. More info [here](<a
|
|
946
|
+
href="https://agent.treezor.com/security-authentication">agent.treezor.com/security-authentication</a>).</p>
|
|
947
|
+
</div>
|
|
948
|
+
|
|
949
|
+
</li>
|
|
950
|
+
|
|
951
|
+
<li>
|
|
952
|
+
<span class="name">:access_tag</span>
|
|
953
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
954
|
+
<span class="default">
|
|
955
|
+
|
|
956
|
+
</span>
|
|
957
|
+
|
|
958
|
+
— <div class='inline'>
|
|
959
|
+
<p>Access tag is used for idem potency query. More info [here](<a
|
|
960
|
+
href="https://agent.treezor.com/basics">agent.treezor.com/basics</a>).</p>
|
|
961
|
+
</div>
|
|
962
|
+
|
|
963
|
+
</li>
|
|
964
|
+
|
|
965
|
+
<li>
|
|
966
|
+
<span class="name">:access_user_id</span>
|
|
967
|
+
<span class="type">(<tt>Integer</tt>)</span>
|
|
968
|
+
<span class="default">
|
|
969
|
+
|
|
970
|
+
</span>
|
|
971
|
+
|
|
972
|
+
— <div class='inline'>
|
|
973
|
+
<p>Access user&#39;s id is used for user&#39;s action restriction.
|
|
974
|
+
More info [here](<a
|
|
975
|
+
href="https://agent.treezor.com/basics">agent.treezor.com/basics</a>).</p>
|
|
976
|
+
</div>
|
|
977
|
+
|
|
978
|
+
</li>
|
|
979
|
+
|
|
980
|
+
<li>
|
|
981
|
+
<span class="name">:access_user_ip</span>
|
|
982
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
983
|
+
<span class="default">
|
|
984
|
+
|
|
985
|
+
</span>
|
|
986
|
+
|
|
987
|
+
— <div class='inline'>
|
|
988
|
+
<p>Access user&#39;s ip is used for user&#39;s action restriction.
|
|
989
|
+
More info [here](<a
|
|
990
|
+
href="https://agent.treezor.com/basics">agent.treezor.com/basics</a>).</p>
|
|
991
|
+
</div>
|
|
992
|
+
|
|
993
|
+
</li>
|
|
994
|
+
|
|
995
|
+
<li>
|
|
996
|
+
<span class="name">:name_exact</span>
|
|
997
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
998
|
+
<span class="default">
|
|
999
|
+
|
|
1000
|
+
</span>
|
|
1001
|
+
|
|
1002
|
+
— <div class='inline'>
|
|
1003
|
+
<p>Business exact name. Exclusive with nameMatchBeginning and
|
|
1004
|
+
nameClosestKeywords.</p>
|
|
1005
|
+
</div>
|
|
1006
|
+
|
|
1007
|
+
</li>
|
|
1008
|
+
|
|
1009
|
+
<li>
|
|
1010
|
+
<span class="name">:name_match_beginning</span>
|
|
1011
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1012
|
+
<span class="default">
|
|
1013
|
+
|
|
1014
|
+
</span>
|
|
1015
|
+
|
|
1016
|
+
— <div class='inline'>
|
|
1017
|
+
<p>Business names begin with. Exclusive with nameExact and
|
|
1018
|
+
nameClosestKeywords.</p>
|
|
1019
|
+
</div>
|
|
1020
|
+
|
|
1021
|
+
</li>
|
|
1022
|
+
|
|
1023
|
+
<li>
|
|
1024
|
+
<span class="name">:name_closest_keywords</span>
|
|
1025
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1026
|
+
<span class="default">
|
|
1027
|
+
|
|
1028
|
+
</span>
|
|
1029
|
+
|
|
1030
|
+
— <div class='inline'>
|
|
1031
|
+
<p>Business names closed to keywords. Exclusive with nameExact and
|
|
1032
|
+
nameMatchBeginning.</p>
|
|
1033
|
+
</div>
|
|
1034
|
+
|
|
1035
|
+
</li>
|
|
1036
|
+
|
|
1037
|
+
<li>
|
|
1038
|
+
<span class="name">:registration_number</span>
|
|
1039
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1040
|
+
<span class="default">
|
|
1041
|
+
|
|
1042
|
+
</span>
|
|
1043
|
+
|
|
1044
|
+
— <div class='inline'>
|
|
1045
|
+
<p>Business registration number.</p>
|
|
1046
|
+
</div>
|
|
1047
|
+
|
|
1048
|
+
</li>
|
|
1049
|
+
|
|
1050
|
+
<li>
|
|
1051
|
+
<span class="name">:vat_number</span>
|
|
1052
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1053
|
+
<span class="default">
|
|
1054
|
+
|
|
1055
|
+
</span>
|
|
1056
|
+
|
|
1057
|
+
— <div class='inline'>
|
|
1058
|
+
<p>Business VAT number.</p>
|
|
1059
|
+
</div>
|
|
1060
|
+
|
|
1061
|
+
</li>
|
|
1062
|
+
|
|
1063
|
+
<li>
|
|
1064
|
+
<span class="name">:phone_number</span>
|
|
1065
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1066
|
+
<span class="default">
|
|
1067
|
+
|
|
1068
|
+
</span>
|
|
1069
|
+
|
|
1070
|
+
— <div class='inline'>
|
|
1071
|
+
<p>Business phone number.</p>
|
|
1072
|
+
</div>
|
|
1073
|
+
|
|
1074
|
+
</li>
|
|
1075
|
+
|
|
1076
|
+
<li>
|
|
1077
|
+
<span class="name">:address_street</span>
|
|
1078
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1079
|
+
<span class="default">
|
|
1080
|
+
|
|
1081
|
+
</span>
|
|
1082
|
+
|
|
1083
|
+
— <div class='inline'>
|
|
1084
|
+
<p>Business&#39; street address.</p>
|
|
1085
|
+
</div>
|
|
1086
|
+
|
|
1087
|
+
</li>
|
|
1088
|
+
|
|
1089
|
+
<li>
|
|
1090
|
+
<span class="name">:address_city</span>
|
|
1091
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1092
|
+
<span class="default">
|
|
1093
|
+
|
|
1094
|
+
</span>
|
|
1095
|
+
|
|
1096
|
+
— <div class='inline'>
|
|
1097
|
+
<p>Business&#39; city address.</p>
|
|
1098
|
+
</div>
|
|
1099
|
+
|
|
1100
|
+
</li>
|
|
1101
|
+
|
|
1102
|
+
<li>
|
|
1103
|
+
<span class="name">:address_postal_code</span>
|
|
1104
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1105
|
+
<span class="default">
|
|
1106
|
+
|
|
1107
|
+
</span>
|
|
1108
|
+
|
|
1109
|
+
— <div class='inline'>
|
|
1110
|
+
<p>Business&#39; postal code address.</p>
|
|
1111
|
+
</div>
|
|
1112
|
+
|
|
1113
|
+
</li>
|
|
1114
|
+
|
|
1115
|
+
</ul>
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
<p class="tag_title">Returns:</p>
|
|
1119
|
+
<ul class="return">
|
|
1120
|
+
|
|
1121
|
+
<li>
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
<span class='type'>(<tt>Array<<span class='object_link'><a href="InlineResponse2004.html" title="TreezorClient::InlineResponse2004 (class)">InlineResponse2004</a></span>></tt>)</span>
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
</li>
|
|
1129
|
+
|
|
1130
|
+
</ul>
|
|
1131
|
+
|
|
1132
|
+
</div><table class="source_code">
|
|
1133
|
+
<tr>
|
|
1134
|
+
<td>
|
|
1135
|
+
<pre class="lines">
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
114
|
|
1139
|
+
115
|
|
1140
|
+
116
|
|
1141
|
+
117</pre>
|
|
1142
|
+
</td>
|
|
1143
|
+
<td>
|
|
1144
|
+
<pre class="code"><span class="info file"># File 'lib/treezor_client/api/business_api.rb', line 114</span>
|
|
1145
|
+
|
|
1146
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_businesssearchs_get'>businesssearchs_get</span><span class='lparen'>(</span><span class='id identifier rubyid_country'>country</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
1147
|
+
<span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid__status_code'>_status_code</span><span class='comma'>,</span> <span class='id identifier rubyid__headers'>_headers</span> <span class='op'>=</span> <span class='id identifier rubyid_businesssearchs_get_with_http_info'>businesssearchs_get_with_http_info</span><span class='lparen'>(</span><span class='id identifier rubyid_country'>country</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='rparen'>)</span>
|
|
1148
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_data'>data</span>
|
|
1149
|
+
<span class='kw'>end</span></pre>
|
|
1150
|
+
</td>
|
|
1151
|
+
</tr>
|
|
1152
|
+
</table>
|
|
1153
|
+
</div>
|
|
1154
|
+
|
|
1155
|
+
<div class="method_details ">
|
|
1156
|
+
<h3 class="signature " id="businesssearchs_get_with_http_info-instance_method">
|
|
1157
|
+
|
|
1158
|
+
#<strong>businesssearchs_get_with_http_info</strong>(country, opts = {}) ⇒ <tt>Array<(Array<<span class='object_link'><a href="InlineResponse2004.html" title="TreezorClient::InlineResponse2004 (class)">InlineResponse2004</a></span>>, Fixnum, Hash)></tt>
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
</h3><div class="docstring">
|
|
1165
|
+
<div class="discussion">
|
|
1166
|
+
|
|
1167
|
+
<p>search businesses The search endpoint returns some business information.</p>
|
|
1168
|
+
|
|
1169
|
+
|
|
1170
|
+
</div>
|
|
1171
|
+
</div>
|
|
1172
|
+
<div class="tags">
|
|
1173
|
+
<p class="tag_title">Parameters:</p>
|
|
1174
|
+
<ul class="param">
|
|
1175
|
+
|
|
1176
|
+
<li>
|
|
1177
|
+
|
|
1178
|
+
<span class='name'>country</span>
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
<span class='type'></span>
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
—
|
|
1186
|
+
<div class='inline'>
|
|
1187
|
+
<p>In which country to search. Format [ISO 3166-1 alpha-2](<a
|
|
1188
|
+
href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">en.wikipedia.org/wiki/ISO_3166-1_alpha-2</a>)</p>
|
|
1189
|
+
</div>
|
|
1190
|
+
|
|
1191
|
+
</li>
|
|
1192
|
+
|
|
1193
|
+
<li>
|
|
1194
|
+
|
|
1195
|
+
<span class='name'>opts</span>
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
|
1199
|
+
|
|
1200
|
+
|
|
1201
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
—
|
|
1205
|
+
<div class='inline'>
|
|
1206
|
+
<p>the optional parameters</p>
|
|
1207
|
+
</div>
|
|
1208
|
+
|
|
1209
|
+
</li>
|
|
1210
|
+
|
|
1211
|
+
</ul>
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
|
|
1217
|
+
|
|
1218
|
+
<p class="tag_title">Options Hash (<tt>opts</tt>):</p>
|
|
1219
|
+
<ul class="option">
|
|
1220
|
+
|
|
1221
|
+
<li>
|
|
1222
|
+
<span class="name">:access_signature</span>
|
|
1223
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1224
|
+
<span class="default">
|
|
1225
|
+
|
|
1226
|
+
</span>
|
|
1227
|
+
|
|
1228
|
+
— <div class='inline'>
|
|
1229
|
+
<p>Access signature can be mandatory for specific context. Treezor will
|
|
1230
|
+
contact you if so. More info [here](<a
|
|
1231
|
+
href="https://agent.treezor.com/security-authentication">agent.treezor.com/security-authentication</a>).</p>
|
|
1232
|
+
</div>
|
|
1233
|
+
|
|
1234
|
+
</li>
|
|
1235
|
+
|
|
1236
|
+
<li>
|
|
1237
|
+
<span class="name">:access_tag</span>
|
|
1238
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1239
|
+
<span class="default">
|
|
1240
|
+
|
|
1241
|
+
</span>
|
|
1242
|
+
|
|
1243
|
+
— <div class='inline'>
|
|
1244
|
+
<p>Access tag is used for idem potency query. More info [here](<a
|
|
1245
|
+
href="https://agent.treezor.com/basics">agent.treezor.com/basics</a>).</p>
|
|
1246
|
+
</div>
|
|
1247
|
+
|
|
1248
|
+
</li>
|
|
1249
|
+
|
|
1250
|
+
<li>
|
|
1251
|
+
<span class="name">:access_user_id</span>
|
|
1252
|
+
<span class="type">(<tt>Integer</tt>)</span>
|
|
1253
|
+
<span class="default">
|
|
1254
|
+
|
|
1255
|
+
</span>
|
|
1256
|
+
|
|
1257
|
+
— <div class='inline'>
|
|
1258
|
+
<p>Access user&#39;s id is used for user&#39;s action restriction.
|
|
1259
|
+
More info [here](<a
|
|
1260
|
+
href="https://agent.treezor.com/basics">agent.treezor.com/basics</a>).</p>
|
|
1261
|
+
</div>
|
|
1262
|
+
|
|
1263
|
+
</li>
|
|
1264
|
+
|
|
1265
|
+
<li>
|
|
1266
|
+
<span class="name">:access_user_ip</span>
|
|
1267
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1268
|
+
<span class="default">
|
|
1269
|
+
|
|
1270
|
+
</span>
|
|
1271
|
+
|
|
1272
|
+
— <div class='inline'>
|
|
1273
|
+
<p>Access user&#39;s ip is used for user&#39;s action restriction.
|
|
1274
|
+
More info [here](<a
|
|
1275
|
+
href="https://agent.treezor.com/basics">agent.treezor.com/basics</a>).</p>
|
|
1276
|
+
</div>
|
|
1277
|
+
|
|
1278
|
+
</li>
|
|
1279
|
+
|
|
1280
|
+
<li>
|
|
1281
|
+
<span class="name">:name_exact</span>
|
|
1282
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1283
|
+
<span class="default">
|
|
1284
|
+
|
|
1285
|
+
</span>
|
|
1286
|
+
|
|
1287
|
+
— <div class='inline'>
|
|
1288
|
+
<p>Business exact name. Exclusive with nameMatchBeginning and
|
|
1289
|
+
nameClosestKeywords.</p>
|
|
1290
|
+
</div>
|
|
1291
|
+
|
|
1292
|
+
</li>
|
|
1293
|
+
|
|
1294
|
+
<li>
|
|
1295
|
+
<span class="name">:name_match_beginning</span>
|
|
1296
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1297
|
+
<span class="default">
|
|
1298
|
+
|
|
1299
|
+
</span>
|
|
1300
|
+
|
|
1301
|
+
— <div class='inline'>
|
|
1302
|
+
<p>Business names begin with. Exclusive with nameExact and
|
|
1303
|
+
nameClosestKeywords.</p>
|
|
1304
|
+
</div>
|
|
1305
|
+
|
|
1306
|
+
</li>
|
|
1307
|
+
|
|
1308
|
+
<li>
|
|
1309
|
+
<span class="name">:name_closest_keywords</span>
|
|
1310
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1311
|
+
<span class="default">
|
|
1312
|
+
|
|
1313
|
+
</span>
|
|
1314
|
+
|
|
1315
|
+
— <div class='inline'>
|
|
1316
|
+
<p>Business names closed to keywords. Exclusive with nameExact and
|
|
1317
|
+
nameMatchBeginning.</p>
|
|
1318
|
+
</div>
|
|
1319
|
+
|
|
1320
|
+
</li>
|
|
1321
|
+
|
|
1322
|
+
<li>
|
|
1323
|
+
<span class="name">:registration_number</span>
|
|
1324
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1325
|
+
<span class="default">
|
|
1326
|
+
|
|
1327
|
+
</span>
|
|
1328
|
+
|
|
1329
|
+
— <div class='inline'>
|
|
1330
|
+
<p>Business registration number.</p>
|
|
1331
|
+
</div>
|
|
1332
|
+
|
|
1333
|
+
</li>
|
|
1334
|
+
|
|
1335
|
+
<li>
|
|
1336
|
+
<span class="name">:vat_number</span>
|
|
1337
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1338
|
+
<span class="default">
|
|
1339
|
+
|
|
1340
|
+
</span>
|
|
1341
|
+
|
|
1342
|
+
— <div class='inline'>
|
|
1343
|
+
<p>Business VAT number.</p>
|
|
1344
|
+
</div>
|
|
1345
|
+
|
|
1346
|
+
</li>
|
|
1347
|
+
|
|
1348
|
+
<li>
|
|
1349
|
+
<span class="name">:phone_number</span>
|
|
1350
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1351
|
+
<span class="default">
|
|
1352
|
+
|
|
1353
|
+
</span>
|
|
1354
|
+
|
|
1355
|
+
— <div class='inline'>
|
|
1356
|
+
<p>Business phone number.</p>
|
|
1357
|
+
</div>
|
|
1358
|
+
|
|
1359
|
+
</li>
|
|
1360
|
+
|
|
1361
|
+
<li>
|
|
1362
|
+
<span class="name">:address_street</span>
|
|
1363
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1364
|
+
<span class="default">
|
|
1365
|
+
|
|
1366
|
+
</span>
|
|
1367
|
+
|
|
1368
|
+
— <div class='inline'>
|
|
1369
|
+
<p>Business&#39; street address.</p>
|
|
1370
|
+
</div>
|
|
1371
|
+
|
|
1372
|
+
</li>
|
|
1373
|
+
|
|
1374
|
+
<li>
|
|
1375
|
+
<span class="name">:address_city</span>
|
|
1376
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1377
|
+
<span class="default">
|
|
1378
|
+
|
|
1379
|
+
</span>
|
|
1380
|
+
|
|
1381
|
+
— <div class='inline'>
|
|
1382
|
+
<p>Business&#39; city address.</p>
|
|
1383
|
+
</div>
|
|
1384
|
+
|
|
1385
|
+
</li>
|
|
1386
|
+
|
|
1387
|
+
<li>
|
|
1388
|
+
<span class="name">:address_postal_code</span>
|
|
1389
|
+
<span class="type">(<tt>String</tt>)</span>
|
|
1390
|
+
<span class="default">
|
|
1391
|
+
|
|
1392
|
+
</span>
|
|
1393
|
+
|
|
1394
|
+
— <div class='inline'>
|
|
1395
|
+
<p>Business&#39; postal code address.</p>
|
|
1396
|
+
</div>
|
|
1397
|
+
|
|
1398
|
+
</li>
|
|
1399
|
+
|
|
1400
|
+
</ul>
|
|
1401
|
+
|
|
1402
|
+
|
|
1403
|
+
<p class="tag_title">Returns:</p>
|
|
1404
|
+
<ul class="return">
|
|
1405
|
+
|
|
1406
|
+
<li>
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
<span class='type'>(<tt>Array<(Array<<span class='object_link'><a href="InlineResponse2004.html" title="TreezorClient::InlineResponse2004 (class)">InlineResponse2004</a></span>>, Fixnum, Hash)></tt>)</span>
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
—
|
|
1414
|
+
<div class='inline'>
|
|
1415
|
+
<p>Array<InlineResponse2004> data, response status code and response
|
|
1416
|
+
headers</p>
|
|
1417
|
+
</div>
|
|
1418
|
+
|
|
1419
|
+
</li>
|
|
1420
|
+
|
|
1421
|
+
</ul>
|
|
1422
|
+
|
|
1423
|
+
</div><table class="source_code">
|
|
1424
|
+
<tr>
|
|
1425
|
+
<td>
|
|
1426
|
+
<pre class="lines">
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
137
|
|
1430
|
+
138
|
|
1431
|
+
139
|
|
1432
|
+
140
|
|
1433
|
+
141
|
|
1434
|
+
142
|
|
1435
|
+
143
|
|
1436
|
+
144
|
|
1437
|
+
145
|
|
1438
|
+
146
|
|
1439
|
+
147
|
|
1440
|
+
148
|
|
1441
|
+
149
|
|
1442
|
+
150
|
|
1443
|
+
151
|
|
1444
|
+
152
|
|
1445
|
+
153
|
|
1446
|
+
154
|
|
1447
|
+
155
|
|
1448
|
+
156
|
|
1449
|
+
157
|
|
1450
|
+
158
|
|
1451
|
+
159
|
|
1452
|
+
160
|
|
1453
|
+
161
|
|
1454
|
+
162
|
|
1455
|
+
163
|
|
1456
|
+
164
|
|
1457
|
+
165
|
|
1458
|
+
166
|
|
1459
|
+
167
|
|
1460
|
+
168
|
|
1461
|
+
169
|
|
1462
|
+
170
|
|
1463
|
+
171
|
|
1464
|
+
172
|
|
1465
|
+
173
|
|
1466
|
+
174
|
|
1467
|
+
175
|
|
1468
|
+
176
|
|
1469
|
+
177
|
|
1470
|
+
178
|
|
1471
|
+
179
|
|
1472
|
+
180
|
|
1473
|
+
181
|
|
1474
|
+
182
|
|
1475
|
+
183
|
|
1476
|
+
184
|
|
1477
|
+
185</pre>
|
|
1478
|
+
</td>
|
|
1479
|
+
<td>
|
|
1480
|
+
<pre class="code"><span class="info file"># File 'lib/treezor_client/api/business_api.rb', line 137</span>
|
|
1481
|
+
|
|
1482
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_businesssearchs_get_with_http_info'>businesssearchs_get_with_http_info</span><span class='lparen'>(</span><span class='id identifier rubyid_country'>country</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
1483
|
+
<span class='kw'>if</span> <span class='ivar'>@api_client</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_debugging'>debugging</span>
|
|
1484
|
+
<span class='ivar'>@api_client</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_debug'>debug</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Calling API: BusinessApi.businesssearchs_get ...</span><span class='tstring_end'>"</span></span>
|
|
1485
|
+
<span class='kw'>end</span>
|
|
1486
|
+
<span class='comment'># verify the required parameter 'country' is set
|
|
1487
|
+
</span> <span class='kw'>if</span> <span class='ivar'>@api_client</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_client_side_validation'>client_side_validation</span> <span class='op'>&&</span> <span class='id identifier rubyid_country'>country</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
1488
|
+
<span class='id identifier rubyid_fail'>fail</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Missing the required parameter 'country' when calling BusinessApi.businesssearchs_get</span><span class='tstring_end'>"</span></span>
|
|
1489
|
+
<span class='kw'>end</span>
|
|
1490
|
+
<span class='comment'># resource path
|
|
1491
|
+
</span> <span class='id identifier rubyid_local_var_path'>local_var_path</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/businesssearchs</span><span class='tstring_end'>"</span></span>
|
|
1492
|
+
|
|
1493
|
+
<span class='comment'># query parameters
|
|
1494
|
+
</span> <span class='id identifier rubyid_query_params'>query_params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
1495
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'country'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_country'>country</span>
|
|
1496
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'accessSignature'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'access_signature'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'access_signature'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
1497
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'accessTag'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'access_tag'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'access_tag'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
1498
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'accessUserId'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'access_user_id'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'access_user_id'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
1499
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'accessUserIp'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'access_user_ip'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'access_user_ip'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
1500
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'nameExact'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'name_exact'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'name_exact'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
1501
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'nameMatchBeginning'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'name_match_beginning'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'name_match_beginning'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
1502
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'nameClosestKeywords'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'name_closest_keywords'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'name_closest_keywords'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
1503
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'registrationNumber'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'registration_number'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'registration_number'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
1504
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'vatNumber'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'vat_number'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'vat_number'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
1505
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'phoneNumber'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'phone_number'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'phone_number'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
1506
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'addressStreet'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'address_street'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'address_street'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
1507
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'addressCity'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'address_city'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'address_city'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
1508
|
+
<span class='id identifier rubyid_query_params'>query_params</span><span class='lbracket'>[</span><span class='symbol'>:'addressPostalCode'</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'address_postal_code'</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:'address_postal_code'</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
1509
|
+
|
|
1510
|
+
<span class='comment'># header parameters
|
|
1511
|
+
</span> <span class='id identifier rubyid_header_params'>header_params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
1512
|
+
|
|
1513
|
+
<span class='comment'># form parameters
|
|
1514
|
+
</span> <span class='id identifier rubyid_form_params'>form_params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
|
1515
|
+
|
|
1516
|
+
<span class='comment'># http body (model)
|
|
1517
|
+
</span> <span class='id identifier rubyid_post_body'>post_body</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
|
1518
|
+
<span class='id identifier rubyid_auth_names'>auth_names</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>api_key</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
|
1519
|
+
<span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_status_code'>status_code</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span> <span class='op'>=</span> <span class='ivar'>@api_client</span><span class='period'>.</span><span class='id identifier rubyid_call_api'>call_api</span><span class='lparen'>(</span><span class='symbol'>:GET</span><span class='comma'>,</span> <span class='id identifier rubyid_local_var_path'>local_var_path</span><span class='comma'>,</span>
|
|
1520
|
+
<span class='symbol'>:header_params</span> <span class='op'>=></span> <span class='id identifier rubyid_header_params'>header_params</span><span class='comma'>,</span>
|
|
1521
|
+
<span class='symbol'>:query_params</span> <span class='op'>=></span> <span class='id identifier rubyid_query_params'>query_params</span><span class='comma'>,</span>
|
|
1522
|
+
<span class='symbol'>:form_params</span> <span class='op'>=></span> <span class='id identifier rubyid_form_params'>form_params</span><span class='comma'>,</span>
|
|
1523
|
+
<span class='symbol'>:body</span> <span class='op'>=></span> <span class='id identifier rubyid_post_body'>post_body</span><span class='comma'>,</span>
|
|
1524
|
+
<span class='symbol'>:auth_names</span> <span class='op'>=></span> <span class='id identifier rubyid_auth_names'>auth_names</span><span class='comma'>,</span>
|
|
1525
|
+
<span class='symbol'>:return_type</span> <span class='op'>=></span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Array<InlineResponse2004></span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
1526
|
+
<span class='kw'>if</span> <span class='ivar'>@api_client</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_debugging'>debugging</span>
|
|
1527
|
+
<span class='ivar'>@api_client</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_debug'>debug</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>API called: BusinessApi#businesssearchs_get\nData: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nStatus code: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_status_code'>status_code</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nHeaders: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_headers'>headers</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
|
1528
|
+
<span class='kw'>end</span>
|
|
1529
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_status_code'>status_code</span><span class='comma'>,</span> <span class='id identifier rubyid_headers'>headers</span>
|
|
1530
|
+
<span class='kw'>end</span></pre>
|
|
1531
|
+
</td>
|
|
1532
|
+
</tr>
|
|
1533
|
+
</table>
|
|
1534
|
+
</div>
|
|
1535
|
+
|
|
1536
|
+
</div>
|
|
1537
|
+
|
|
1538
|
+
</div>
|
|
1539
|
+
|
|
1540
|
+
<div id="footer">
|
|
1541
|
+
Generated on Wed Aug 8 17:39:09 2018 by
|
|
1542
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1543
|
+
0.9.15 (ruby-2.5.1).
|
|
1544
|
+
</div>
|
|
1545
|
+
|
|
1546
|
+
</div>
|
|
1547
|
+
</body>
|
|
1548
|
+
</html>
|