@managesome/eposmatic-toolkit 0.2.386 → 0.2.387
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.
|
@@ -19,7 +19,7 @@ interface IProps {
|
|
|
19
19
|
* Transaction type: "Test" for testing or "Live" for production.
|
|
20
20
|
* Defaults to `SRB_TRANSACTION_TYPE_ENUM.TEST`.
|
|
21
21
|
*/
|
|
22
|
-
transType
|
|
22
|
+
transType: SRB_TRANSACTION_TYPE_ENUM;
|
|
23
23
|
}
|
|
24
24
|
export declare function convertOrderToSrbInvoice({ posId, ntn, order, gmtOffset, pos_user, pos_pass, store_name, card_gst, transType, }: IProps): ISrbInvoice | null;
|
|
25
25
|
export {};
|
|
@@ -4,7 +4,7 @@ exports.convertOrderToSrbInvoice = convertOrderToSrbInvoice;
|
|
|
4
4
|
const constants_1 = require("../../constants");
|
|
5
5
|
const SRB_ENUMS_1 = require("../../constants/SRB_ENUMS");
|
|
6
6
|
const utils_1 = require("../utils");
|
|
7
|
-
function convertOrderToSrbInvoice({ posId, ntn, order, gmtOffset, pos_user, pos_pass, store_name, card_gst, transType
|
|
7
|
+
function convertOrderToSrbInvoice({ posId, ntn, order, gmtOffset, pos_user, pos_pass, store_name, card_gst, transType, }) {
|
|
8
8
|
// Invoice type: 1 = Normal Invoice, 2 = Sales Return (per SRB spec).
|
|
9
9
|
let invoiceType = SRB_ENUMS_1.SRB_INVOICE_TYPE_ENUM.NEW;
|
|
10
10
|
if (order.order_status === constants_1.ORDER_STATUS_ENUM.CANCELLED) {
|