@longvansoftware/storefront-js-client 2.2.7-beta.10 → 2.2.7-beta.11

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.
@@ -8,12 +8,12 @@ const graphql_tag_1 = __importDefault(require("graphql-tag"));
8
8
  exports.ADD_CUSTOMER_ID_INTO_VOUCHER = (0, graphql_tag_1.default) `
9
9
  mutation AddCustomerToVoucher(
10
10
  $partyId: String!
11
- $campaignActionId: String!
11
+ $voucherCode: String!
12
12
  $userId: String!
13
13
  ) {
14
14
  addCustomerToVoucher(
15
15
  partyId: $partyId
16
- campaignActionId: $campaignActionId
16
+ voucherCode: $voucherCode
17
17
  userId: $userId
18
18
  ) {
19
19
  id
@@ -13,5 +13,5 @@ export declare class CampaignService extends Service {
13
13
  getCampaignActiveNow(campaignActionType: string, customerId: string): Promise<any>;
14
14
  getPromotionProductPrice(productId: String, productPrice: number): Promise<any>;
15
15
  getVoucherAvailableForCustomer(campaignId: string, customerId: string, excludeExpired: Boolean): Promise<any>;
16
- addCustomerToVoucher(campaignActionId: string, userId: string): Promise<any>;
16
+ addCustomerToVoucher(voucherCode: string, userId: string): Promise<any>;
17
17
  }
@@ -139,12 +139,12 @@ class CampaignService extends serviceSDK_1.Service {
139
139
  }
140
140
  });
141
141
  }
142
- addCustomerToVoucher(campaignActionId, userId) {
142
+ addCustomerToVoucher(voucherCode, userId) {
143
143
  return __awaiter(this, void 0, void 0, function* () {
144
144
  const query = mutations_1.ADD_CUSTOMER_ID_INTO_VOUCHER;
145
145
  const variables = {
146
146
  partyId: this.orgId,
147
- campaignActionId,
147
+ voucherCode,
148
148
  userId,
149
149
  };
150
150
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "2.2.7-beta.10",
3
+ "version": "2.2.7-beta.11",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [