@final-commerce/common 2.0.11-beta.2 → 2.0.11
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.
- package/dist/index.d.mts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/dist/pos-types/index.d.mts +9 -2
- package/dist/pos-types/index.d.ts +9 -2
- package/package.json +1 -1
|
@@ -402,8 +402,7 @@ declare enum InventorySpecificActionType {
|
|
|
402
402
|
SALE = "SALE",
|
|
403
403
|
TRANSFER = "TRANSFER",
|
|
404
404
|
BULK_RECOUNT = "BULK_RECOUNT",
|
|
405
|
-
APPLIED_FROM_WOO = "APPLIED_FROM_WOO"
|
|
406
|
-
PO_RECEIVED = "PO_RECEIVED"
|
|
405
|
+
APPLIED_FROM_WOO = "APPLIED_FROM_WOO"
|
|
407
406
|
}
|
|
408
407
|
declare enum UserTypes {
|
|
409
408
|
COMPANY_OWNER = "owner",
|
|
@@ -438,6 +437,12 @@ declare enum ProductStatus {
|
|
|
438
437
|
DRAFT = "draft"
|
|
439
438
|
}
|
|
440
439
|
|
|
440
|
+
declare enum PaymentProcessor {
|
|
441
|
+
STRIPE = "stripe",
|
|
442
|
+
ADYEN = "adyen",
|
|
443
|
+
EXTERNAL = "external"
|
|
444
|
+
}
|
|
445
|
+
|
|
441
446
|
interface RefundLineItem {
|
|
442
447
|
taxes?: OrderTax[];
|
|
443
448
|
discount?: RefundDiscount;
|
|
@@ -1332,12 +1337,14 @@ interface RefundedTipPayment {
|
|
|
1332
1337
|
tipTo: string;
|
|
1333
1338
|
tendered?: number;
|
|
1334
1339
|
}
|
|
1340
|
+
|
|
1335
1341
|
interface PaymentMethod {
|
|
1336
1342
|
transactionId: string;
|
|
1337
1343
|
paymentType: string;
|
|
1338
1344
|
amount: number;
|
|
1339
1345
|
timestamp: string;
|
|
1340
1346
|
processor: string;
|
|
1347
|
+
provider?: PaymentProcessor;
|
|
1341
1348
|
saleId?: string;
|
|
1342
1349
|
change?: number | null;
|
|
1343
1350
|
tip?: TipPayment | null;
|
|
@@ -402,8 +402,7 @@ declare enum InventorySpecificActionType {
|
|
|
402
402
|
SALE = "SALE",
|
|
403
403
|
TRANSFER = "TRANSFER",
|
|
404
404
|
BULK_RECOUNT = "BULK_RECOUNT",
|
|
405
|
-
APPLIED_FROM_WOO = "APPLIED_FROM_WOO"
|
|
406
|
-
PO_RECEIVED = "PO_RECEIVED"
|
|
405
|
+
APPLIED_FROM_WOO = "APPLIED_FROM_WOO"
|
|
407
406
|
}
|
|
408
407
|
declare enum UserTypes {
|
|
409
408
|
COMPANY_OWNER = "owner",
|
|
@@ -438,6 +437,12 @@ declare enum ProductStatus {
|
|
|
438
437
|
DRAFT = "draft"
|
|
439
438
|
}
|
|
440
439
|
|
|
440
|
+
declare enum PaymentProcessor {
|
|
441
|
+
STRIPE = "stripe",
|
|
442
|
+
ADYEN = "adyen",
|
|
443
|
+
EXTERNAL = "external"
|
|
444
|
+
}
|
|
445
|
+
|
|
441
446
|
interface RefundLineItem {
|
|
442
447
|
taxes?: OrderTax[];
|
|
443
448
|
discount?: RefundDiscount;
|
|
@@ -1332,12 +1337,14 @@ interface RefundedTipPayment {
|
|
|
1332
1337
|
tipTo: string;
|
|
1333
1338
|
tendered?: number;
|
|
1334
1339
|
}
|
|
1340
|
+
|
|
1335
1341
|
interface PaymentMethod {
|
|
1336
1342
|
transactionId: string;
|
|
1337
1343
|
paymentType: string;
|
|
1338
1344
|
amount: number;
|
|
1339
1345
|
timestamp: string;
|
|
1340
1346
|
processor: string;
|
|
1347
|
+
provider?: PaymentProcessor;
|
|
1341
1348
|
saleId?: string;
|
|
1342
1349
|
change?: number | null;
|
|
1343
1350
|
tip?: TipPayment | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@final-commerce/common",
|
|
3
|
-
"version": "2.0.11
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "Shared utilities, types, constants, and engineering governance configs for the Final Commerce platform.",
|
|
5
5
|
"homepage": "https://github.com/Final-Commerce/common#readme",
|
|
6
6
|
"bugs": {
|