@orderingstack/ordering-types 1.9.0 → 1.9.2
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/cjs/index.d.ts +15 -13
- package/dist/esm/index.d.ts +15 -13
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -217,10 +217,10 @@ export interface IOrder {
|
|
|
217
217
|
statusInfo?: string;
|
|
218
218
|
comments?: IOrderComment[];
|
|
219
219
|
claimCode?: string;
|
|
220
|
-
buckets
|
|
220
|
+
buckets?: IOrderInBucket[];
|
|
221
221
|
payments?: IOrderPayment[];
|
|
222
222
|
fiscal?: IOrderFiscal[];
|
|
223
|
-
tax
|
|
223
|
+
tax?: ITaxSummary[];
|
|
224
224
|
extra?: IOrderExtra;
|
|
225
225
|
traces?: {
|
|
226
226
|
[propName: string]: string;
|
|
@@ -322,8 +322,14 @@ export interface ITaxSummary {
|
|
|
322
322
|
tax: number;
|
|
323
323
|
brutto: number;
|
|
324
324
|
}
|
|
325
|
+
export declare enum ERbiOrderExtra {
|
|
326
|
+
POINTS_TOTAL = "x-rbi-loyalty-points",
|
|
327
|
+
POINTS_EARNED = "x-rbi-points-earned",
|
|
328
|
+
REWARDS = "x-rbi-rewards",
|
|
329
|
+
OFFERS = "x-rbi-offers"
|
|
330
|
+
}
|
|
325
331
|
/**
|
|
326
|
-
* OrderExtra
|
|
332
|
+
* OrderExtra interface
|
|
327
333
|
*
|
|
328
334
|
* @interface IOrderExtra
|
|
329
335
|
* @manual-verify {string} order needs manual verification
|
|
@@ -341,10 +347,7 @@ export interface ITaxSummary {
|
|
|
341
347
|
* @x-rbi-rewards {string} comma separated product IDs of preselected RBI REWARDS
|
|
342
348
|
* @x-rbi-offers {string} comma separated product IDs of preselected RBI OFFERS
|
|
343
349
|
*/
|
|
344
|
-
|
|
345
|
-
[key in ERbiOrderExtra]?: string | undefined;
|
|
346
|
-
} & IStringKeyRecord<string | undefined> & IOrderExtraSubInterface;
|
|
347
|
-
interface IOrderExtraSubInterface {
|
|
350
|
+
interface IOrderExtra {
|
|
348
351
|
"x-source"?: EOrderSource;
|
|
349
352
|
"x-source-type"?: "INTEGRATOR";
|
|
350
353
|
"manual-verify"?: string;
|
|
@@ -360,16 +363,15 @@ interface IOrderExtraSubInterface {
|
|
|
360
363
|
"x-pos-id"?: string;
|
|
361
364
|
"company-tax-id"?: string;
|
|
362
365
|
"x-kiosk-id"?: string;
|
|
366
|
+
[ERbiOrderExtra.OFFERS]?: string;
|
|
367
|
+
[ERbiOrderExtra.REWARDS]?: string;
|
|
368
|
+
[ERbiOrderExtra.POINTS_EARNED]?: string;
|
|
369
|
+
[ERbiOrderExtra.POINTS_TOTAL]?: string;
|
|
370
|
+
[key: string]: string | undefined;
|
|
363
371
|
}
|
|
364
372
|
interface IStringKeyRecord<T> {
|
|
365
373
|
[key: string]: T;
|
|
366
374
|
}
|
|
367
|
-
export declare enum ERbiOrderExtra {
|
|
368
|
-
POINTS_TOTAL = "x-rbi-loyalty-points",
|
|
369
|
-
POINTS_EARNED = "x-rbi-points-earned",
|
|
370
|
-
REWARDS = "x-rbi-rewards",
|
|
371
|
-
OFFERS = "x-rbi-offers"
|
|
372
|
-
}
|
|
373
375
|
export interface IOrderLog {
|
|
374
376
|
timestamp?: string;
|
|
375
377
|
user?: string;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -217,10 +217,10 @@ export interface IOrder {
|
|
|
217
217
|
statusInfo?: string;
|
|
218
218
|
comments?: IOrderComment[];
|
|
219
219
|
claimCode?: string;
|
|
220
|
-
buckets
|
|
220
|
+
buckets?: IOrderInBucket[];
|
|
221
221
|
payments?: IOrderPayment[];
|
|
222
222
|
fiscal?: IOrderFiscal[];
|
|
223
|
-
tax
|
|
223
|
+
tax?: ITaxSummary[];
|
|
224
224
|
extra?: IOrderExtra;
|
|
225
225
|
traces?: {
|
|
226
226
|
[propName: string]: string;
|
|
@@ -322,8 +322,14 @@ export interface ITaxSummary {
|
|
|
322
322
|
tax: number;
|
|
323
323
|
brutto: number;
|
|
324
324
|
}
|
|
325
|
+
export declare enum ERbiOrderExtra {
|
|
326
|
+
POINTS_TOTAL = "x-rbi-loyalty-points",
|
|
327
|
+
POINTS_EARNED = "x-rbi-points-earned",
|
|
328
|
+
REWARDS = "x-rbi-rewards",
|
|
329
|
+
OFFERS = "x-rbi-offers"
|
|
330
|
+
}
|
|
325
331
|
/**
|
|
326
|
-
* OrderExtra
|
|
332
|
+
* OrderExtra interface
|
|
327
333
|
*
|
|
328
334
|
* @interface IOrderExtra
|
|
329
335
|
* @manual-verify {string} order needs manual verification
|
|
@@ -341,10 +347,7 @@ export interface ITaxSummary {
|
|
|
341
347
|
* @x-rbi-rewards {string} comma separated product IDs of preselected RBI REWARDS
|
|
342
348
|
* @x-rbi-offers {string} comma separated product IDs of preselected RBI OFFERS
|
|
343
349
|
*/
|
|
344
|
-
|
|
345
|
-
[key in ERbiOrderExtra]?: string | undefined;
|
|
346
|
-
} & IStringKeyRecord<string | undefined> & IOrderExtraSubInterface;
|
|
347
|
-
interface IOrderExtraSubInterface {
|
|
350
|
+
interface IOrderExtra {
|
|
348
351
|
"x-source"?: EOrderSource;
|
|
349
352
|
"x-source-type"?: "INTEGRATOR";
|
|
350
353
|
"manual-verify"?: string;
|
|
@@ -360,16 +363,15 @@ interface IOrderExtraSubInterface {
|
|
|
360
363
|
"x-pos-id"?: string;
|
|
361
364
|
"company-tax-id"?: string;
|
|
362
365
|
"x-kiosk-id"?: string;
|
|
366
|
+
[ERbiOrderExtra.OFFERS]?: string;
|
|
367
|
+
[ERbiOrderExtra.REWARDS]?: string;
|
|
368
|
+
[ERbiOrderExtra.POINTS_EARNED]?: string;
|
|
369
|
+
[ERbiOrderExtra.POINTS_TOTAL]?: string;
|
|
370
|
+
[key: string]: string | undefined;
|
|
363
371
|
}
|
|
364
372
|
interface IStringKeyRecord<T> {
|
|
365
373
|
[key: string]: T;
|
|
366
374
|
}
|
|
367
|
-
export declare enum ERbiOrderExtra {
|
|
368
|
-
POINTS_TOTAL = "x-rbi-loyalty-points",
|
|
369
|
-
POINTS_EARNED = "x-rbi-points-earned",
|
|
370
|
-
REWARDS = "x-rbi-rewards",
|
|
371
|
-
OFFERS = "x-rbi-offers"
|
|
372
|
-
}
|
|
373
375
|
export interface IOrderLog {
|
|
374
376
|
timestamp?: string;
|
|
375
377
|
user?: string;
|