@mivis/petmart-api 1.2.53 → 1.2.54
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 +50 -0
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -338,6 +338,11 @@ declare namespace Components {
|
|
|
338
338
|
updatedAt: Date;
|
|
339
339
|
}
|
|
340
340
|
|
|
341
|
+
export interface ICreateCartResponse {
|
|
342
|
+
message?: string;
|
|
343
|
+
cartItem: ICart;
|
|
344
|
+
}
|
|
345
|
+
|
|
341
346
|
export interface ICategory {
|
|
342
347
|
_id: string;
|
|
343
348
|
name: string;
|
|
@@ -566,6 +571,7 @@ declare namespace Components {
|
|
|
566
571
|
}
|
|
567
572
|
];
|
|
568
573
|
email: string;
|
|
574
|
+
delivery_sum: number;
|
|
569
575
|
}
|
|
570
576
|
|
|
571
577
|
export interface IPickUpPoint {
|
|
@@ -706,6 +712,50 @@ declare namespace Components {
|
|
|
706
712
|
updatedAt: Date;
|
|
707
713
|
}
|
|
708
714
|
|
|
715
|
+
export interface IPaymentCaptureResponse {
|
|
716
|
+
id: string;
|
|
717
|
+
status: string;
|
|
718
|
+
amount: {
|
|
719
|
+
value: string;
|
|
720
|
+
currency: string;
|
|
721
|
+
};
|
|
722
|
+
description: string;
|
|
723
|
+
captured_at: string;
|
|
724
|
+
created_at: string;
|
|
725
|
+
metadata: {
|
|
726
|
+
multiOrderId: string;
|
|
727
|
+
multiOrderNumber: string;
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
export type IConfirmationType = 'embedded' | 'external' | 'qr' | 'redirect';
|
|
732
|
+
|
|
733
|
+
export interface IConfirmation {
|
|
734
|
+
type: IConfirmationType;
|
|
735
|
+
locale?: string;
|
|
736
|
+
confirmation_token?: string;
|
|
737
|
+
confirmation_data?: string;
|
|
738
|
+
confirmation_url?: string;
|
|
739
|
+
enforce?: boolean;
|
|
740
|
+
return_url?: string;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
export interface IPaymentResponse {
|
|
744
|
+
id: string;
|
|
745
|
+
status: string;
|
|
746
|
+
amount: {
|
|
747
|
+
value: string;
|
|
748
|
+
currency: string;
|
|
749
|
+
};
|
|
750
|
+
description: string;
|
|
751
|
+
created_at: string;
|
|
752
|
+
confirmation: IConfirmation;
|
|
753
|
+
metadata: {
|
|
754
|
+
multiOrderId: string;
|
|
755
|
+
multiOrderNumber: string;
|
|
756
|
+
};
|
|
757
|
+
}
|
|
758
|
+
|
|
709
759
|
export enum EMultiOrderStatus {
|
|
710
760
|
CANCELED = 'CANCELED',
|
|
711
761
|
PAID = 'PAID',
|