@longvansoftware/storefront-js-client 2.2.7-beta.4 → 2.2.7-beta.5
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.
|
@@ -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
|
-
addCustomerIdIntoVoucher(
|
|
16
|
+
addCustomerIdIntoVoucher(customerId: string, voucherCode: string): Promise<any>;
|
|
17
17
|
}
|
|
@@ -139,7 +139,7 @@ class CampaignService extends serviceSDK_1.Service {
|
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
|
-
addCustomerIdIntoVoucher(
|
|
142
|
+
addCustomerIdIntoVoucher(customerId, voucherCode) {
|
|
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 = {
|