@platfformx/proto-contracts 1.6.2 → 1.6.4

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.
@@ -61,13 +61,13 @@ export interface ValidatePromocodeRequest {
61
61
  code: string;
62
62
  totalOrderSum: string;
63
63
  targetId?: string | undefined;
64
+ targetSum?: string | undefined;
64
65
  }
65
66
  export interface ValidatePromocodeResponse {
66
67
  isValid: boolean;
67
68
  discountAmount: string;
68
69
  errorMessage: string;
69
70
  discountType: DiscountType;
70
- discountValue: string;
71
71
  }
72
72
  export declare const PROMO_V1_PACKAGE_NAME = "promo.v1";
73
73
  export interface PromoServiceClient {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platfformx/proto-contracts",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -56,13 +56,13 @@ message ValidatePromocodeRequest {
56
56
  string code = 1;
57
57
  string total_order_sum = 2;
58
58
  optional string target_id = 3;
59
+ optional string target_sum = 4;
59
60
  }
60
61
  message ValidatePromocodeResponse {
61
62
  bool is_valid = 1;
62
63
  string discount_amount = 2;
63
64
  string error_message = 3;
64
65
  DiscountType discount_type = 4;
65
- string discount_value = 5;
66
66
  }
67
67
 
68
68
  enum TargetType {