@compassdigital/sdk.typescript 4.131.0 → 4.133.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 +25 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +28 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/centricos.d.ts +11 -0
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +133 -1
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/discount.d.ts +12 -13
- package/lib/interface/discount.d.ts.map +1 -1
- package/lib/interface/notification.d.ts +11 -0
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +2 -1
- package/lib/interface/promo.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +68 -0
- package/src/interface/centricos.ts +20 -0
- package/src/interface/consumer.ts +139 -1
- package/src/interface/discount.ts +15 -13
- package/src/interface/notification.ts +18 -0
- package/src/interface/promo.ts +2 -1
- package/compassdigital-sdk.typescript-4.130.0.tgz +0 -0
package/src/index.ts
CHANGED
|
@@ -1015,6 +1015,8 @@ import {
|
|
|
1015
1015
|
PostNotificationStatusResponse,
|
|
1016
1016
|
PostNotificationDevicePushBody,
|
|
1017
1017
|
PostNotificationDevicePushResponse,
|
|
1018
|
+
PostNotificationBatchDevicePushBody,
|
|
1019
|
+
PostNotificationBatchDevicePushResponse,
|
|
1018
1020
|
GetNotificationSwaggerQuery,
|
|
1019
1021
|
GetNotificationSwaggerResponse,
|
|
1020
1022
|
} from './interface/notification';
|
|
@@ -1131,6 +1133,8 @@ import {
|
|
|
1131
1133
|
GetConsumerShoppingcartResponse,
|
|
1132
1134
|
PutConsumerShoppingcartBody,
|
|
1133
1135
|
PutConsumerShoppingcartResponse,
|
|
1136
|
+
PostConsumerShoppingcartBody,
|
|
1137
|
+
PostConsumerShoppingcartResponse,
|
|
1134
1138
|
PostConsumerPromoValidateBody,
|
|
1135
1139
|
PostConsumerPromoValidateResponse,
|
|
1136
1140
|
} from './interface/consumer';
|
|
@@ -1178,6 +1182,8 @@ import {
|
|
|
1178
1182
|
GetCentricosDiscountResponse,
|
|
1179
1183
|
GetCentricosDiscountAllQuery,
|
|
1180
1184
|
GetCentricosDiscountAllResponse,
|
|
1185
|
+
PostDiscountActiveBody,
|
|
1186
|
+
PostDiscountActiveResponse,
|
|
1181
1187
|
} from './interface/centricos';
|
|
1182
1188
|
|
|
1183
1189
|
import {
|
|
@@ -10988,6 +10994,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
10988
10994
|
);
|
|
10989
10995
|
}
|
|
10990
10996
|
|
|
10997
|
+
/**
|
|
10998
|
+
* POST /notification/batch/device/push - Send a push notification to many user devices
|
|
10999
|
+
*
|
|
11000
|
+
* @param body - Push notification to send
|
|
11001
|
+
* @param options - additional request options
|
|
11002
|
+
*/
|
|
11003
|
+
post_notification_batch_device_push(
|
|
11004
|
+
body: PostNotificationBatchDevicePushBody,
|
|
11005
|
+
options?: RequestOptions,
|
|
11006
|
+
): ResponsePromise<PostNotificationBatchDevicePushResponse> {
|
|
11007
|
+
return this.request(
|
|
11008
|
+
'notification',
|
|
11009
|
+
'/notification/batch/device/push',
|
|
11010
|
+
'POST',
|
|
11011
|
+
`/notification/batch/device/push`,
|
|
11012
|
+
body,
|
|
11013
|
+
options,
|
|
11014
|
+
);
|
|
11015
|
+
}
|
|
11016
|
+
|
|
10991
11017
|
/**
|
|
10992
11018
|
* GET /notification/swagger.json - Get a swagger for notification service
|
|
10993
11019
|
*
|
|
@@ -12051,6 +12077,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
12051
12077
|
);
|
|
12052
12078
|
}
|
|
12053
12079
|
|
|
12080
|
+
/**
|
|
12081
|
+
* POST /consumer/shoppingcart - Create a new shopping cart
|
|
12082
|
+
*
|
|
12083
|
+
* @param body
|
|
12084
|
+
* @param options - additional request options
|
|
12085
|
+
*/
|
|
12086
|
+
post_consumer_shoppingcart(
|
|
12087
|
+
body: PostConsumerShoppingcartBody,
|
|
12088
|
+
options?: RequestOptions,
|
|
12089
|
+
): ResponsePromise<PostConsumerShoppingcartResponse> {
|
|
12090
|
+
return this.request(
|
|
12091
|
+
'consumer',
|
|
12092
|
+
'/consumer/shoppingcart',
|
|
12093
|
+
'POST',
|
|
12094
|
+
`/consumer/shoppingcart`,
|
|
12095
|
+
body,
|
|
12096
|
+
options,
|
|
12097
|
+
);
|
|
12098
|
+
}
|
|
12099
|
+
|
|
12054
12100
|
/**
|
|
12055
12101
|
* POST /consumer/promo/validate - Validate a promo voucher
|
|
12056
12102
|
*
|
|
@@ -12486,6 +12532,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
12486
12532
|
);
|
|
12487
12533
|
}
|
|
12488
12534
|
|
|
12535
|
+
/**
|
|
12536
|
+
* POST /centricos/discount/{id}/active - Set discount active status flag
|
|
12537
|
+
*
|
|
12538
|
+
* @param id - ID of the discount to update
|
|
12539
|
+
* @param body
|
|
12540
|
+
* @param options - additional request options
|
|
12541
|
+
*/
|
|
12542
|
+
post_discount_active(
|
|
12543
|
+
id: string,
|
|
12544
|
+
body: PostDiscountActiveBody,
|
|
12545
|
+
options?: RequestOptions,
|
|
12546
|
+
): ResponsePromise<PostDiscountActiveResponse> {
|
|
12547
|
+
return this.request(
|
|
12548
|
+
'centricos',
|
|
12549
|
+
'/centricos/discount/{id}/active',
|
|
12550
|
+
'POST',
|
|
12551
|
+
`/centricos/discount/${id}/active`,
|
|
12552
|
+
body,
|
|
12553
|
+
options,
|
|
12554
|
+
);
|
|
12555
|
+
}
|
|
12556
|
+
|
|
12489
12557
|
/**
|
|
12490
12558
|
* GET /tax/v1/health-check - Health Check
|
|
12491
12559
|
*
|
|
@@ -230,6 +230,7 @@ export interface CentricDiscountStatus {
|
|
|
230
230
|
live?: boolean;
|
|
231
231
|
publishedTo3rdParty?: boolean;
|
|
232
232
|
readyToPublish?: boolean;
|
|
233
|
+
active?: boolean;
|
|
233
234
|
}
|
|
234
235
|
|
|
235
236
|
export interface CentricVoucherifyMetaData {
|
|
@@ -255,6 +256,8 @@ export interface PutDiscountVoucherifyRequestDiscount {
|
|
|
255
256
|
meta?: {
|
|
256
257
|
[index: string]: any;
|
|
257
258
|
} & CentricVoucherifyMetaData;
|
|
259
|
+
// discount active status flag
|
|
260
|
+
active?: boolean;
|
|
258
261
|
is?: CentricDiscountIs;
|
|
259
262
|
id?: string;
|
|
260
263
|
}
|
|
@@ -330,6 +333,7 @@ export interface DiscountDTO {
|
|
|
330
333
|
createdAt: string;
|
|
331
334
|
updatedAt: string;
|
|
332
335
|
is?: CentricDiscountIs;
|
|
336
|
+
meta?: Record<string, any>;
|
|
333
337
|
}
|
|
334
338
|
|
|
335
339
|
export interface GetDiscountResponseDTO {
|
|
@@ -348,6 +352,11 @@ export interface GetAllDiscountsResponseDTO {
|
|
|
348
352
|
discounts: DiscountWithSitesDTO[];
|
|
349
353
|
}
|
|
350
354
|
|
|
355
|
+
export interface PostDiscountActiveRequestDTO {
|
|
356
|
+
// Set discount active status flag
|
|
357
|
+
active: boolean;
|
|
358
|
+
}
|
|
359
|
+
|
|
351
360
|
// POST /centricos/ai/item/description - Generate item description
|
|
352
361
|
|
|
353
362
|
export type PostCentricosAiItemDescriptionBody = AIItemDescriptionRequest;
|
|
@@ -584,3 +593,14 @@ export interface GetCentricosDiscountAllQuery {
|
|
|
584
593
|
}
|
|
585
594
|
|
|
586
595
|
export type GetCentricosDiscountAllResponse = GetAllDiscountsResponseDTO;
|
|
596
|
+
|
|
597
|
+
// POST /centricos/discount/{id}/active - Set discount active status flag
|
|
598
|
+
|
|
599
|
+
export interface PostDiscountActivePath {
|
|
600
|
+
// ID of the discount to update
|
|
601
|
+
id: string;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
export type PostDiscountActiveBody = PostDiscountActiveRequestDTO;
|
|
605
|
+
|
|
606
|
+
export type PostDiscountActiveResponse = {};
|
|
@@ -127,7 +127,7 @@ export interface OrderRefundTransaction {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
export interface MultiLanguageLabel {
|
|
130
|
-
en
|
|
130
|
+
en?: string;
|
|
131
131
|
fr?: string;
|
|
132
132
|
es?: string;
|
|
133
133
|
}
|
|
@@ -917,6 +917,22 @@ export interface ConsumerBrand {
|
|
|
917
917
|
delivery_prep_time?: string;
|
|
918
918
|
delivery_is_user_defined?: boolean;
|
|
919
919
|
};
|
|
920
|
+
is?: {
|
|
921
|
+
pickup_supported?: boolean;
|
|
922
|
+
delivery_supported?: boolean;
|
|
923
|
+
frictionless_supported?: boolean;
|
|
924
|
+
plu_enabled?: boolean;
|
|
925
|
+
promo_exemptions_enabled?: boolean;
|
|
926
|
+
local_images_enabled?: boolean;
|
|
927
|
+
hidden?: boolean;
|
|
928
|
+
show_in_kiosk?: boolean;
|
|
929
|
+
show_in_pos?: boolean;
|
|
930
|
+
item_desc_edit_enabled?: boolean;
|
|
931
|
+
scan_and_go_supported?: boolean;
|
|
932
|
+
calories_edit_enabled?: boolean;
|
|
933
|
+
special_instructions_enabled?: boolean;
|
|
934
|
+
dining_hall?: boolean;
|
|
935
|
+
};
|
|
920
936
|
brand?: string;
|
|
921
937
|
location?: string;
|
|
922
938
|
group?: string;
|
|
@@ -928,6 +944,48 @@ export interface ConsumerBrand {
|
|
|
928
944
|
public?: Record<string, any>;
|
|
929
945
|
};
|
|
930
946
|
tax_rate?: number;
|
|
947
|
+
meta?: {
|
|
948
|
+
scout: {
|
|
949
|
+
user_id?: string;
|
|
950
|
+
name?: {
|
|
951
|
+
first?: string;
|
|
952
|
+
last?: string;
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
partner: {
|
|
956
|
+
user_id?: string;
|
|
957
|
+
name?: {
|
|
958
|
+
first?: string;
|
|
959
|
+
last?: string;
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
contact: {
|
|
963
|
+
name?: string;
|
|
964
|
+
role?: string;
|
|
965
|
+
email?: string;
|
|
966
|
+
phone?: string;
|
|
967
|
+
};
|
|
968
|
+
market_id?: string;
|
|
969
|
+
partner_type?: string;
|
|
970
|
+
business_number?: number;
|
|
971
|
+
website?: string;
|
|
972
|
+
cuisine_types?: string[];
|
|
973
|
+
status?: Record<string, any>;
|
|
974
|
+
active?: boolean;
|
|
975
|
+
max_showcase_items?: number;
|
|
976
|
+
jde_category?: string;
|
|
977
|
+
software_integrations: {
|
|
978
|
+
system365?: string;
|
|
979
|
+
jwo?: string;
|
|
980
|
+
time2eat?: {
|
|
981
|
+
enabled?: boolean;
|
|
982
|
+
};
|
|
983
|
+
nextep?: {
|
|
984
|
+
mobile_app?: boolean;
|
|
985
|
+
};
|
|
986
|
+
};
|
|
987
|
+
[index: string]: any;
|
|
988
|
+
};
|
|
931
989
|
descriptions?: {
|
|
932
990
|
location: {
|
|
933
991
|
en?: string;
|
|
@@ -1665,6 +1723,80 @@ export interface PutConsumerShoppingCartResponse {
|
|
|
1665
1723
|
};
|
|
1666
1724
|
}
|
|
1667
1725
|
|
|
1726
|
+
export interface PostConsumerShoppingCartBodyRequest {
|
|
1727
|
+
location?: string;
|
|
1728
|
+
menu?: string;
|
|
1729
|
+
brand?: string;
|
|
1730
|
+
promo?: ShoppingcartPromoDetails;
|
|
1731
|
+
discount?: ShoppingcartPromoDetails;
|
|
1732
|
+
payment_method?: ShoppingcartPaymentMethod;
|
|
1733
|
+
taxes?: ShoppingcartTaxes;
|
|
1734
|
+
exemptions?: {
|
|
1735
|
+
tax?: boolean;
|
|
1736
|
+
};
|
|
1737
|
+
service_fee?: ShoppingcartMonetaryValue;
|
|
1738
|
+
delivery_fee?: ShoppingcartMonetaryValue;
|
|
1739
|
+
is?: {
|
|
1740
|
+
type?: Record<string, any>;
|
|
1741
|
+
mx_cart?: boolean;
|
|
1742
|
+
email_tax_exempt?: boolean;
|
|
1743
|
+
tax_calculation_required?: boolean;
|
|
1744
|
+
system365?: boolean;
|
|
1745
|
+
};
|
|
1746
|
+
meta?: {
|
|
1747
|
+
vendor?: Record<string, any>;
|
|
1748
|
+
[index: string]: any;
|
|
1749
|
+
};
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
export interface PostConsumerShoppingCartResponse {
|
|
1753
|
+
id?: string;
|
|
1754
|
+
location?: string;
|
|
1755
|
+
menu?: string;
|
|
1756
|
+
brand?: string;
|
|
1757
|
+
date?: Record<string, any>;
|
|
1758
|
+
items?: ShoppingcartItem[];
|
|
1759
|
+
sub_total?: {
|
|
1760
|
+
amount?: number;
|
|
1761
|
+
};
|
|
1762
|
+
promo?: ShoppingcartPromoDetails;
|
|
1763
|
+
loyalty?: {
|
|
1764
|
+
coupon: {
|
|
1765
|
+
code?: string;
|
|
1766
|
+
amount_off?: number;
|
|
1767
|
+
amount?: number;
|
|
1768
|
+
name?: string;
|
|
1769
|
+
};
|
|
1770
|
+
order_loyalty_points?: boolean;
|
|
1771
|
+
};
|
|
1772
|
+
discount?: ShoppingcartPromoDetails;
|
|
1773
|
+
payment_method?: ShoppingcartPaymentMethod;
|
|
1774
|
+
taxes?: ShoppingcartTaxes;
|
|
1775
|
+
total?: {
|
|
1776
|
+
amount?: number;
|
|
1777
|
+
meals?: number;
|
|
1778
|
+
};
|
|
1779
|
+
exemptions?: {
|
|
1780
|
+
tax?: boolean;
|
|
1781
|
+
};
|
|
1782
|
+
order?: {
|
|
1783
|
+
id?: string;
|
|
1784
|
+
};
|
|
1785
|
+
service_fee?: {
|
|
1786
|
+
amount?: number;
|
|
1787
|
+
};
|
|
1788
|
+
delivery_fee?: {
|
|
1789
|
+
amount?: number;
|
|
1790
|
+
};
|
|
1791
|
+
is?: {
|
|
1792
|
+
type?: Record<string, any>;
|
|
1793
|
+
mx_cart?: boolean;
|
|
1794
|
+
email_tax_exempt?: boolean;
|
|
1795
|
+
tax_calculation_required?: boolean;
|
|
1796
|
+
system365?: boolean;
|
|
1797
|
+
};
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1668
1800
|
export interface PostConsumerPromoValidateRequest {
|
|
1669
1801
|
// The code of the promo voucher
|
|
1670
1802
|
code?: string;
|
|
@@ -2035,6 +2167,12 @@ export type PutConsumerShoppingcartBody = PutConsumerShoppingCartItemsRequest;
|
|
|
2035
2167
|
|
|
2036
2168
|
export type PutConsumerShoppingcartResponse = PutConsumerShoppingCartResponse;
|
|
2037
2169
|
|
|
2170
|
+
// POST /consumer/shoppingcart - Create a new shopping cart
|
|
2171
|
+
|
|
2172
|
+
export type PostConsumerShoppingcartBody = PostConsumerShoppingCartBodyRequest;
|
|
2173
|
+
|
|
2174
|
+
export type PostConsumerShoppingcartResponse = PostConsumerShoppingCartResponse;
|
|
2175
|
+
|
|
2038
2176
|
// POST /consumer/promo/validate - Validate a promo voucher
|
|
2039
2177
|
|
|
2040
2178
|
export type PostConsumerPromoValidateBody = PostConsumerPromoValidateRequest;
|
|
@@ -48,7 +48,7 @@ export interface GetDiscountResponseDTO {
|
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
50
|
name: string;
|
|
51
|
-
status
|
|
51
|
+
status: DiscountStatus;
|
|
52
52
|
is?: DiscountIs;
|
|
53
53
|
meta?: DiscountMeta;
|
|
54
54
|
}
|
|
@@ -87,7 +87,7 @@ export interface DiscountDTO {
|
|
|
87
87
|
createdAt: string;
|
|
88
88
|
updatedAt: string;
|
|
89
89
|
name: string;
|
|
90
|
-
status
|
|
90
|
+
status: DiscountStatus;
|
|
91
91
|
is?: DiscountIs;
|
|
92
92
|
meta?: DiscountMeta;
|
|
93
93
|
}
|
|
@@ -107,7 +107,7 @@ export interface DiscountWithSites {
|
|
|
107
107
|
createdAt: string;
|
|
108
108
|
updatedAt: string;
|
|
109
109
|
name: string;
|
|
110
|
-
status
|
|
110
|
+
status: DiscountStatus;
|
|
111
111
|
is?: DiscountIs;
|
|
112
112
|
meta?: DiscountMeta;
|
|
113
113
|
}
|
|
@@ -125,30 +125,32 @@ export interface PostDiscountRequestDTO {
|
|
|
125
125
|
createdBy: string;
|
|
126
126
|
updatedBy?: string;
|
|
127
127
|
name: string;
|
|
128
|
-
status?: DiscountStatus;
|
|
129
128
|
is?: DiscountIs;
|
|
130
129
|
meta?: DiscountMeta;
|
|
131
130
|
taxonomy?: DiscountTaxonomy;
|
|
131
|
+
status?: DiscountStatus;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
export interface PostDiscountResponseDTO {
|
|
135
|
+
// discount id
|
|
135
136
|
id: string;
|
|
137
|
+
// user id of discount creator
|
|
138
|
+
createdBy: string;
|
|
139
|
+
// user id of most recent update
|
|
140
|
+
updatedBy: string;
|
|
136
141
|
createdAt: string;
|
|
137
142
|
updatedAt: string;
|
|
138
|
-
updatedBy: string;
|
|
139
143
|
name: string;
|
|
140
|
-
status
|
|
144
|
+
status: DiscountStatus;
|
|
141
145
|
is?: DiscountIs;
|
|
142
146
|
meta?: DiscountMeta;
|
|
143
|
-
taxonomy?: DiscountTaxonomy;
|
|
144
|
-
createdBy: string;
|
|
145
147
|
}
|
|
146
148
|
|
|
147
149
|
export interface PutDiscountRequestDTO {
|
|
148
150
|
updatedBy: string;
|
|
149
151
|
taxonomy?: DiscountTaxonomy;
|
|
150
|
-
name: string;
|
|
151
152
|
status?: DiscountStatus;
|
|
153
|
+
name: string;
|
|
152
154
|
is?: DiscountIs;
|
|
153
155
|
meta?: DiscountMeta;
|
|
154
156
|
}
|
|
@@ -163,7 +165,7 @@ export interface PutDiscountResponseDTO {
|
|
|
163
165
|
createdAt: string;
|
|
164
166
|
updatedAt: string;
|
|
165
167
|
name: string;
|
|
166
|
-
status
|
|
168
|
+
status: DiscountStatus;
|
|
167
169
|
is?: DiscountIs;
|
|
168
170
|
meta?: DiscountMeta;
|
|
169
171
|
}
|
|
@@ -183,7 +185,7 @@ export interface PutDiscountPublishResponseDTO {
|
|
|
183
185
|
createdAt: string;
|
|
184
186
|
updatedAt: string;
|
|
185
187
|
name: string;
|
|
186
|
-
status
|
|
188
|
+
status: DiscountStatus;
|
|
187
189
|
is?: DiscountIs;
|
|
188
190
|
meta?: DiscountMeta;
|
|
189
191
|
}
|
|
@@ -194,8 +196,8 @@ export interface DeleteDiscountResponseDTO {
|
|
|
194
196
|
|
|
195
197
|
export interface PatchDiscountRequestDTO {
|
|
196
198
|
updatedBy: string;
|
|
197
|
-
name?: string;
|
|
198
199
|
status?: DiscountStatus;
|
|
200
|
+
name?: string;
|
|
199
201
|
is?: DiscountIs;
|
|
200
202
|
meta?: DiscountMeta;
|
|
201
203
|
}
|
|
@@ -210,7 +212,7 @@ export interface PatchDiscountResponseDTO {
|
|
|
210
212
|
createdAt: string;
|
|
211
213
|
updatedAt: string;
|
|
212
214
|
name: string;
|
|
213
|
-
status
|
|
215
|
+
status: DiscountStatus;
|
|
214
216
|
is?: DiscountIs;
|
|
215
217
|
meta?: DiscountMeta;
|
|
216
218
|
}
|
|
@@ -35,6 +35,14 @@ export interface PushNotificationBody {
|
|
|
35
35
|
data?: Record<string, any>;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
export interface BatchPushNotificationBody {
|
|
39
|
+
title: string;
|
|
40
|
+
text: string;
|
|
41
|
+
// Recipients of the notification. Example: user ids
|
|
42
|
+
targets: string[];
|
|
43
|
+
data?: Record<string, any>;
|
|
44
|
+
}
|
|
45
|
+
|
|
38
46
|
export interface NotificationStatus {
|
|
39
47
|
read?: boolean;
|
|
40
48
|
released?: boolean;
|
|
@@ -126,6 +134,16 @@ export interface PostNotificationDevicePushRequest extends BaseRequest {
|
|
|
126
134
|
body: PostNotificationDevicePushBody;
|
|
127
135
|
}
|
|
128
136
|
|
|
137
|
+
// POST /notification/batch/device/push - Send a push notification to many user devices
|
|
138
|
+
|
|
139
|
+
export type PostNotificationBatchDevicePushBody = BatchPushNotificationBody;
|
|
140
|
+
|
|
141
|
+
export type PostNotificationBatchDevicePushResponse = Success;
|
|
142
|
+
|
|
143
|
+
export interface PostNotificationBatchDevicePushRequest extends BaseRequest {
|
|
144
|
+
body: PostNotificationBatchDevicePushBody;
|
|
145
|
+
}
|
|
146
|
+
|
|
129
147
|
// GET /notification/swagger.json - Get a swagger for notification service
|
|
130
148
|
|
|
131
149
|
export interface GetNotificationSwaggerQuery {
|
package/src/interface/promo.ts
CHANGED
|
@@ -231,11 +231,12 @@ export interface Voucher {
|
|
|
231
231
|
provider_data?: FPValidationData;
|
|
232
232
|
redeemables?: Redeemable[];
|
|
233
233
|
stacked_vouchers?: Redeemable[];
|
|
234
|
+
inapplicable_redeemables?: Redeemable[];
|
|
234
235
|
[index: string]: any;
|
|
235
236
|
}
|
|
236
237
|
|
|
237
238
|
export interface Redeemable {
|
|
238
|
-
status: 'APPLICABLE';
|
|
239
|
+
status: 'APPLICABLE' | 'INAPPLICABLE';
|
|
239
240
|
// redeemable
|
|
240
241
|
id: string;
|
|
241
242
|
object: 'voucher' | 'promotion_stack' | 'promotion_tier';
|
|
Binary file
|