@mivis/petmart-api 1.2.252 → 1.2.254
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 +17 -4
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -497,6 +497,7 @@ declare namespace Components {
|
|
|
497
497
|
};
|
|
498
498
|
count: number;
|
|
499
499
|
price: number;
|
|
500
|
+
discounted_price: number | null;
|
|
500
501
|
createdAt: Date;
|
|
501
502
|
updatedAt: Date;
|
|
502
503
|
}
|
|
@@ -1003,6 +1004,7 @@ declare namespace Components {
|
|
|
1003
1004
|
product_id: string;
|
|
1004
1005
|
count: number;
|
|
1005
1006
|
price: number; // Сумма за одну единицу товара * количество товаров
|
|
1007
|
+
discounted_price: number | null;
|
|
1006
1008
|
dimension: IDimension; // Габариты за единицу товара
|
|
1007
1009
|
items_status: EOrderItemsStatus;
|
|
1008
1010
|
}
|
|
@@ -1028,10 +1030,7 @@ declare namespace Components {
|
|
|
1028
1030
|
|
|
1029
1031
|
export interface IPopulatedOrderItemApp
|
|
1030
1032
|
extends Omit<IOrderItem, 'product_id'> {
|
|
1031
|
-
product_id:
|
|
1032
|
-
IProduct,
|
|
1033
|
-
'_id' | 'name' | 'photo' | 'discount' | 'slug' | 'status'
|
|
1034
|
-
>;
|
|
1033
|
+
product_id: IProductResponse;
|
|
1035
1034
|
}
|
|
1036
1035
|
|
|
1037
1036
|
export type IPopulatedOrderUserApp = Pick<
|
|
@@ -1166,6 +1165,7 @@ declare namespace Components {
|
|
|
1166
1165
|
total_received: number; // Сколько всего заплатил покупатель за этот заказ (сумма товаров + доставки)
|
|
1167
1166
|
current_commission: number; // Текущая комиссия продавца за заказ (Сумма товаров * комиссию продавца / 100)
|
|
1168
1167
|
sum: number;
|
|
1168
|
+
original_sum: number; // Сумма без учёта скидок
|
|
1169
1169
|
full_sum: number; // Сумма с учетом доставки и коммиссии сервиса
|
|
1170
1170
|
weight: number; // Общий вес в граммах
|
|
1171
1171
|
user_id?: string;
|
|
@@ -1366,6 +1366,7 @@ declare namespace Components {
|
|
|
1366
1366
|
total_received: number; // Сумма которую оплатил покупатель за этот заказ (сумма товаров + сумма доставки)
|
|
1367
1367
|
type: ESellerTransactionsType;
|
|
1368
1368
|
sum: number;
|
|
1369
|
+
original_sum: number;
|
|
1369
1370
|
admin_id?: string;
|
|
1370
1371
|
order_id: string;
|
|
1371
1372
|
comment?: string;
|
|
@@ -2303,5 +2304,17 @@ declare namespace Components {
|
|
|
2303
2304
|
order: IPopulatedOrderApp;
|
|
2304
2305
|
payment_id: string;
|
|
2305
2306
|
}
|
|
2307
|
+
|
|
2308
|
+
// PromoCode
|
|
2309
|
+
|
|
2310
|
+
export interface ICreatePromo {
|
|
2311
|
+
discount_percent: number;
|
|
2312
|
+
start_date?: string; // default: new Date().toISOString()
|
|
2313
|
+
end_date: string;
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
export interface IApplyPromo {
|
|
2317
|
+
code: string;
|
|
2318
|
+
}
|
|
2306
2319
|
}
|
|
2307
2320
|
}
|