@bzbs/react-api-client 1.2.1 → 1.2.3

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.mjs CHANGED
@@ -841,6 +841,7 @@ var CampaignApi = class extends BaseService {
841
841
  * @param params.addressKey - The address key of a user's address.
842
842
  * @param params.contactNumber - The contact number of the user.
843
843
  * @param params.options - Additional options for the redemption.
844
+ * @param params.spPoint - Point Per Unit x Quantity (Donate only).
844
845
  * @param requestOptions - The options for the HTTP request.
845
846
  * @returns A promise that resolves to a service response containing the redeem response.
846
847
  */
@@ -851,7 +852,8 @@ var CampaignApi = class extends BaseService {
851
852
  __spreadValues({
852
853
  address_key: params.addressKey,
853
854
  contact_number: params.contactNumber,
854
- pointUnit: params.pointUnit
855
+ pointUnit: params.pointUnit,
856
+ sp_point: params.spPoint
855
857
  }, params.options),
856
858
  {
857
859
  headers: __spreadValues({
@@ -869,6 +871,10 @@ var CampaignApi = class extends BaseService {
869
871
  * @param params - The parameters.
870
872
  * @param params.id - The ID of the campaign to redeem.
871
873
  * @param params.quantity - The quantity to redeem.
874
+ * @param params.addressKey - The address key of a user's address.
875
+ * @param params.contactNumber - The contact number of the user.
876
+ * @param params.pointUnit - The point unit of the campaign.
877
+ * @param params.spPoint - Point Per Unit x Quantity (Donate only).
872
878
  * @param params.options - Additional options for the redemption.
873
879
  * @param requestOptions - The options for the HTTP request.
874
880
  * @returns A promise that resolves to a service response containing the redeem response.
@@ -878,7 +884,11 @@ var CampaignApi = class extends BaseService {
878
884
  return yield this.post(
879
885
  `campaign/${params.id}/bulkredeem`,
880
886
  __spreadValues({
881
- quantity: params.quantity
887
+ quantity: params.quantity,
888
+ address_key: params.addressKey,
889
+ contact_number: params.contactNumber,
890
+ pointUnit: params.pointUnit,
891
+ sp_point: params.spPoint
882
892
  }, params.options),
883
893
  requestOptions
884
894
  );