@mivis/petmart-api 1.2.92 → 1.2.95

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 +12 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.92",
3
+ "version": "1.2.95",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -653,7 +653,7 @@ declare namespace Components {
653
653
  item_id: string;
654
654
  }
655
655
 
656
- export interface IAdminAddOrderItemRequest {
656
+ export interface IAdminRemoveOrderItemRequest {
657
657
  product_number: number;
658
658
  count: number;
659
659
  current_items: IPopulatedOrderItem[];
@@ -671,9 +671,15 @@ declare namespace Components {
671
671
  seller_id?: string;
672
672
  }
673
673
 
674
- export type IPopulatedOrderSeller = Pick<ISeller, '_id' | 'shop_details'>;
674
+ export type IPopulatedOrderSeller = Pick<
675
+ ISeller,
676
+ '_id' | 'shop_details' | 'user_id'
677
+ >;
675
678
 
676
- export type IPopulatedOrderUser = Pick<IUser, '_id' | 'name'>;
679
+ export type IPopulatedOrderUser = Pick<
680
+ IUser,
681
+ '_id' | 'name' | 'tel' | 'email'
682
+ >;
677
683
 
678
684
  export interface IPopulatedOrderItem
679
685
  extends Omit<IOrderItem, 'product_id'> {
@@ -963,7 +969,7 @@ declare namespace Components {
963
969
  updatedAt: Date;
964
970
  }
965
971
 
966
- export interface IPaymentCaptureResponse {
972
+ export interface IPaymentCheckResponse {
967
973
  id: string;
968
974
  status: string;
969
975
  amount: {
@@ -1087,6 +1093,7 @@ declare namespace Components {
1087
1093
  SALE = 'SALE',
1088
1094
  FINE = 'FINE',
1089
1095
  WITHDRAW = 'WITHDRAW',
1096
+ REFUND = 'REFUND',
1090
1097
  }
1091
1098
 
1092
1099
  export interface ISellerTransactions {
@@ -1098,6 +1105,7 @@ declare namespace Components {
1098
1105
  comment?: string;
1099
1106
  commission?: number;
1100
1107
  delivery_sum?: number;
1108
+ payment_id?: string;
1101
1109
  seller_id: string;
1102
1110
  createdAt: Date;
1103
1111
  updatedAt: Date;