@compassdigital/sdk.typescript 4.102.0 → 4.104.0
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/lib/index.d.ts +139 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +166 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/centricos.d.ts +95 -0
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +2 -2
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/discount.d.ts +181 -0
- package/lib/interface/discount.d.ts.map +1 -0
- package/lib/interface/discount.js +5 -0
- package/lib/interface/discount.js.map +1 -0
- package/lib/interface/frictionless.d.ts +3 -11
- package/lib/interface/frictionless.d.ts.map +1 -1
- package/lib/interface/location.d.ts +1 -0
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +333 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/tax.d.ts +2 -1
- package/lib/interface/tax.d.ts.map +1 -1
- package/manifest.json +5 -1
- package/package.json +1 -1
- package/src/index.ts +377 -0
- package/src/interface/centricos.ts +122 -0
- package/src/interface/consumer.ts +2 -2
- package/src/interface/discount.ts +248 -0
- package/src/interface/frictionless.ts +3 -13
- package/src/interface/location.ts +1 -0
- package/src/interface/menu.ts +396 -0
- package/src/interface/tax.ts +3 -2
package/src/interface/tax.ts
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
import { RequestQuery, BaseRequest } from './util';
|
|
5
5
|
|
|
6
|
+
export type TransactionType = 'pickup' | 'delivery';
|
|
7
|
+
|
|
6
8
|
export interface TaxLocationData {
|
|
7
9
|
// unique location identifier
|
|
8
10
|
id: string;
|
|
@@ -43,8 +45,7 @@ export interface TaxRequestDTO {
|
|
|
43
45
|
id: string;
|
|
44
46
|
// the app to associate the transaction with
|
|
45
47
|
appName: string;
|
|
46
|
-
|
|
47
|
-
transactionType: 'pickup' | 'delivery';
|
|
48
|
+
transactionType: TransactionType;
|
|
48
49
|
// numeric value of service fee
|
|
49
50
|
serviceFee?: number;
|
|
50
51
|
// numeric value of delivery fee
|