@compassdigital/sdk.typescript 4.67.0 → 4.69.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 +58 -57
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +503 -501
- package/lib/index.js.map +1 -1
- package/lib/interface/ai.d.ts +1 -1
- package/lib/interface/ai.d.ts.map +1 -1
- package/lib/interface/announcement.d.ts +1 -1
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/auth.d.ts +3 -3
- package/lib/interface/auth.d.ts.map +1 -1
- package/lib/interface/calendar.d.ts +2 -2
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/centricos.d.ts +11 -11
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/compassconnect.d.ts +1 -1
- package/lib/interface/compassconnect.d.ts.map +1 -1
- package/lib/interface/config.d.ts +1 -1
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/datalake.d.ts +1 -1
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/email.d.ts +1 -1
- package/lib/interface/email.d.ts.map +1 -1
- package/lib/interface/file.d.ts +2 -2
- package/lib/interface/file.d.ts.map +1 -1
- package/lib/interface/frictionless.d.ts +9 -9
- package/lib/interface/frictionless.d.ts.map +1 -1
- package/lib/interface/kds.d.ts +1 -1
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/interface/location.d.ts +6 -4
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +2 -1
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +149 -109
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/notification.d.ts +3 -3
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/order.d.ts +7 -7
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +10 -10
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +3 -3
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +8 -8
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/report.d.ts +10 -10
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/search.d.ts +8 -8
- package/lib/interface/search.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +7 -7
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/task.d.ts +8 -8
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/tax.d.ts +2 -2
- package/lib/interface/tax.d.ts.map +1 -1
- package/lib/interface/user.d.ts +16 -16
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/vendor.d.ts +6 -6
- package/lib/interface/vendor.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +10395 -10394
- package/src/interface/ai.ts +22 -22
- package/src/interface/announcement.ts +60 -60
- package/src/interface/auth.ts +68 -68
- package/src/interface/calendar.ts +94 -94
- package/src/interface/centricos.ts +145 -145
- package/src/interface/compassconnect.ts +59 -59
- package/src/interface/config.ts +166 -166
- package/src/interface/datalake.ts +13 -13
- package/src/interface/email.ts +13 -13
- package/src/interface/file.ts +18 -18
- package/src/interface/frictionless.ts +177 -177
- package/src/interface/kds.ts +49 -49
- package/src/interface/location.ts +771 -769
- package/src/interface/mealplan.ts +155 -154
- package/src/interface/menu.ts +4079 -4018
- package/src/interface/notification.ts +51 -51
- package/src/interface/order.ts +464 -464
- package/src/interface/partner.ts +823 -823
- package/src/interface/payment.ts +278 -278
- package/src/interface/promo.ts +373 -373
- package/src/interface/report.ts +348 -348
- package/src/interface/search.ts +135 -135
- package/src/interface/shoppingcart.ts +429 -429
- package/src/interface/task.ts +212 -212
- package/src/interface/tax.ts +69 -69
- package/src/interface/user.ts +410 -410
- package/src/interface/vendor.ts +215 -215
package/src/interface/payment.ts
CHANGED
|
@@ -1,363 +1,363 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
3
3
|
|
|
4
|
-
import { RequestQuery, BaseRequest } from
|
|
4
|
+
import { RequestQuery, BaseRequest } from './util';
|
|
5
5
|
|
|
6
6
|
export interface Transaction {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
success?: boolean;
|
|
8
|
+
// the total amount available for refund on the transaction - the transaction remainder amount
|
|
9
|
+
amount?: string;
|
|
10
|
+
requestDateTime?: string;
|
|
11
|
+
// cdl encoded transaction id
|
|
12
|
+
id?: string;
|
|
13
|
+
reasonCode?: number;
|
|
14
|
+
decision?: string;
|
|
15
|
+
status?: string;
|
|
16
|
+
creditCard?: CreditCard;
|
|
17
|
+
digital_wallet_pay?: DigitalWalletPay;
|
|
18
|
+
requestID?: string;
|
|
19
|
+
[index: string]: any;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export interface Refund {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
success?: boolean;
|
|
24
|
+
// attempted amount for refund in current request
|
|
25
|
+
amount?: number;
|
|
26
|
+
// amount refunded in current request
|
|
27
|
+
refund_amount?: number;
|
|
28
|
+
// remaining amount available for refund
|
|
29
|
+
transaction_remainder_amount?: number;
|
|
30
|
+
decision?: string;
|
|
31
|
+
[index: string]: any;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export interface ClientToken {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
// Client token (BrainTree)
|
|
36
|
+
clienttoken?: string;
|
|
37
|
+
// Client token (FreedomPay)
|
|
38
|
+
access_token?: string;
|
|
39
|
+
// Bearer token (FreedomPay)
|
|
40
|
+
token_type?: string;
|
|
41
|
+
// Token expiry (FreedomPay)
|
|
42
|
+
expires_in?: number;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
export interface PaymentMethod {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
46
|
+
type?: string;
|
|
47
|
+
card_type?: string;
|
|
48
|
+
expiration?: {
|
|
49
|
+
month?: number;
|
|
50
|
+
year?: number;
|
|
51
|
+
expired?: boolean;
|
|
52
|
+
};
|
|
53
|
+
last4?: string;
|
|
54
|
+
// payment
|
|
55
|
+
token?: string;
|
|
56
|
+
date?: {
|
|
57
|
+
created?: string;
|
|
58
|
+
modified?: string;
|
|
59
|
+
last_used?: number;
|
|
60
|
+
};
|
|
61
|
+
image?: string;
|
|
62
|
+
cardholder_name?: string;
|
|
63
|
+
postal_code?: string;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
export interface ConsumerSessionToken {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
access_token?: string;
|
|
68
|
+
token_type?: string;
|
|
69
|
+
expires_in?: number;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
export interface ConsumerId {
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
consumerId?: string;
|
|
74
|
+
[index: string]: any;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
export interface TokenInformation {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
78
|
+
token?: string;
|
|
79
|
+
accountNumberMasked?: string;
|
|
80
|
+
cardExpirationMonth?: string;
|
|
81
|
+
cardExpirationYear?: string;
|
|
82
|
+
brand?: string;
|
|
83
|
+
posCardType?: string;
|
|
84
|
+
cardType?: string;
|
|
85
|
+
tokenExpiration?: string;
|
|
86
|
+
posData?: string;
|
|
87
|
+
newToken?: string;
|
|
88
|
+
sessionKey?: string;
|
|
89
|
+
[index: string]: any;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
export interface UpdateTokenInformation {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
93
|
+
nickname?: string;
|
|
94
|
+
isPreferred?: boolean;
|
|
95
|
+
expiryYear?: string;
|
|
96
|
+
expiryMonth?: string;
|
|
97
|
+
nameOnCard?: string;
|
|
98
|
+
token?: string;
|
|
99
|
+
tokenExpirationDate?: string;
|
|
100
|
+
billingAddress?: {
|
|
101
|
+
street1?: string;
|
|
102
|
+
street2?: string;
|
|
103
|
+
city?: string;
|
|
104
|
+
state?: string;
|
|
105
|
+
postalCode?: string;
|
|
106
|
+
country?: string;
|
|
107
|
+
};
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
export interface PaymentCard {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
111
|
+
maskedCardNumber?: string;
|
|
112
|
+
cardType?: string;
|
|
113
|
+
nickname?: string;
|
|
114
|
+
isPreferred?: boolean;
|
|
115
|
+
expiryYear?: number;
|
|
116
|
+
expiryMonth?: number;
|
|
117
|
+
nameOnCard?: string;
|
|
118
|
+
token?: string;
|
|
119
|
+
tokenExpirationDate?: string;
|
|
120
|
+
billingAddress?: {
|
|
121
|
+
postalCode?: string;
|
|
122
|
+
};
|
|
123
|
+
[index: string]: any;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
export interface Options {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
127
|
+
submitForSettlement?: boolean;
|
|
128
|
+
exact_gateway_id?: string;
|
|
129
|
+
exact_gateway_password?: string;
|
|
130
|
+
invoice_number?: string;
|
|
131
|
+
// brand
|
|
132
|
+
brand?: string;
|
|
133
|
+
// location
|
|
134
|
+
location?: string;
|
|
135
|
+
// pickup_id
|
|
136
|
+
pickup_id?: string;
|
|
137
|
+
// user_id
|
|
138
|
+
user_id?: string;
|
|
139
|
+
payment_type?: 'credit_card' | 'badge_pay' | 'stipend' | 'voucher' | 'coupon_voucher';
|
|
140
|
+
// ID('payment', '<provider>', 'tender', <timestamp via Data.now()>
|
|
141
|
+
tender?: string;
|
|
142
|
+
digital_wallet_pay?: DigitalWalletPay;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
export interface Success {
|
|
146
|
-
|
|
146
|
+
success?: boolean;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
export interface Error {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
150
|
+
error?: string;
|
|
151
|
+
code?: number;
|
|
152
|
+
data?: Record<string, any>;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
export interface CashlessTender {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
156
|
+
balance?: number;
|
|
157
|
+
// ID('payment', '<provider>', 'tender', <timestamp via Data.now()>
|
|
158
|
+
id?: string;
|
|
159
|
+
// name associated with badgepay tender, stored in site public config
|
|
160
|
+
name?: string;
|
|
161
|
+
// account type associated with badgepay tender, stored in site public config
|
|
162
|
+
type?: 'badge_pay' | 'stipend' | 'voucher' | 'coupon_voucher';
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
export type BadgePayTender = CashlessTender;
|
|
166
166
|
|
|
167
167
|
export interface DigitalWalletPay {
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
wallet_type?: string;
|
|
169
|
+
total?: number;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
export interface CreditCard {
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
cardType?: string;
|
|
174
|
+
last4?: string;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
export interface PaymentCards {
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
data?: PaymentCard[];
|
|
179
|
+
recordsTotal?: number;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
export interface HpcIframe {
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
iframe?: string;
|
|
184
|
+
sessionKey?: string;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
export interface ApplePayMerchantSession {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
188
|
+
merchant_session?: {
|
|
189
|
+
epochTimestamp?: number;
|
|
190
|
+
expiresAt?: number;
|
|
191
|
+
nonce?: string;
|
|
192
|
+
merchantIdentifier?: string;
|
|
193
|
+
merchantSessionIdentifier?: string;
|
|
194
|
+
operationalAnalyticsIdentifier?: string;
|
|
195
|
+
domainName?: string;
|
|
196
|
+
displayName?: string;
|
|
197
|
+
signature?: string;
|
|
198
|
+
retries?: number;
|
|
199
|
+
pspId?: string;
|
|
200
|
+
[index: string]: any;
|
|
201
|
+
};
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
// POST /payment/{id}/transaction
|
|
205
205
|
|
|
206
206
|
export interface PostPaymentTransactionPath {
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
// Payment ID
|
|
208
|
+
id: string;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
export interface PostPaymentTransactionBody {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
212
|
+
// The payment method token to use for the payment
|
|
213
|
+
payment_method_token?: string;
|
|
214
|
+
// The amount to charge to the payment method
|
|
215
|
+
amount: string;
|
|
216
|
+
options?: Options;
|
|
217
|
+
// The braintree merchant account id to use
|
|
218
|
+
merchant_account_id?: string;
|
|
219
|
+
digital_wallet_token?: string;
|
|
220
|
+
account_number?: string;
|
|
221
|
+
cv_number?: string;
|
|
222
|
+
expiration_month?: number;
|
|
223
|
+
expiration_year?: number;
|
|
224
|
+
cart_items?: {
|
|
225
|
+
id?: string;
|
|
226
|
+
label?: {
|
|
227
|
+
en?: string;
|
|
228
|
+
};
|
|
229
|
+
price?: {
|
|
230
|
+
amount?: number;
|
|
231
|
+
};
|
|
232
|
+
quantity?: number;
|
|
233
|
+
}[];
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
export type PostPaymentTransactionResponse = Transaction;
|
|
237
237
|
|
|
238
238
|
export interface PostPaymentTransactionRequest extends BaseRequest, PostPaymentTransactionPath {
|
|
239
|
-
|
|
239
|
+
body: PostPaymentTransactionBody;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
// POST /payment/{id}/transaction/{transaction_id}/refund
|
|
243
243
|
|
|
244
244
|
export interface PostPaymentTransactionRefundPath {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
245
|
+
// Payment ID
|
|
246
|
+
id: string;
|
|
247
|
+
// Transaction ID
|
|
248
|
+
transaction_id: string;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
export interface PostPaymentTransactionRefundBody {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
252
|
+
// The amount to refund for the transaction
|
|
253
|
+
amount: string;
|
|
254
|
+
transaction: Transaction;
|
|
255
|
+
options: Options;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
export type PostPaymentTransactionRefundResponse = Refund;
|
|
259
259
|
|
|
260
260
|
export interface PostPaymentTransactionRefundRequest
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
261
|
+
extends BaseRequest,
|
|
262
|
+
PostPaymentTransactionRefundPath {
|
|
263
|
+
body: PostPaymentTransactionRefundBody;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
// GET /payment/{id}/clienttoken
|
|
267
267
|
|
|
268
268
|
export interface GetPaymentClienttokenPath {
|
|
269
|
-
|
|
270
|
-
|
|
269
|
+
// Payment ID
|
|
270
|
+
id: string;
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
export interface GetPaymentClienttokenQuery {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
274
|
+
// hCaptcha response key
|
|
275
|
+
captchaResponseKey: string;
|
|
276
|
+
// Graphql query string
|
|
277
|
+
_query?: string;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
export type GetPaymentClienttokenResponse = ClientToken;
|
|
281
281
|
|
|
282
282
|
export interface GetPaymentClienttokenRequest
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
283
|
+
extends BaseRequest,
|
|
284
|
+
RequestQuery<GetPaymentClienttokenQuery>,
|
|
285
|
+
GetPaymentClienttokenPath {}
|
|
286
286
|
|
|
287
287
|
// POST /payment/{id}/paymenttoken
|
|
288
288
|
|
|
289
289
|
export interface PostPaymentPaymenttokenPath {
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
// Payment ID
|
|
291
|
+
id: string;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
export interface PostPaymentPaymenttokenBody {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
295
|
+
// The credit card number (Exact)
|
|
296
|
+
cc_number: string;
|
|
297
|
+
// The credit card expiry (Exact)
|
|
298
|
+
cc_expiry: string;
|
|
299
|
+
// The credit card CVV (Exact)
|
|
300
|
+
cc_verification_str2: string;
|
|
301
|
+
// The credit card holder's name (Exact)
|
|
302
|
+
cardholder_name: string;
|
|
303
|
+
// A reference identifier for the transaction
|
|
304
|
+
reference_no?: string;
|
|
305
|
+
options?: Options;
|
|
306
|
+
// postal or zip code
|
|
307
|
+
postal_code?: string;
|
|
308
|
+
// flag to determine if the card should be saved or used once
|
|
309
|
+
use_card_once?: boolean;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
export type PostPaymentPaymenttokenResponse = PaymentMethod;
|
|
313
313
|
|
|
314
314
|
export interface PostPaymentPaymenttokenRequest extends BaseRequest, PostPaymentPaymenttokenPath {
|
|
315
|
-
|
|
315
|
+
body: PostPaymentPaymenttokenBody;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
// POST /payment/consumer
|
|
319
319
|
|
|
320
320
|
export interface PostPaymentConsumerBody {
|
|
321
|
-
|
|
322
|
-
|
|
321
|
+
// The user id
|
|
322
|
+
user_id: string;
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
export type PostPaymentConsumerResponse = ConsumerId;
|
|
326
326
|
|
|
327
327
|
export interface PostPaymentConsumerRequest extends BaseRequest {
|
|
328
|
-
|
|
328
|
+
body: PostPaymentConsumerBody;
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
// POST /payment/method
|
|
332
332
|
|
|
333
333
|
export interface PostPaymentMethodBody {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
334
|
+
// The user id
|
|
335
|
+
user_id: string;
|
|
336
|
+
// The payment nonce provided for the payment method
|
|
337
|
+
payment_method_nonce: string;
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
export interface PostPaymentMethodResponse {
|
|
341
|
-
|
|
341
|
+
payment_method?: PaymentMethod;
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
export interface PostPaymentMethodRequest extends BaseRequest {
|
|
345
|
-
|
|
345
|
+
body: PostPaymentMethodBody;
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
// GET /payment/token
|
|
349
349
|
|
|
350
350
|
export interface GetPaymentTokenQuery {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
351
|
+
// Payment Key
|
|
352
|
+
paymentKey: string;
|
|
353
|
+
// Session key
|
|
354
|
+
sessionKey: string;
|
|
355
|
+
// CDL Site Id
|
|
356
|
+
siteId: string;
|
|
357
|
+
// name on card
|
|
358
|
+
nameOnCard: string;
|
|
359
|
+
// Graphql query string
|
|
360
|
+
_query?: string;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
export type GetPaymentTokenResponse = TokenInformation;
|
|
@@ -367,72 +367,72 @@ export interface GetPaymentTokenRequest extends BaseRequest, RequestQuery<GetPay
|
|
|
367
367
|
// POST /payment/token
|
|
368
368
|
|
|
369
369
|
export interface PostPaymentTokenBody {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
370
|
+
tokenInfo: TokenInformation;
|
|
371
|
+
// Name on credit card
|
|
372
|
+
nameOnCard: string;
|
|
373
|
+
// CDL Site Id
|
|
374
|
+
siteId: string;
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
export type PostPaymentTokenResponse = PaymentCard;
|
|
378
378
|
|
|
379
379
|
export interface PostPaymentTokenRequest extends BaseRequest {
|
|
380
|
-
|
|
380
|
+
body: PostPaymentTokenBody;
|
|
381
381
|
}
|
|
382
382
|
|
|
383
383
|
// PUT /payment/token
|
|
384
384
|
|
|
385
385
|
export interface PutPaymentTokenBody {
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
386
|
+
updatedTokenInfo: UpdateTokenInformation;
|
|
387
|
+
// CDL Site Id
|
|
388
|
+
siteId: string;
|
|
389
389
|
}
|
|
390
390
|
|
|
391
391
|
export type PutPaymentTokenResponse = PaymentCard;
|
|
392
392
|
|
|
393
393
|
export interface PutPaymentTokenRequest extends BaseRequest {
|
|
394
|
-
|
|
394
|
+
body: PutPaymentTokenBody;
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
// DELETE /payment/token
|
|
398
398
|
|
|
399
399
|
export interface DeletePaymentTokenBody {
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
400
|
+
// Token string to be deleted
|
|
401
|
+
token: string;
|
|
402
|
+
// CDL Site Id
|
|
403
|
+
siteId: string;
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
export type DeletePaymentTokenResponse = Success;
|
|
407
407
|
|
|
408
408
|
export interface DeletePaymentTokenRequest extends BaseRequest {
|
|
409
|
-
|
|
409
|
+
body: DeletePaymentTokenBody;
|
|
410
410
|
}
|
|
411
411
|
|
|
412
412
|
// GET /payment/methods
|
|
413
413
|
|
|
414
414
|
export interface GetPaymentMethodsQuery {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
415
|
+
// CDL Site Id
|
|
416
|
+
siteId: string;
|
|
417
|
+
// Graphql query string
|
|
418
|
+
_query?: string;
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
export type GetPaymentMethodsResponse = PaymentCards;
|
|
422
422
|
|
|
423
423
|
export interface GetPaymentMethodsRequest
|
|
424
|
-
|
|
425
|
-
|
|
424
|
+
extends BaseRequest,
|
|
425
|
+
RequestQuery<GetPaymentMethodsQuery> {}
|
|
426
426
|
|
|
427
427
|
// GET /payment/hpc
|
|
428
428
|
|
|
429
429
|
export interface GetPaymentHpcQuery {
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
430
|
+
// CDL Site Id
|
|
431
|
+
siteId: string;
|
|
432
|
+
// hCaptcha response key
|
|
433
|
+
captchaResponseKey: string;
|
|
434
|
+
// Graphql query string
|
|
435
|
+
_query?: string;
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
export type GetPaymentHpcResponse = HpcIframe;
|
|
@@ -442,86 +442,86 @@ export interface GetPaymentHpcRequest extends BaseRequest, RequestQuery<GetPayme
|
|
|
442
442
|
// GET /payment/{id}/cashless
|
|
443
443
|
|
|
444
444
|
export interface GetPaymentCashlessPath {
|
|
445
|
-
|
|
446
|
-
|
|
445
|
+
// Payment ID
|
|
446
|
+
id: string;
|
|
447
447
|
}
|
|
448
448
|
|
|
449
449
|
export interface GetPaymentCashlessQuery {
|
|
450
|
-
|
|
451
|
-
|
|
450
|
+
// Graphql query string
|
|
451
|
+
_query?: string;
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
export interface GetPaymentCashlessResponse {
|
|
455
|
-
|
|
455
|
+
tenders?: CashlessTender[];
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
export interface GetPaymentCashlessRequest
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
459
|
+
extends BaseRequest,
|
|
460
|
+
RequestQuery<GetPaymentCashlessQuery>,
|
|
461
|
+
GetPaymentCashlessPath {}
|
|
462
462
|
|
|
463
463
|
// POST /payment/{id}/cashless
|
|
464
464
|
|
|
465
465
|
export interface PostPaymentCashlessPath {
|
|
466
|
-
|
|
467
|
-
|
|
466
|
+
// Payment ID
|
|
467
|
+
id: string;
|
|
468
468
|
}
|
|
469
469
|
|
|
470
470
|
export interface PostPaymentCashlessBody {
|
|
471
|
-
|
|
472
|
-
|
|
471
|
+
// The reference ID returned from FP account confirmation
|
|
472
|
+
token: string;
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
export interface PostPaymentCashlessResponse {
|
|
476
|
-
|
|
476
|
+
tenders?: CashlessTender[];
|
|
477
477
|
}
|
|
478
478
|
|
|
479
479
|
export interface PostPaymentCashlessRequest extends BaseRequest, PostPaymentCashlessPath {
|
|
480
|
-
|
|
480
|
+
body: PostPaymentCashlessBody;
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
// DELETE /payment/{id}/cashless
|
|
484
484
|
|
|
485
485
|
export interface DeletePaymentCashlessPath {
|
|
486
|
-
|
|
487
|
-
|
|
486
|
+
// Payment ID
|
|
487
|
+
id: string;
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
export interface DeletePaymentCashlessBody {
|
|
491
|
-
|
|
492
|
-
|
|
491
|
+
// An optional array of tenders to delete
|
|
492
|
+
tenders?: string[];
|
|
493
493
|
}
|
|
494
494
|
|
|
495
495
|
export interface DeletePaymentCashlessResponse {
|
|
496
|
-
|
|
496
|
+
tenders?: CashlessTender[];
|
|
497
497
|
}
|
|
498
498
|
|
|
499
499
|
export interface DeletePaymentCashlessRequest extends BaseRequest, DeletePaymentCashlessPath {
|
|
500
|
-
|
|
500
|
+
body: DeletePaymentCashlessBody;
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
// POST /payment/configvalidate
|
|
504
504
|
|
|
505
505
|
export interface PostPaymentConfigvalidateBody {
|
|
506
|
-
|
|
507
|
-
|
|
506
|
+
store_id: string;
|
|
507
|
+
terminal_id: string;
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
export type PostPaymentConfigvalidateResponse = Success;
|
|
511
511
|
|
|
512
512
|
export interface PostPaymentConfigvalidateRequest extends BaseRequest {
|
|
513
|
-
|
|
513
|
+
body: PostPaymentConfigvalidateBody;
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
// POST /payment/validatemerchant
|
|
517
517
|
|
|
518
518
|
export interface PostPaymentValidatemerchantBody {
|
|
519
|
-
|
|
520
|
-
|
|
519
|
+
validation_url: string;
|
|
520
|
+
display_name: string;
|
|
521
521
|
}
|
|
522
522
|
|
|
523
523
|
export type PostPaymentValidatemerchantResponse = ApplePayMerchantSession;
|
|
524
524
|
|
|
525
525
|
export interface PostPaymentValidatemerchantRequest extends BaseRequest {
|
|
526
|
-
|
|
526
|
+
body: PostPaymentValidatemerchantBody;
|
|
527
527
|
}
|