@compassdigital/sdk.typescript 4.433.0 → 4.435.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 +8 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +35 -0
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +8 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +22 -0
- package/src/interface/consumer.ts +68 -0
- package/src/interface/menu.ts +8 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1184,6 +1184,8 @@ import {
|
|
|
1184
1184
|
GetPaymentHpcConsumerResponse,
|
|
1185
1185
|
GetPaymentTokenConsumerQuery,
|
|
1186
1186
|
GetPaymentTokenConsumerResponse,
|
|
1187
|
+
PostConsumerPaymentTokenBody$0,
|
|
1188
|
+
PostConsumerPaymentTokenResponse$0,
|
|
1187
1189
|
GetConsumerShoppingcartResponse,
|
|
1188
1190
|
PutConsumerShoppingcartBody,
|
|
1189
1191
|
PutConsumerShoppingcartResponse,
|
|
@@ -13445,6 +13447,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
13445
13447
|
);
|
|
13446
13448
|
}
|
|
13447
13449
|
|
|
13450
|
+
/**
|
|
13451
|
+
* POST /consumer/payment/token - Save payment token to user profile
|
|
13452
|
+
*
|
|
13453
|
+
* @param body
|
|
13454
|
+
* @param options - additional request options
|
|
13455
|
+
*/
|
|
13456
|
+
post_consumer_payment_token(
|
|
13457
|
+
body: PostConsumerPaymentTokenBody$0,
|
|
13458
|
+
options?: RequestOptions,
|
|
13459
|
+
): ResponsePromise<PostConsumerPaymentTokenResponse$0> {
|
|
13460
|
+
return this.request(
|
|
13461
|
+
'consumer',
|
|
13462
|
+
'/consumer/payment/token',
|
|
13463
|
+
'POST',
|
|
13464
|
+
`/consumer/payment/token`,
|
|
13465
|
+
body,
|
|
13466
|
+
options,
|
|
13467
|
+
);
|
|
13468
|
+
}
|
|
13469
|
+
|
|
13448
13470
|
/**
|
|
13449
13471
|
* GET /consumer/shoppingcart/{id} - Get a shopping cart by ID
|
|
13450
13472
|
*
|
|
@@ -2318,6 +2318,68 @@ export interface ConsumerGetPaymentTokenResponse {
|
|
|
2318
2318
|
sessionKey?: string;
|
|
2319
2319
|
}
|
|
2320
2320
|
|
|
2321
|
+
export interface TokenInfoDto {
|
|
2322
|
+
// Payment token
|
|
2323
|
+
token?: string;
|
|
2324
|
+
// Masked account number
|
|
2325
|
+
accountNumberMasked?: string;
|
|
2326
|
+
// Card expiration month
|
|
2327
|
+
cardExpirationMonth?: string;
|
|
2328
|
+
// Card expiration year
|
|
2329
|
+
cardExpirationYear?: string;
|
|
2330
|
+
// Card brand
|
|
2331
|
+
brand?: string;
|
|
2332
|
+
// POS card type
|
|
2333
|
+
posCardType?: string;
|
|
2334
|
+
// Card type
|
|
2335
|
+
cardType?: string;
|
|
2336
|
+
// Token expiration
|
|
2337
|
+
tokenExpiration?: string;
|
|
2338
|
+
// POS data
|
|
2339
|
+
posData?: string;
|
|
2340
|
+
// New token
|
|
2341
|
+
newToken?: string;
|
|
2342
|
+
// Session key
|
|
2343
|
+
sessionKey?: string;
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
export interface PostConsumerPaymentTokenBody {
|
|
2347
|
+
// Token information
|
|
2348
|
+
tokenInfo: TokenInfoDto;
|
|
2349
|
+
// Name on credit card
|
|
2350
|
+
nameOnCard: string;
|
|
2351
|
+
// CDL Site Id
|
|
2352
|
+
siteId: string;
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2355
|
+
export interface BillingAddressDto {
|
|
2356
|
+
// Postal code
|
|
2357
|
+
postalCode?: string;
|
|
2358
|
+
}
|
|
2359
|
+
|
|
2360
|
+
export interface PostConsumerPaymentTokenResponse {
|
|
2361
|
+
// Masked card number
|
|
2362
|
+
maskedCardNumber?: string;
|
|
2363
|
+
// Card type
|
|
2364
|
+
cardType?: string;
|
|
2365
|
+
// Card nickname
|
|
2366
|
+
nickname?: string;
|
|
2367
|
+
// Is preferred card
|
|
2368
|
+
isPreferred?: boolean;
|
|
2369
|
+
// Card expiry year
|
|
2370
|
+
expiryYear?: number;
|
|
2371
|
+
// Card expiry month
|
|
2372
|
+
expiryMonth?: number;
|
|
2373
|
+
// Name on card
|
|
2374
|
+
nameOnCard?: string;
|
|
2375
|
+
// Payment token
|
|
2376
|
+
token?: string;
|
|
2377
|
+
// Token expiration date
|
|
2378
|
+
tokenExpirationDate?: string;
|
|
2379
|
+
// Billing address
|
|
2380
|
+
billingAddress?: BillingAddressDto;
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2321
2383
|
export interface PromoDetails {
|
|
2322
2384
|
code?: string;
|
|
2323
2385
|
provider?: Record<string, any>;
|
|
@@ -3768,6 +3830,12 @@ export interface GetPaymentTokenConsumerQuery {
|
|
|
3768
3830
|
|
|
3769
3831
|
export type GetPaymentTokenConsumerResponse = ConsumerGetPaymentTokenResponse;
|
|
3770
3832
|
|
|
3833
|
+
// POST /consumer/payment/token - Save payment token to user profile
|
|
3834
|
+
|
|
3835
|
+
export type PostConsumerPaymentTokenBody$0 = PostConsumerPaymentTokenBody;
|
|
3836
|
+
|
|
3837
|
+
export type PostConsumerPaymentTokenResponse$0 = PostConsumerPaymentTokenResponse;
|
|
3838
|
+
|
|
3771
3839
|
// GET /consumer/shoppingcart/{id} - Get a shopping cart by ID
|
|
3772
3840
|
|
|
3773
3841
|
export interface GetConsumerShoppingcartPath {
|
package/src/interface/menu.ts
CHANGED
|
@@ -716,6 +716,7 @@ export interface LocalMenuGroupDTO {
|
|
|
716
716
|
published_brands?: PublishedBrandDTO[];
|
|
717
717
|
price_levels?: Record<string, any>;
|
|
718
718
|
show_v4?: boolean;
|
|
719
|
+
menuworks_unit_ids?: string[];
|
|
719
720
|
id: string;
|
|
720
721
|
created_at?: string;
|
|
721
722
|
updated_at?: string;
|
|
@@ -2516,6 +2517,7 @@ export interface PostMenuV3LocalMenuGroupBody {
|
|
|
2516
2517
|
published_brands?: PublishedBrandDTO[];
|
|
2517
2518
|
price_levels?: Record<string, any>;
|
|
2518
2519
|
show_v4?: boolean;
|
|
2520
|
+
menuworks_unit_ids?: string[];
|
|
2519
2521
|
vendor_metadata?: VendorMetadataDTO[];
|
|
2520
2522
|
permissions?: Record<string, any>;
|
|
2521
2523
|
[index: string]: any;
|
|
@@ -2529,6 +2531,7 @@ export interface PostMenuV3LocalMenuGroupResponse {
|
|
|
2529
2531
|
published_brands?: PublishedBrandDTO[];
|
|
2530
2532
|
price_levels?: Record<string, any>;
|
|
2531
2533
|
show_v4?: boolean;
|
|
2534
|
+
menuworks_unit_ids?: string[];
|
|
2532
2535
|
id: string;
|
|
2533
2536
|
created_at?: string;
|
|
2534
2537
|
updated_at?: string;
|
|
@@ -2568,6 +2571,7 @@ export interface GetMenuV3LocalMenuGroupResponse {
|
|
|
2568
2571
|
published_brands?: PublishedBrandDTO[];
|
|
2569
2572
|
price_levels?: Record<string, any>;
|
|
2570
2573
|
show_v4?: boolean;
|
|
2574
|
+
menuworks_unit_ids?: string[];
|
|
2571
2575
|
id: string;
|
|
2572
2576
|
created_at?: string;
|
|
2573
2577
|
updated_at?: string;
|
|
@@ -2597,6 +2601,7 @@ export interface PatchMenuV3LocalMenuGroupBody {
|
|
|
2597
2601
|
published_brands?: PublishedBrandDTO[];
|
|
2598
2602
|
price_levels?: Record<string, any>;
|
|
2599
2603
|
show_v4?: boolean;
|
|
2604
|
+
menuworks_unit_ids?: string[];
|
|
2600
2605
|
id?: string;
|
|
2601
2606
|
version?: number;
|
|
2602
2607
|
vendor_metadata?: VendorMetadataDTO[];
|
|
@@ -2612,6 +2617,7 @@ export interface PatchMenuV3LocalMenuGroupResponse {
|
|
|
2612
2617
|
published_brands?: PublishedBrandDTO[];
|
|
2613
2618
|
price_levels?: Record<string, any>;
|
|
2614
2619
|
show_v4?: boolean;
|
|
2620
|
+
menuworks_unit_ids?: string[];
|
|
2615
2621
|
id: string;
|
|
2616
2622
|
created_at?: string;
|
|
2617
2623
|
updated_at?: string;
|
|
@@ -2647,6 +2653,7 @@ export interface DeleteMenuV3LocalMenuGroupResponse {
|
|
|
2647
2653
|
published_brands?: PublishedBrandDTO[];
|
|
2648
2654
|
price_levels?: Record<string, any>;
|
|
2649
2655
|
show_v4?: boolean;
|
|
2656
|
+
menuworks_unit_ids?: string[];
|
|
2650
2657
|
id: string;
|
|
2651
2658
|
created_at?: string;
|
|
2652
2659
|
updated_at?: string;
|
|
@@ -2701,6 +2708,7 @@ export type PostMenuV3LocalMenuGroupsBody = {
|
|
|
2701
2708
|
published_brands?: PublishedBrandDTO[];
|
|
2702
2709
|
price_levels?: Record<string, any>;
|
|
2703
2710
|
show_v4?: boolean;
|
|
2711
|
+
menuworks_unit_ids?: string[];
|
|
2704
2712
|
vendor_metadata?: VendorMetadataDTO[];
|
|
2705
2713
|
permissions?: Record<string, any>;
|
|
2706
2714
|
[index: string]: any;
|