@bzbs/react-api-client 1.2.1 → 1.2.2
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.
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -869,6 +869,9 @@ var CampaignApi = class extends BaseService {
|
|
|
869
869
|
* @param params - The parameters.
|
|
870
870
|
* @param params.id - The ID of the campaign to redeem.
|
|
871
871
|
* @param params.quantity - The quantity to redeem.
|
|
872
|
+
* @param params.addressKey - The address key of a user's address.
|
|
873
|
+
* @param params.contactNumber - The contact number of the user.
|
|
874
|
+
* @param params.pointUnit - The point unit of the campaign.
|
|
872
875
|
* @param params.options - Additional options for the redemption.
|
|
873
876
|
* @param requestOptions - The options for the HTTP request.
|
|
874
877
|
* @returns A promise that resolves to a service response containing the redeem response.
|
|
@@ -878,7 +881,10 @@ var CampaignApi = class extends BaseService {
|
|
|
878
881
|
return yield this.post(
|
|
879
882
|
`campaign/${params.id}/bulkredeem`,
|
|
880
883
|
__spreadValues({
|
|
881
|
-
quantity: params.quantity
|
|
884
|
+
quantity: params.quantity,
|
|
885
|
+
address_key: params.addressKey,
|
|
886
|
+
contact_number: params.contactNumber,
|
|
887
|
+
pointUnit: params.pointUnit
|
|
882
888
|
}, params.options),
|
|
883
889
|
requestOptions
|
|
884
890
|
);
|