0.1.3 • Published 3 years ago

treezor v0.1.3

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
3 years ago

treezor

Treezor - JavaScript client for treezor Treezor API. more info here. This SDK is automatically generated by the Swagger Codegen project:

  • API version: 0.1.1
  • Package version: 0.1.1
  • Build package: io.swagger.codegen.v3.generators.javascript.JavaScriptClientCodegen

Installation

For Node.js

npm

Install it via:

npm install treezor --save

git

If the library is hosted at a git repository, e.g. https://github.com/azgar44/treezor then install it via:

    npm install azgar44/treezor --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var Treezor = require('treezor');
var defaultClient = Treezor.ApiClient.instance;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['Authorization'] = "Token"

var api = new Treezor.AcquirerMerchantIdGroupsApi()
var id = 789; // {Number} Merchant ID restriction Group internal id.
var opts = { 
  'fields': ["fields_example"] // {[String]} List of the object's properties you want to pick up.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteAcquirerMerchantIdGroups(id, opts, callback);

Documentation for API Endpoints

All URIs are relative to https://sandbox.treezor.com/v1/index.php

ClassMethodHTTP requestDescription
Treezor.AcquirerMerchantIdGroupsApideleteAcquirerMerchantIdGroupsDELETE /acquirerMerchantIdGroups/{id}cancel a merchant id restriction group
Treezor.AcquirerMerchantIdGroupsApigetAcquirerMerchantIdGroupGET /acquirerMerchantIdGroupssearch acquirer merchant id restriction groups
Treezor.AcquirerMerchantIdGroupsApigetAcquirerMerchantIdGroupsIdGET /acquirerMerchantIdGroups/{id}get a acquirer merchant ID restriction group
Treezor.AcquirerMerchantIdGroupsApipostAcquirerMerchantIdGroupPOST /acquirerMerchantIdGroupscreate a acquirerMerchantIdGroup
Treezor.AcquirerMerchantIdGroupsApiputAcquirerMerchantIdGroupsPUT /acquirerMerchantIdGroups/{id}edit an acquirer merchant id restriction group
Treezor.BalanceApigetBalancesGET /balancessearch balances
Treezor.BankaccountApideleteBankaccountDELETE /bankaccounts/{id}deactivate a bank account
Treezor.BankaccountApigetBankaccountGET /bankaccounts/{id}get a bank account
Treezor.BankaccountApigetBankaccountsGET /bankaccountssearch bank accounts
Treezor.BankaccountApipostBankaccountPOST /bankaccountscreate a bank account
Treezor.BeneficiariesApigetBeneficiariesGET /beneficiariessearch beneficiary bank accounts
Treezor.BeneficiariesApigetBeneficiaryGET /beneficiaries/{id}get a beneficiary bank account
Treezor.BeneficiariesApipostBeneficiaryPOST /beneficiariescreate a beneficiary
Treezor.BeneficiariesApiputBeneficiaryPUT /beneficiaries/{id}edit a beneficiary
Treezor.BusinessApibusinessinformationsGetGET /businessinformationsget business information
Treezor.BusinessApibusinesssearchsGetGET /businesssearchssearch businesses
Treezor.CardApicardimagesGetGET /cardimagesget a card image
Treezor.CardApicardsCreateVirtualPostPOST /cards/CreateVirtualcreate a virtual card
Treezor.CardApicardsGetGET /cardssearch cards
Treezor.CardApicardsIdActivatePutPUT /cards/{id}/Activate/activate a card
Treezor.CardApicardsIdChangePINPutPUT /cards/{id}/ChangePIN/change card's PIN
Treezor.CardApicardsIdConvertVirtualPutPUT /cards/{id}/ConvertVirtual/convert card to virtual
Treezor.CardApicardsIdGetGET /cards/{id}get a card
Treezor.CardApicardsIdLimitsPutPUT /cards/{id}/Limits/update card's limits
Treezor.CardApicardsIdLockUnlockPutPUT /cards/{id}/LockUnlock/update card's blocking status
Treezor.CardApicardsIdOptionsPutPUT /cards/{id}/Options/update card's options
Treezor.CardApicardsIdPutPUT /cards/{id}update card informations
Treezor.CardApicardsIdRegeneratePutPUT /cards/{id}/Regenerate/regenerate card
Treezor.CardApicardsIdSetPINPutPUT /cards/{id}/setPIN/set card's PIN
Treezor.CardApicardsIdUnblockPINPutPUT /cards/{id}/UnblockPIN/unblock card's PIN
Treezor.CardApicardsRegister3DSPostPOST /cards/Register3DSRegister 3D secure
Treezor.CardApicardsRequestPhysicalPostPOST /cards/RequestPhysicalcreate a physical card
Treezor.CardDigitalizationsApicardDigitalizationsIdGET /cardDigitalizations/{id}Get a card digitalizations based on its internal id
Treezor.CardDigitalizationsApideletecardDigitalizationsIdDELETE /cardDigitalizations/{id}Deletes a payment Token
Treezor.CardDigitalizationsApiputcardDigitalizationsIdPUT /cardDigitalizations/{id}Update the status of a payment Token
Treezor.CardDigitalizationsApireadcardDigitalizationsGET /cardDigitalizationssearch for card digitalizations
Treezor.CardReserveApicardReserveAddToPOST /cardReserves/AddToadd an amount to the reserved amount of a card
Treezor.CardReserveApicardReserveCheckPOST /cardReserves/Checkcheck reserved amount
Treezor.CardReserveApicardReserveGetGET /cardReserves/{id}get the reserved amount of a card
Treezor.CardtransactionApigetCardtransactionGET /cardtransactions/{id}get a card transaction
Treezor.CardtransactionApireadCardTransactionGET /cardtransactionssearch for card transactions
Treezor.CountryRestrictionGroupsApideleteCountryRestrictionGroupsDELETE /countryRestrictionGroups/{id}cancel a country group
Treezor.CountryRestrictionGroupsApigetCountryRestrictionGroupsGET /countryRestrictionGroupssearch country restriction groups
Treezor.CountryRestrictionGroupsApigetCountryRestrictionGroupsIdGET /countryRestrictionGroups/{id}get a country group
Treezor.CountryRestrictionGroupsApipostCountryRestrictionGroupPOST /countryRestrictionGroupscreate a countryRestrictionGroup
Treezor.CountryRestrictionGroupsApiputCountryRestrictionGroupsPUT /countryRestrictionGroups/{id}edit a country restriction group
Treezor.DocumentApicreateDocumentsPOST /documentscreate a document
Treezor.DocumentApideleteDocumentDELETE /documents/{id}delete document
Treezor.DocumentApigetDocumentGET /documents/{id}get a document
Treezor.DocumentApigetDocumentsGET /documentssearch documents
Treezor.DocumentApiputDocumentPUT /documents/{id}update a document
Treezor.HeartbeatApigetHeartbeatGET /heartbeatsGet the status of the API
Treezor.IssuerInitiatedDigitizationDataApitavRequestPOSTPOST /issuerInitiatedDigitizationDatasRequest the issuerInitiatedDigitizationData
Treezor.IssuerInitiatedDigitizationDataApitavrequestgetGET /issuerInitiatedDigitizationDatasSearch issuerInitiatedDigitizationData requests
Treezor.MandateApideleteMandateDELETE /mandates/{id}revoke a mandate
Treezor.MandateApigetMandateGET /mandates/{id}get mandate
Treezor.MandateApigetMandatesGET /mandatessearch mandates
Treezor.MandateApimandatesIdResendOtpPutPUT /mandates/{id}/ResendOtp/send an OTP
Treezor.MandateApimandatesIdSignPutPUT /mandates/{id}/Sign/sign a mandate
Treezor.MandateApipostMandatesPOST /mandatescreate a mandate
Treezor.MccRestrictionGroupsApideleteMccRestrictionGroupsDELETE /mccRestrictionGroups/{id}cancel a mcc group
Treezor.MccRestrictionGroupsApigetMccRestrictionGroupsGET /mccRestrictionGroupssearch mcc restriction groups
Treezor.MccRestrictionGroupsApigetMccRestrictionGroupsIdGET /mccRestrictionGroups/{id}get a mcc group
Treezor.MccRestrictionGroupsApipostMccRestrictionGroupPOST /mccRestrictionGroupscreate a mccRestrictionGroup
Treezor.MccRestrictionGroupsApiputMccRestrictionGroupsPUT /mccRestrictionGroups/{id}edit a mcc restriction group
Treezor.MerchantIdRestrictionGroupsApideleteMerchantIdRestrictionGroupsDELETE /merchantIdRestrictionGroups/{id}cancel a merchant id restriction group
Treezor.MerchantIdRestrictionGroupsApigetMerchantIdRestrictionGroupGET /merchantIdRestrictionGroupssearch merchant id restriction groups
Treezor.MerchantIdRestrictionGroupsApigetMerchantIdRestrictionGroupsIdGET /merchantIdRestrictionGroups/{id}get a merchant ID restriction group
Treezor.MerchantIdRestrictionGroupsApimerchantIdRestrictionGroupsIdDeltaUpdatePutPUT /merchantIdRestrictionGroups/{id}/DeltaUpdate/edit the merchant ID list for a restriction group
Treezor.MerchantIdRestrictionGroupsApimerchantIdRestrictionGroupsIdPresenceCheckGetGET /merchantIdRestrictionGroups/{id}/PresenceCheck/check the presence of merchants IDs list for a restriction group
Treezor.MerchantIdRestrictionGroupsApipostMerchantIdRestrictionGroupPOST /merchantIdRestrictionGroupscreate a merchantIdRestrictionGroup
Treezor.MerchantIdRestrictionGroupsApiputMerchantIdRestrictionGroupsPUT /merchantIdRestrictionGroups/{id}edit a merchant id restriction group (Deprecated)
Treezor.PayinApideletePayinDELETE /payins/{id}delete a pay in
Treezor.PayinApigetPayinGET /payins/{id}get a pay in
Treezor.PayinApigetPayinsGET /payinssearch pay ins
Treezor.PayinApipostPayinPOST /payinscreate a pay in
Treezor.PayinrefundApigetPayinrefundGET /payinrefunds/{id}get a pay in refund
Treezor.PayinrefundApigetPayinrefundsGET /payinrefundssearch pay in refunds
Treezor.PayoutApideletePayoutDELETE /payouts/{id}cancel a payout
Treezor.PayoutApigetPayoutGET /payouts/{id}get a payout
Treezor.PayoutApigetPayoutsGET /payoutssearch payout(s)
Treezor.PayoutApipostPayoutPOST /payoutscreate a pay out
Treezor.PayoutRefundsApigetPayoutRefundsGET /payoutRefundssearch pay outs refund
Treezor.RecallRApigetRecallRGET /recallRsget recalls or RRO
Treezor.RecallRApigetRecallRIdGET /recallRs/{id}get recalls or RRO
Treezor.RecallRApiputRecallRPUT /recallRs/{id}/response/Consent on a recall or RRO
Treezor.TaxResidenceApitaxResidencesGetGET /taxResidencessearch a residence
Treezor.TaxResidenceApitaxResidencesIdDeleteDELETE /taxResidences/{id}delete a residence
Treezor.TaxResidenceApitaxResidencesIdGetGET /taxResidences/{id}read the informations of a residence
Treezor.TaxResidenceApitaxResidencesIdPutPUT /taxResidences/{id}update the residence
Treezor.TaxResidenceApitaxResidencesPostPOST /taxResidencescreate a residence
Treezor.TransactionApigetTransactionGET /transactions/{id}get a transaction
Treezor.TransactionApigetTransactionsGET /transactionssearch transactions
Treezor.TransferApideleteTransferDELETE /transfers/{id}cancel a transfer
Treezor.TransferApigetTransferGET /transfers/{id}get a transfer
Treezor.TransferApigetTransfersGET /transferssearch transfers
Treezor.TransferApipostTransfersPOST /transferscreate a transfer
Treezor.TransferrefundApideleteTransferrefundDELETE /transferrefunds/{id}cancel a transfer refund
Treezor.TransferrefundApigetTransferrefundGET /transferrefunds/{id}get a transfer refund
Treezor.TransferrefundApigetTransferrefundsGET /transferrefundssearch transfer refunds
Treezor.TransferrefundApipostTransferrefundsPOST /transferrefundscreate a transfer refund
Treezor.UserApideleteUserDELETE /users/{id}delete a user
Treezor.UserApigetUserGET /users/{id}get an user
Treezor.UserApigetUsersGET /userssearch users
Treezor.UserApiputUserPUT /users/{id}update a user
Treezor.UserApiputUsersPOST /userscreate user
Treezor.UserApiusersIdKyclivenessPostPOST /users/{id}/kycliveness
Treezor.UserApiusersIdKyclivenessPutPUT /users/{id}/kycliveness
Treezor.UserApiusersIdKycreviewPutPUT /users/{id}/Kycreview/review user information
Treezor.VirtualibansApigetvirtualibanGET /virtualibans/{id}get a virtualiban by Id
Treezor.VirtualibansApigetvirtualibansGET /virtualibanssearch virtualibans
Treezor.VirtualibansApipostVirtualIbanPOST /virtualibanscreate a virtual IBAN
Treezor.VirtualibansApiputVirtualIbanPUT /virtualibans/{id}update a Virtual IBAN
Treezor.WalletApideleteWalletDELETE /wallets/{id}delete a wallet
Treezor.WalletApigetWalletGET /wallets/{id}get a wallet
Treezor.WalletApigetWalletsGET /walletssearch wallets
Treezor.WalletApipostWalletsPOST /walletscreate a wallet
Treezor.WalletApiputWalletPUT /wallets/{id}update a wallet

Documentation for Models

Documentation for Authorization

api_key

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header