@compassdigital/sdk.typescript 4.67.0 → 4.68.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.
Files changed (87) hide show
  1. package/lib/index.d.ts +58 -57
  2. package/lib/index.d.ts.map +1 -1
  3. package/lib/index.js +503 -501
  4. package/lib/index.js.map +1 -1
  5. package/lib/interface/ai.d.ts +1 -1
  6. package/lib/interface/ai.d.ts.map +1 -1
  7. package/lib/interface/announcement.d.ts +1 -1
  8. package/lib/interface/announcement.d.ts.map +1 -1
  9. package/lib/interface/auth.d.ts +3 -3
  10. package/lib/interface/auth.d.ts.map +1 -1
  11. package/lib/interface/calendar.d.ts +2 -2
  12. package/lib/interface/calendar.d.ts.map +1 -1
  13. package/lib/interface/centricos.d.ts +11 -11
  14. package/lib/interface/centricos.d.ts.map +1 -1
  15. package/lib/interface/compassconnect.d.ts +1 -1
  16. package/lib/interface/compassconnect.d.ts.map +1 -1
  17. package/lib/interface/config.d.ts +1 -1
  18. package/lib/interface/config.d.ts.map +1 -1
  19. package/lib/interface/datalake.d.ts +1 -1
  20. package/lib/interface/datalake.d.ts.map +1 -1
  21. package/lib/interface/email.d.ts +1 -1
  22. package/lib/interface/email.d.ts.map +1 -1
  23. package/lib/interface/file.d.ts +2 -2
  24. package/lib/interface/file.d.ts.map +1 -1
  25. package/lib/interface/frictionless.d.ts +9 -9
  26. package/lib/interface/frictionless.d.ts.map +1 -1
  27. package/lib/interface/kds.d.ts +1 -1
  28. package/lib/interface/kds.d.ts.map +1 -1
  29. package/lib/interface/location.d.ts +5 -3
  30. package/lib/interface/location.d.ts.map +1 -1
  31. package/lib/interface/mealplan.d.ts +2 -1
  32. package/lib/interface/mealplan.d.ts.map +1 -1
  33. package/lib/interface/menu.d.ts +149 -109
  34. package/lib/interface/menu.d.ts.map +1 -1
  35. package/lib/interface/notification.d.ts +3 -3
  36. package/lib/interface/notification.d.ts.map +1 -1
  37. package/lib/interface/order.d.ts +7 -7
  38. package/lib/interface/order.d.ts.map +1 -1
  39. package/lib/interface/partner.d.ts +10 -10
  40. package/lib/interface/partner.d.ts.map +1 -1
  41. package/lib/interface/payment.d.ts +3 -3
  42. package/lib/interface/payment.d.ts.map +1 -1
  43. package/lib/interface/promo.d.ts +8 -8
  44. package/lib/interface/promo.d.ts.map +1 -1
  45. package/lib/interface/report.d.ts +10 -10
  46. package/lib/interface/report.d.ts.map +1 -1
  47. package/lib/interface/search.d.ts +8 -8
  48. package/lib/interface/search.d.ts.map +1 -1
  49. package/lib/interface/shoppingcart.d.ts +7 -7
  50. package/lib/interface/shoppingcart.d.ts.map +1 -1
  51. package/lib/interface/task.d.ts +8 -8
  52. package/lib/interface/task.d.ts.map +1 -1
  53. package/lib/interface/tax.d.ts +2 -2
  54. package/lib/interface/tax.d.ts.map +1 -1
  55. package/lib/interface/user.d.ts +16 -16
  56. package/lib/interface/user.d.ts.map +1 -1
  57. package/lib/interface/vendor.d.ts +6 -6
  58. package/lib/interface/vendor.d.ts.map +1 -1
  59. package/package.json +1 -1
  60. package/src/index.ts +10395 -10394
  61. package/src/interface/ai.ts +22 -22
  62. package/src/interface/announcement.ts +60 -60
  63. package/src/interface/auth.ts +68 -68
  64. package/src/interface/calendar.ts +94 -94
  65. package/src/interface/centricos.ts +145 -145
  66. package/src/interface/compassconnect.ts +59 -59
  67. package/src/interface/config.ts +166 -166
  68. package/src/interface/datalake.ts +13 -13
  69. package/src/interface/email.ts +13 -13
  70. package/src/interface/file.ts +18 -18
  71. package/src/interface/frictionless.ts +177 -177
  72. package/src/interface/kds.ts +49 -49
  73. package/src/interface/location.ts +771 -769
  74. package/src/interface/mealplan.ts +155 -154
  75. package/src/interface/menu.ts +4079 -4018
  76. package/src/interface/notification.ts +51 -51
  77. package/src/interface/order.ts +464 -464
  78. package/src/interface/partner.ts +823 -823
  79. package/src/interface/payment.ts +278 -278
  80. package/src/interface/promo.ts +373 -373
  81. package/src/interface/report.ts +348 -348
  82. package/src/interface/search.ts +135 -135
  83. package/src/interface/shoppingcart.ts +429 -429
  84. package/src/interface/task.ts +212 -212
  85. package/src/interface/tax.ts +69 -69
  86. package/src/interface/user.ts +410 -410
  87. package/src/interface/vendor.ts +215 -215
@@ -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 "./util";
4
+ import { RequestQuery, BaseRequest } from './util';
5
5
 
6
6
  export interface Transaction {
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;
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
- 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;
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
- // 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;
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
- 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;
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
- access_token?: string;
68
- token_type?: string;
69
- expires_in?: number;
67
+ access_token?: string;
68
+ token_type?: string;
69
+ expires_in?: number;
70
70
  }
71
71
 
72
72
  export interface ConsumerId {
73
- consumerId?: string;
74
- [index: string]: any;
73
+ consumerId?: string;
74
+ [index: string]: any;
75
75
  }
76
76
 
77
77
  export interface TokenInformation {
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;
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
- 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
- };
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
- 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;
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
- 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;
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
- success?: boolean;
146
+ success?: boolean;
147
147
  }
148
148
 
149
149
  export interface Error {
150
- error?: string;
151
- code?: number;
152
- data?: Record<string, any>;
150
+ error?: string;
151
+ code?: number;
152
+ data?: Record<string, any>;
153
153
  }
154
154
 
155
155
  export interface CashlessTender {
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";
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
- wallet_type?: string;
169
- total?: number;
168
+ wallet_type?: string;
169
+ total?: number;
170
170
  }
171
171
 
172
172
  export interface CreditCard {
173
- cardType?: string;
174
- last4?: string;
173
+ cardType?: string;
174
+ last4?: string;
175
175
  }
176
176
 
177
177
  export interface PaymentCards {
178
- data?: PaymentCard[];
179
- recordsTotal?: number;
178
+ data?: PaymentCard[];
179
+ recordsTotal?: number;
180
180
  }
181
181
 
182
182
  export interface HpcIframe {
183
- iframe?: string;
184
- sessionKey?: string;
183
+ iframe?: string;
184
+ sessionKey?: string;
185
185
  }
186
186
 
187
187
  export interface ApplePayMerchantSession {
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
- };
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
- // Payment ID
208
- id: string;
207
+ // Payment ID
208
+ id: string;
209
209
  }
210
210
 
211
211
  export interface PostPaymentTransactionBody {
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
- }[];
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
- body: PostPaymentTransactionBody;
239
+ body: PostPaymentTransactionBody;
240
240
  }
241
241
 
242
242
  // POST /payment/{id}/transaction/{transaction_id}/refund
243
243
 
244
244
  export interface PostPaymentTransactionRefundPath {
245
- // Payment ID
246
- id: string;
247
- // Transaction ID
248
- transaction_id: string;
245
+ // Payment ID
246
+ id: string;
247
+ // Transaction ID
248
+ transaction_id: string;
249
249
  }
250
250
 
251
251
  export interface PostPaymentTransactionRefundBody {
252
- // The amount to refund for the transaction
253
- amount: string;
254
- transaction: Transaction;
255
- options: Options;
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
- extends BaseRequest,
262
- PostPaymentTransactionRefundPath {
263
- body: PostPaymentTransactionRefundBody;
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
- // Payment ID
270
- id: string;
269
+ // Payment ID
270
+ id: string;
271
271
  }
272
272
 
273
273
  export interface GetPaymentClienttokenQuery {
274
- // hCaptcha response key
275
- captchaResponseKey: string;
276
- // Graphql query string
277
- _query?: string;
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
- extends BaseRequest,
284
- RequestQuery<GetPaymentClienttokenQuery>,
285
- GetPaymentClienttokenPath {}
283
+ extends BaseRequest,
284
+ RequestQuery<GetPaymentClienttokenQuery>,
285
+ GetPaymentClienttokenPath {}
286
286
 
287
287
  // POST /payment/{id}/paymenttoken
288
288
 
289
289
  export interface PostPaymentPaymenttokenPath {
290
- // Payment ID
291
- id: string;
290
+ // Payment ID
291
+ id: string;
292
292
  }
293
293
 
294
294
  export interface PostPaymentPaymenttokenBody {
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;
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
- body: PostPaymentPaymenttokenBody;
315
+ body: PostPaymentPaymenttokenBody;
316
316
  }
317
317
 
318
318
  // POST /payment/consumer
319
319
 
320
320
  export interface PostPaymentConsumerBody {
321
- // The user id
322
- user_id: string;
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
- body: PostPaymentConsumerBody;
328
+ body: PostPaymentConsumerBody;
329
329
  }
330
330
 
331
331
  // POST /payment/method
332
332
 
333
333
  export interface PostPaymentMethodBody {
334
- // The user id
335
- user_id: string;
336
- // The payment nonce provided for the payment method
337
- payment_method_nonce: string;
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
- payment_method?: PaymentMethod;
341
+ payment_method?: PaymentMethod;
342
342
  }
343
343
 
344
344
  export interface PostPaymentMethodRequest extends BaseRequest {
345
- body: PostPaymentMethodBody;
345
+ body: PostPaymentMethodBody;
346
346
  }
347
347
 
348
348
  // GET /payment/token
349
349
 
350
350
  export interface GetPaymentTokenQuery {
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;
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
- tokenInfo: TokenInformation;
371
- // Name on credit card
372
- nameOnCard: string;
373
- // CDL Site Id
374
- siteId: string;
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
- body: PostPaymentTokenBody;
380
+ body: PostPaymentTokenBody;
381
381
  }
382
382
 
383
383
  // PUT /payment/token
384
384
 
385
385
  export interface PutPaymentTokenBody {
386
- updatedTokenInfo: UpdateTokenInformation;
387
- // CDL Site Id
388
- siteId: string;
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
- body: PutPaymentTokenBody;
394
+ body: PutPaymentTokenBody;
395
395
  }
396
396
 
397
397
  // DELETE /payment/token
398
398
 
399
399
  export interface DeletePaymentTokenBody {
400
- // Token string to be deleted
401
- token: string;
402
- // CDL Site Id
403
- siteId: string;
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
- body: DeletePaymentTokenBody;
409
+ body: DeletePaymentTokenBody;
410
410
  }
411
411
 
412
412
  // GET /payment/methods
413
413
 
414
414
  export interface GetPaymentMethodsQuery {
415
- // CDL Site Id
416
- siteId: string;
417
- // Graphql query string
418
- _query?: string;
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
- extends BaseRequest,
425
- RequestQuery<GetPaymentMethodsQuery> {}
424
+ extends BaseRequest,
425
+ RequestQuery<GetPaymentMethodsQuery> {}
426
426
 
427
427
  // GET /payment/hpc
428
428
 
429
429
  export interface GetPaymentHpcQuery {
430
- // CDL Site Id
431
- siteId: string;
432
- // hCaptcha response key
433
- captchaResponseKey: string;
434
- // Graphql query string
435
- _query?: string;
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
- // Payment ID
446
- id: string;
445
+ // Payment ID
446
+ id: string;
447
447
  }
448
448
 
449
449
  export interface GetPaymentCashlessQuery {
450
- // Graphql query string
451
- _query?: string;
450
+ // Graphql query string
451
+ _query?: string;
452
452
  }
453
453
 
454
454
  export interface GetPaymentCashlessResponse {
455
- tenders?: CashlessTender[];
455
+ tenders?: CashlessTender[];
456
456
  }
457
457
 
458
458
  export interface GetPaymentCashlessRequest
459
- extends BaseRequest,
460
- RequestQuery<GetPaymentCashlessQuery>,
461
- GetPaymentCashlessPath {}
459
+ extends BaseRequest,
460
+ RequestQuery<GetPaymentCashlessQuery>,
461
+ GetPaymentCashlessPath {}
462
462
 
463
463
  // POST /payment/{id}/cashless
464
464
 
465
465
  export interface PostPaymentCashlessPath {
466
- // Payment ID
467
- id: string;
466
+ // Payment ID
467
+ id: string;
468
468
  }
469
469
 
470
470
  export interface PostPaymentCashlessBody {
471
- // The reference ID returned from FP account confirmation
472
- token: string;
471
+ // The reference ID returned from FP account confirmation
472
+ token: string;
473
473
  }
474
474
 
475
475
  export interface PostPaymentCashlessResponse {
476
- tenders?: CashlessTender[];
476
+ tenders?: CashlessTender[];
477
477
  }
478
478
 
479
479
  export interface PostPaymentCashlessRequest extends BaseRequest, PostPaymentCashlessPath {
480
- body: PostPaymentCashlessBody;
480
+ body: PostPaymentCashlessBody;
481
481
  }
482
482
 
483
483
  // DELETE /payment/{id}/cashless
484
484
 
485
485
  export interface DeletePaymentCashlessPath {
486
- // Payment ID
487
- id: string;
486
+ // Payment ID
487
+ id: string;
488
488
  }
489
489
 
490
490
  export interface DeletePaymentCashlessBody {
491
- // An optional array of tenders to delete
492
- tenders?: string[];
491
+ // An optional array of tenders to delete
492
+ tenders?: string[];
493
493
  }
494
494
 
495
495
  export interface DeletePaymentCashlessResponse {
496
- tenders?: CashlessTender[];
496
+ tenders?: CashlessTender[];
497
497
  }
498
498
 
499
499
  export interface DeletePaymentCashlessRequest extends BaseRequest, DeletePaymentCashlessPath {
500
- body: DeletePaymentCashlessBody;
500
+ body: DeletePaymentCashlessBody;
501
501
  }
502
502
 
503
503
  // POST /payment/configvalidate
504
504
 
505
505
  export interface PostPaymentConfigvalidateBody {
506
- store_id: string;
507
- terminal_id: string;
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
- body: PostPaymentConfigvalidateBody;
513
+ body: PostPaymentConfigvalidateBody;
514
514
  }
515
515
 
516
516
  // POST /payment/validatemerchant
517
517
 
518
518
  export interface PostPaymentValidatemerchantBody {
519
- validation_url: string;
520
- display_name: string;
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
- body: PostPaymentValidatemerchantBody;
526
+ body: PostPaymentValidatemerchantBody;
527
527
  }