@mivis/petmart-api 1.2.253 → 1.2.255
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 +18 -0
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -371,6 +371,8 @@ declare namespace Components {
|
|
|
371
371
|
reviewsData?: IReviewsData;
|
|
372
372
|
published_at?: Date;
|
|
373
373
|
entityAnalytics?: IEntityAnalytics;
|
|
374
|
+
low_stock_flag: boolean;
|
|
375
|
+
f_price: number | null;
|
|
374
376
|
}
|
|
375
377
|
|
|
376
378
|
type OptionalDimension = {
|
|
@@ -497,6 +499,7 @@ declare namespace Components {
|
|
|
497
499
|
};
|
|
498
500
|
count: number;
|
|
499
501
|
price: number;
|
|
502
|
+
discounted_price: number | null;
|
|
500
503
|
createdAt: Date;
|
|
501
504
|
updatedAt: Date;
|
|
502
505
|
}
|
|
@@ -1003,6 +1006,7 @@ declare namespace Components {
|
|
|
1003
1006
|
product_id: string;
|
|
1004
1007
|
count: number;
|
|
1005
1008
|
price: number; // Сумма за одну единицу товара * количество товаров
|
|
1009
|
+
discounted_price: number | null;
|
|
1006
1010
|
dimension: IDimension; // Габариты за единицу товара
|
|
1007
1011
|
items_status: EOrderItemsStatus;
|
|
1008
1012
|
}
|
|
@@ -1163,6 +1167,7 @@ declare namespace Components {
|
|
|
1163
1167
|
total_received: number; // Сколько всего заплатил покупатель за этот заказ (сумма товаров + доставки)
|
|
1164
1168
|
current_commission: number; // Текущая комиссия продавца за заказ (Сумма товаров * комиссию продавца / 100)
|
|
1165
1169
|
sum: number;
|
|
1170
|
+
original_sum: number; // Сумма без учёта скидок
|
|
1166
1171
|
full_sum: number; // Сумма с учетом доставки и коммиссии сервиса
|
|
1167
1172
|
weight: number; // Общий вес в граммах
|
|
1168
1173
|
user_id?: string;
|
|
@@ -1363,6 +1368,7 @@ declare namespace Components {
|
|
|
1363
1368
|
total_received: number; // Сумма которую оплатил покупатель за этот заказ (сумма товаров + сумма доставки)
|
|
1364
1369
|
type: ESellerTransactionsType;
|
|
1365
1370
|
sum: number;
|
|
1371
|
+
original_sum: number;
|
|
1366
1372
|
admin_id?: string;
|
|
1367
1373
|
order_id: string;
|
|
1368
1374
|
comment?: string;
|
|
@@ -2300,5 +2306,17 @@ declare namespace Components {
|
|
|
2300
2306
|
order: IPopulatedOrderApp;
|
|
2301
2307
|
payment_id: string;
|
|
2302
2308
|
}
|
|
2309
|
+
|
|
2310
|
+
// PromoCode
|
|
2311
|
+
|
|
2312
|
+
export interface ICreatePromo {
|
|
2313
|
+
discount_percent: number;
|
|
2314
|
+
start_date?: string; // default: new Date().toISOString()
|
|
2315
|
+
end_date: string;
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
export interface IApplyPromo {
|
|
2319
|
+
code: string;
|
|
2320
|
+
}
|
|
2303
2321
|
}
|
|
2304
2322
|
}
|