@compassdigital/sdk.typescript 3.76.0 → 3.77.1
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 +141 -118
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +139 -116
- package/lib/index.js.map +1 -1
- package/lib/interface/ai.d.ts +50 -0
- package/lib/interface/ai.d.ts.map +1 -0
- package/lib/interface/ai.js +5 -0
- package/lib/interface/ai.js.map +1 -0
- package/lib/interface/datalake.d.ts +3 -3
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/frictionless.d.ts +97 -0
- package/lib/interface/frictionless.d.ts.map +1 -0
- package/lib/interface/frictionless.js +5 -0
- package/lib/interface/frictionless.js.map +1 -0
- package/lib/interface/location.d.ts +29 -86
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +228 -100
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +30 -0
- package/lib/interface/payment.d.ts.map +1 -1
- package/manifest.json +9 -1
- package/package.json +2 -2
- package/sonar-project.properties +3 -1
- package/src/index.ts +367 -311
- package/src/interface/ai.ts +72 -0
- package/src/interface/datalake.ts +5 -3
- package/src/interface/frictionless.ts +155 -0
- package/src/interface/location.ts +55 -155
- package/src/interface/menu.ts +261 -129
- package/src/interface/payment.ts +31 -0
package/src/interface/payment.ts
CHANGED
|
@@ -7,8 +7,18 @@ export interface Transaction {
|
|
|
7
7
|
success?: boolean;
|
|
8
8
|
// the total amount available for refund on the transaction - the transaction remainder amount
|
|
9
9
|
amount?: string;
|
|
10
|
+
requestDateTime?: string;
|
|
10
11
|
// cdl encoded transaction id
|
|
11
12
|
id?: string;
|
|
13
|
+
reasonCode?: number;
|
|
14
|
+
decision?: string;
|
|
15
|
+
status?: string;
|
|
16
|
+
creditCard?: {
|
|
17
|
+
cardType?: string;
|
|
18
|
+
last4?: string;
|
|
19
|
+
};
|
|
20
|
+
digital_wallet_pay?: DigitalWalletPay;
|
|
21
|
+
requestID?: string;
|
|
12
22
|
[index: string]: any;
|
|
13
23
|
}
|
|
14
24
|
|
|
@@ -130,6 +140,7 @@ export interface Options {
|
|
|
130
140
|
payment_type?: string;
|
|
131
141
|
// ID('payment', '<provider>', 'tender', <timestamp via Data.now()>
|
|
132
142
|
tender?: string;
|
|
143
|
+
digital_wallet_pay?: DigitalWalletPay;
|
|
133
144
|
}
|
|
134
145
|
|
|
135
146
|
export interface Success {
|
|
@@ -154,6 +165,11 @@ export interface CashlessTender {
|
|
|
154
165
|
|
|
155
166
|
export type BadgePayTender = CashlessTender;
|
|
156
167
|
|
|
168
|
+
export interface DigitalWalletPay {
|
|
169
|
+
wallet_type?: string;
|
|
170
|
+
total?: number;
|
|
171
|
+
}
|
|
172
|
+
|
|
157
173
|
// POST /payment/{id}/transaction
|
|
158
174
|
|
|
159
175
|
export interface PostPaymentTransactionPath {
|
|
@@ -169,6 +185,21 @@ export interface PostPaymentTransactionBody {
|
|
|
169
185
|
options?: Options;
|
|
170
186
|
// The braintree merchant account id to use
|
|
171
187
|
merchant_account_id?: string;
|
|
188
|
+
digital_wallet_token?: string;
|
|
189
|
+
account_number?: string;
|
|
190
|
+
cv_number?: string;
|
|
191
|
+
expiration_month?: string;
|
|
192
|
+
expiration_year?: string;
|
|
193
|
+
cart_items?: {
|
|
194
|
+
id?: string;
|
|
195
|
+
label?: {
|
|
196
|
+
en?: string;
|
|
197
|
+
};
|
|
198
|
+
price?: {
|
|
199
|
+
amount?: number;
|
|
200
|
+
};
|
|
201
|
+
quantity?: number;
|
|
202
|
+
}[];
|
|
172
203
|
}
|
|
173
204
|
|
|
174
205
|
export type PostPaymentTransactionResponse = Transaction;
|