Files
iface_ecosio/static/api/Pos_EXT.js
T

61 lines
2.4 KiB
JavaScript
Raw Normal View History

2026-04-02 08:29:44 +02:00
// Shorthand syntax to check if the namespace already exists, if not create an empty Object.
var comGkSoftwareGkrAppEnablementApi = comGkSoftwareGkrAppEnablementApi || {};
comGkSoftwareGkrAppEnablementApi.Pos_EXT = function () {
"use strict";
this._prefix = "comGkSoftwareGkrAppEnablementApi.Pos_EXT/";
};
/**
* @summary This function sets the emailRequestedFlag, emailAddressLocalPart and emailAddressDomainPart
* of the current retailTransaction.
*
* @author jsousa
* @name com.gk_software.gkr.app_enablement.api.Pos_EXT.receiptAsEmail
* @function
*/
comGkSoftwareGkrAppEnablementApi.Pos_EXT.prototype.receiptAsEmail = function (sResultFunction, sErrorFunction, oReceiptAsEmailRequest) {
oAppEnablementConnectorInstance.invokeMethod(this._prefix + "receiptAsEmail", sResultFunction, sErrorFunction, oReceiptAsEmailRequest);
};
/**
* @summary This function will create a sub-request object for the function 'receiptAsEmail'.
*
* @author jsousa
* @name com.gk_software.gkr.app_enablement.api.Pos_EXT.createReceiptAsEmailRequest
* @param {boolean} eReceiptFlag
* @param {string} emailAddress
* @returns (String) Returns a stringified object of com.gk_software.cst.pos.ui.app_enablement.ReceiptAsEmailRequest.
*/
comGkSoftwareGkrAppEnablementApi.Pos_EXT.prototype.createReceiptAsEmailRequest = function (eReceiptFlag, emailAddress) {
return JSON.stringify({
"ereceiptFlag": eReceiptFlag,
"emailAddress": emailAddress
});
};
/**
* @summary This function will invoke function to register multiple external lineitems by one single call
*
* @author jdanisik
*
* @param {string} oRegisterExternalLineItemListRequest
*/
comGkSoftwareGkrAppEnablementApi.Pos_EXT.prototype.registerExternalLineItemList = function (sResultFunction, sErrorFunction, oRegisterExternalLineItemListRequest) {
oAppEnablementConnectorInstance.invokeMethod(this._prefix + "registerExternalLineItemList", sResultFunction, sErrorFunction, oRegisterExternalLineItemListRequest);
};
/**
* @summary This function creates a transaction discount for Tommy 4 life
*
* @author mkuda
*
* @param {string} oTradeInRequest
*/
comGkSoftwareGkrAppEnablementApi.Pos_EXT.prototype.createTradeVoucherRequest = function (sResultFunction, sErrorFunction, oTradeInRequest) {
oAppEnablementConnectorInstance.invokeMethod(this._prefix + "createTradeVoucherRequest", sResultFunction, sErrorFunction, oTradeInRequest);
};