UNPKG

bc-opayo-sdk

Version:

BetterCommerce's Opayo NodeJS SDK enables BC client applications to integrate with Opayo merchant API system. It publishes an interface to interact with [Opayo API](https://www.elavon.co.uk/resource-center/help-with-your-solutions/opayo/integrations/types

35 lines (34 loc) 2.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TransactionType = void 0; /** * Enum {@link TransactionType} represents the various types of transactions supported by the API. * * @readonly * @enum {string} * @property {string} PAYMENT - A standard payment where funds are immediately captured from the customer’s card. * @property {string} DEFERRED - A payment that is authorized but not immediately captured, allowing you to capture it later * @property {string} AUTHORIZATION - A transaction where only authorization occurs, without capturing the funds * @property {string} REFUND - A transaction that returns funds to the customer for a previous payment * @property {string} VOID - Cancels a transaction that has not yet been settled * @property {string} CANCEL - Similar to void, cancels a deferred or pre-authorized transaction before capture * @property {string} RELEASE - Captures funds from a previously deferred transaction * @property {string} ABORT - Cancels a deferred transaction before it is released * @property {string} REPEAT - A new transaction using card details from a previous successful transaction * @property {string} AUTHORIZE - Converts a deferred transaction into a payment by requesting authorization * @property {string} DIRECT_REFUND - Refunds money to a card without referencing a previous transaction (only available for certain merchants) */ var TransactionType; (function (TransactionType) { TransactionType["PAYMENT"] = "Payment"; TransactionType["DEFERRED"] = "Deferred"; TransactionType["AUTHORIZATION"] = "Authorization"; TransactionType["REFUND"] = "Refund"; TransactionType["VOID"] = "Void"; TransactionType["CANCEL"] = "Cancel"; TransactionType["RELEASE"] = "Release"; TransactionType["ABORT"] = "Abort"; TransactionType["REPEAT"] = "Repeat"; TransactionType["AUTHORIZE"] = "Authorise"; TransactionType["DIRECT_REFUND"] = "DirectRefund"; })(TransactionType = exports.TransactionType || (exports.TransactionType = {}));