@mivis/petmart-api 1.2.99 → 1.2.101

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/type.d.ts +10 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.99",
3
+ "version": "1.2.101",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -679,12 +679,14 @@ declare namespace Components {
679
679
  '_id' | 'name' | 'tel' | 'email'
680
680
  >;
681
681
 
682
+ export type TPopulatedProductId = Pick<
683
+ IProduct,
684
+ '_id' | 'name' | 'vendor_code' | 'photo' | 'discount'
685
+ >;
686
+
682
687
  export interface IPopulatedOrderItem
683
688
  extends Omit<IOrderItem, 'product_id'> {
684
- product_id: Pick<
685
- IProduct,
686
- '_id' | 'name' | 'vendor_code' | 'photo' | 'discount'
687
- >;
689
+ product_id: TPopulatedProductId;
688
690
  }
689
691
 
690
692
  export type IPopulatedOrder = Omit<
@@ -724,7 +726,7 @@ declare namespace Components {
724
726
  delivery_info: Partial<IAdminDeliveryInfo>;
725
727
  cdek_info?: Partial<IAdminCdekInfo>;
726
728
  invoice?: File;
727
- items: IOrderItem[];
729
+ items: IPopulatedOrderItem[];
728
730
  }
729
731
 
730
732
  export type OrderAddress = Omit<
@@ -938,6 +940,8 @@ declare namespace Components {
938
940
 
939
941
  export interface IOrder {
940
942
  _id: string;
943
+ total_received: number; // Сколько всего заплатил покупатель за этот заказ (сумма товаров + доставки)
944
+ current_commission: number; // Текущая комиссия продавца за заказ (Сумма товаров * комиссию продавца / 100)
941
945
  sum: number;
942
946
  full_sum: number; // Сумма с учетом доставки и коммиссии сервиса
943
947
  weight: number; // Общий вес в граммах
@@ -1096,6 +1100,7 @@ declare namespace Components {
1096
1100
 
1097
1101
  export interface ISellerTransactions {
1098
1102
  _id: string;
1103
+ total_received: number; // Сумма которую оплатил покупатель за этот заказ (сумма товаров + сумма доставки)
1099
1104
  type: ESellerTransactionsType;
1100
1105
  sum: number;
1101
1106
  admin_id?: string;