@mivis/petmart-api 1.2.256 → 1.2.257
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/package.json +1 -1
- package/type.d.ts +13 -0
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -741,6 +741,7 @@ declare namespace Components {
|
|
|
741
741
|
averageRating: string;
|
|
742
742
|
reviewsCount: number;
|
|
743
743
|
seller: ISeller;
|
|
744
|
+
promoCode: IPromoCode | null;
|
|
744
745
|
}
|
|
745
746
|
|
|
746
747
|
export interface ISellerSearchQueryRequest {
|
|
@@ -2327,5 +2328,17 @@ declare namespace Components {
|
|
|
2327
2328
|
export interface IApplyPromo {
|
|
2328
2329
|
code: string;
|
|
2329
2330
|
}
|
|
2331
|
+
|
|
2332
|
+
export interface IPromoCode {
|
|
2333
|
+
_id: string;
|
|
2334
|
+
seller_id: string; // Привязка к продавцу
|
|
2335
|
+
code: string; // Сам промокод, например HSYORK20
|
|
2336
|
+
discount_percent: number; // Процент скидки (20 -> 20%)
|
|
2337
|
+
start_date: Date; // Дата начала действия промокода
|
|
2338
|
+
end_date: Date; // Дата окончания действия промокода
|
|
2339
|
+
showcase_url: string; // Ссылка на витрину продавца
|
|
2340
|
+
createdAt: Date;
|
|
2341
|
+
updatedAt: Date;
|
|
2342
|
+
}
|
|
2330
2343
|
}
|
|
2331
2344
|
}
|