@mamindom/contracts 1.0.169 → 1.0.171

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.
@@ -25,6 +25,7 @@ export interface ValidateAndCalculateResponse {
25
25
  appliedPromotions: AppliedPromotion[];
26
26
  appliedCoupon?: AppliedCoupon | undefined;
27
27
  errorMessage?: string | undefined;
28
+ couponError?: string | undefined;
28
29
  }
29
30
  export interface AppliedPromotion {
30
31
  promotionId: string;
@@ -92,6 +92,7 @@ export interface Cart {
92
92
  totals: CartTotals | undefined;
93
93
  updatedAt: number;
94
94
  expiresAt: number;
95
+ couponError?: string | undefined;
95
96
  }
96
97
  export interface WishlistItem {
97
98
  productId: string;
@@ -38,6 +38,8 @@ message ValidateAndCalculateResponse {
38
38
  optional AppliedCoupon applied_coupon = 5;
39
39
 
40
40
  optional string error_message = 6;
41
+
42
+ optional string coupon_error = 7;
41
43
  }
42
44
 
43
45
  message AppliedPromotion {
@@ -140,6 +140,7 @@ message Cart {
140
140
  CartTotals totals = 15;
141
141
  int64 updated_at = 16;
142
142
  int64 expires_at = 17;
143
+ optional string coupon_error = 18;
143
144
  }
144
145
 
145
146
  message WishlistItem {
@@ -37,6 +37,7 @@ export interface ValidateAndCalculateResponse {
37
37
  appliedPromotions: AppliedPromotion[];
38
38
  appliedCoupon?: AppliedCoupon | undefined;
39
39
  errorMessage?: string | undefined;
40
+ couponError?: string | undefined;
40
41
  }
41
42
 
42
43
  export interface AppliedPromotion {
package/gen/cart.ts CHANGED
@@ -111,6 +111,7 @@ export interface Cart {
111
111
  totals: CartTotals | undefined;
112
112
  updatedAt: number;
113
113
  expiresAt: number;
114
+ couponError?: string | undefined;
114
115
  }
115
116
 
116
117
  export interface WishlistItem {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mamindom/contracts",
3
3
  "description": "proto",
4
- "version": "1.0.169",
4
+ "version": "1.0.171",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
7
  "exports": {
@@ -38,6 +38,8 @@ message ValidateAndCalculateResponse {
38
38
  optional AppliedCoupon applied_coupon = 5;
39
39
 
40
40
  optional string error_message = 6;
41
+
42
+ optional string coupon_error = 7;
41
43
  }
42
44
 
43
45
  message AppliedPromotion {
package/proto/cart.proto CHANGED
@@ -140,6 +140,7 @@ message Cart {
140
140
  CartTotals totals = 15;
141
141
  int64 updated_at = 16;
142
142
  int64 expires_at = 17;
143
+ optional string coupon_error = 18;
143
144
  }
144
145
 
145
146
  message WishlistItem {