@mivis/petmart-api 1.2.53 → 1.2.55

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 +52 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.53",
3
+ "version": "1.2.55",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
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;
@@ -461,6 +466,8 @@ declare namespace Components {
461
466
  _id: string;
462
467
  name: string;
463
468
  address: IShopAddress;
469
+ nearest_metro_station: string;
470
+ work_time: string;
464
471
  createdAt: Date;
465
472
  updatedAt: Date;
466
473
  }
@@ -566,6 +573,7 @@ declare namespace Components {
566
573
  }
567
574
  ];
568
575
  email: string;
576
+ delivery_sum: number;
569
577
  }
570
578
 
571
579
  export interface IPickUpPoint {
@@ -706,6 +714,50 @@ declare namespace Components {
706
714
  updatedAt: Date;
707
715
  }
708
716
 
717
+ export interface IPaymentCaptureResponse {
718
+ id: string;
719
+ status: string;
720
+ amount: {
721
+ value: string;
722
+ currency: string;
723
+ };
724
+ description: string;
725
+ captured_at: string;
726
+ created_at: string;
727
+ metadata: {
728
+ multiOrderId: string;
729
+ multiOrderNumber: string;
730
+ };
731
+ }
732
+
733
+ export type IConfirmationType = 'embedded' | 'external' | 'qr' | 'redirect';
734
+
735
+ export interface IConfirmation {
736
+ type: IConfirmationType;
737
+ locale?: string;
738
+ confirmation_token?: string;
739
+ confirmation_data?: string;
740
+ confirmation_url?: string;
741
+ enforce?: boolean;
742
+ return_url?: string;
743
+ }
744
+
745
+ export interface IPaymentResponse {
746
+ id: string;
747
+ status: string;
748
+ amount: {
749
+ value: string;
750
+ currency: string;
751
+ };
752
+ description: string;
753
+ created_at: string;
754
+ confirmation: IConfirmation;
755
+ metadata: {
756
+ multiOrderId: string;
757
+ multiOrderNumber: string;
758
+ };
759
+ }
760
+
709
761
  export enum EMultiOrderStatus {
710
762
  CANCELED = 'CANCELED',
711
763
  PAID = 'PAID',