@mivis/petmart-api 1.2.46 → 1.2.48
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 +27 -10
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -329,6 +329,7 @@ declare namespace Components {
|
|
|
329
329
|
shop_details: IShopDetails;
|
|
330
330
|
delivery_ways: IDeliveryWays;
|
|
331
331
|
};
|
|
332
|
+
dimension: IDimension;
|
|
332
333
|
};
|
|
333
334
|
count: number;
|
|
334
335
|
price: number;
|
|
@@ -443,6 +444,12 @@ declare namespace Components {
|
|
|
443
444
|
status: ESellerStatus;
|
|
444
445
|
}
|
|
445
446
|
|
|
447
|
+
export interface IBalanceInfo {
|
|
448
|
+
balance: number;
|
|
449
|
+
total_turnover: number;
|
|
450
|
+
withdrawn: number;
|
|
451
|
+
}
|
|
452
|
+
|
|
446
453
|
export interface ISeller {
|
|
447
454
|
_id: string;
|
|
448
455
|
user_id: {
|
|
@@ -454,7 +461,7 @@ declare namespace Components {
|
|
|
454
461
|
banking_details: IBankingDetails;
|
|
455
462
|
shop_details: IShopDetails;
|
|
456
463
|
delivery_ways: IDeliveryWays;
|
|
457
|
-
|
|
464
|
+
balance_info: IBalanceInfo;
|
|
458
465
|
commission: number;
|
|
459
466
|
is_activated: boolean;
|
|
460
467
|
createdAt: Date;
|
|
@@ -582,6 +589,7 @@ declare namespace Components {
|
|
|
582
589
|
export interface IOrder {
|
|
583
590
|
sum: number;
|
|
584
591
|
weight: number;
|
|
592
|
+
user_id: string;
|
|
585
593
|
items: IOrderItem[];
|
|
586
594
|
seller_id: string;
|
|
587
595
|
receive_method: ERecieveMethod;
|
|
@@ -592,6 +600,8 @@ declare namespace Components {
|
|
|
592
600
|
preparation_date?: Date;
|
|
593
601
|
note?: string;
|
|
594
602
|
number?: number;
|
|
603
|
+
createdAt: Date;
|
|
604
|
+
updatedAt: Date;
|
|
595
605
|
}
|
|
596
606
|
|
|
597
607
|
export interface IMultiOrder {
|
|
@@ -599,6 +609,15 @@ declare namespace Components {
|
|
|
599
609
|
sum: number;
|
|
600
610
|
orders: string[];
|
|
601
611
|
number?: number;
|
|
612
|
+
status: EMultiOrderStatus;
|
|
613
|
+
createdAt: Date;
|
|
614
|
+
updatedAt: Date;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
export enum EMultiOrderStatus {
|
|
618
|
+
CANCELED = 'CANCELED',
|
|
619
|
+
PAID = 'PAID',
|
|
620
|
+
PENDING = 'PENDING',
|
|
602
621
|
}
|
|
603
622
|
|
|
604
623
|
export enum EComplaintsReason {
|
|
@@ -624,13 +643,6 @@ declare namespace Components {
|
|
|
624
643
|
reason: EComplaintsReason;
|
|
625
644
|
}
|
|
626
645
|
|
|
627
|
-
export interface IMultiOrder {
|
|
628
|
-
_id: string;
|
|
629
|
-
user_id: string;
|
|
630
|
-
sum: number;
|
|
631
|
-
order_number: number;
|
|
632
|
-
}
|
|
633
|
-
|
|
634
646
|
export interface IReview {
|
|
635
647
|
_id: string;
|
|
636
648
|
user_id: string;
|
|
@@ -690,9 +702,14 @@ declare namespace Components {
|
|
|
690
702
|
_id: string;
|
|
691
703
|
type: ESellerTransactionsType;
|
|
692
704
|
sum: number;
|
|
693
|
-
admin_id
|
|
694
|
-
|
|
705
|
+
admin_id?: string;
|
|
706
|
+
order_id: string;
|
|
695
707
|
comment?: string;
|
|
708
|
+
commission: number;
|
|
709
|
+
delivery_sum?: number;
|
|
710
|
+
seller_id: string;
|
|
711
|
+
createdAt: Date;
|
|
712
|
+
updatedAt: Date;
|
|
696
713
|
}
|
|
697
714
|
|
|
698
715
|
export interface ICreateSellerTransactions {
|