@final-commerce/common 2.0.11-beta.2 → 2.0.12
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 +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -1
- package/dist/pos-types/index.d.mts +8 -0
- package/dist/pos-types/index.d.ts +8 -0
- package/package.json +1 -1
|
@@ -438,6 +438,12 @@ declare enum ProductStatus {
|
|
|
438
438
|
DRAFT = "draft"
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
+
declare enum PaymentProcessor {
|
|
442
|
+
STRIPE = "stripe",
|
|
443
|
+
ADYEN = "adyen",
|
|
444
|
+
EXTERNAL = "external"
|
|
445
|
+
}
|
|
446
|
+
|
|
441
447
|
interface RefundLineItem {
|
|
442
448
|
taxes?: OrderTax[];
|
|
443
449
|
discount?: RefundDiscount;
|
|
@@ -1332,12 +1338,14 @@ interface RefundedTipPayment {
|
|
|
1332
1338
|
tipTo: string;
|
|
1333
1339
|
tendered?: number;
|
|
1334
1340
|
}
|
|
1341
|
+
|
|
1335
1342
|
interface PaymentMethod {
|
|
1336
1343
|
transactionId: string;
|
|
1337
1344
|
paymentType: string;
|
|
1338
1345
|
amount: number;
|
|
1339
1346
|
timestamp: string;
|
|
1340
1347
|
processor: string;
|
|
1348
|
+
provider?: PaymentProcessor;
|
|
1341
1349
|
saleId?: string;
|
|
1342
1350
|
change?: number | null;
|
|
1343
1351
|
tip?: TipPayment | null;
|
|
@@ -438,6 +438,12 @@ declare enum ProductStatus {
|
|
|
438
438
|
DRAFT = "draft"
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
+
declare enum PaymentProcessor {
|
|
442
|
+
STRIPE = "stripe",
|
|
443
|
+
ADYEN = "adyen",
|
|
444
|
+
EXTERNAL = "external"
|
|
445
|
+
}
|
|
446
|
+
|
|
441
447
|
interface RefundLineItem {
|
|
442
448
|
taxes?: OrderTax[];
|
|
443
449
|
discount?: RefundDiscount;
|
|
@@ -1332,12 +1338,14 @@ interface RefundedTipPayment {
|
|
|
1332
1338
|
tipTo: string;
|
|
1333
1339
|
tendered?: number;
|
|
1334
1340
|
}
|
|
1341
|
+
|
|
1335
1342
|
interface PaymentMethod {
|
|
1336
1343
|
transactionId: string;
|
|
1337
1344
|
paymentType: string;
|
|
1338
1345
|
amount: number;
|
|
1339
1346
|
timestamp: string;
|
|
1340
1347
|
processor: string;
|
|
1348
|
+
provider?: PaymentProcessor;
|
|
1341
1349
|
saleId?: string;
|
|
1342
1350
|
change?: number | null;
|
|
1343
1351
|
tip?: TipPayment | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@final-commerce/common",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
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": {
|