@mivis/petmart-api 1.2.253 → 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 +16 -0
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
|
}
|
|
@@ -1163,6 +1165,7 @@ declare namespace Components {
|
|
|
1163
1165
|
total_received: number; // Сколько всего заплатил покупатель за этот заказ (сумма товаров + доставки)
|
|
1164
1166
|
current_commission: number; // Текущая комиссия продавца за заказ (Сумма товаров * комиссию продавца / 100)
|
|
1165
1167
|
sum: number;
|
|
1168
|
+
original_sum: number; // Сумма без учёта скидок
|
|
1166
1169
|
full_sum: number; // Сумма с учетом доставки и коммиссии сервиса
|
|
1167
1170
|
weight: number; // Общий вес в граммах
|
|
1168
1171
|
user_id?: string;
|
|
@@ -1363,6 +1366,7 @@ declare namespace Components {
|
|
|
1363
1366
|
total_received: number; // Сумма которую оплатил покупатель за этот заказ (сумма товаров + сумма доставки)
|
|
1364
1367
|
type: ESellerTransactionsType;
|
|
1365
1368
|
sum: number;
|
|
1369
|
+
original_sum: number;
|
|
1366
1370
|
admin_id?: string;
|
|
1367
1371
|
order_id: string;
|
|
1368
1372
|
comment?: string;
|
|
@@ -2300,5 +2304,17 @@ declare namespace Components {
|
|
|
2300
2304
|
order: IPopulatedOrderApp;
|
|
2301
2305
|
payment_id: string;
|
|
2302
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
|
+
}
|
|
2303
2319
|
}
|
|
2304
2320
|
}
|