@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.d.mts CHANGED
@@ -1706,6 +1706,7 @@ declare class CampaignApi extends BaseService {
1706
1706
  * @param params.addressKey - The address key of a user's address.
1707
1707
  * @param params.contactNumber - The contact number of the user.
1708
1708
  * @param params.options - Additional options for the redemption.
1709
+ * @param params.spPoint - Point Per Unit x Quantity (Donate only).
1709
1710
  * @param requestOptions - The options for the HTTP request.
1710
1711
  * @returns A promise that resolves to a service response containing the redeem response.
1711
1712
  */
@@ -1714,6 +1715,7 @@ declare class CampaignApi extends BaseService {
1714
1715
  addressKey?: string;
1715
1716
  contactNumber?: string;
1716
1717
  pointUnit?: string;
1718
+ spPoint?: number;
1717
1719
  options?: {
1718
1720
  [key: string]: unknown;
1719
1721
  };
@@ -1724,6 +1726,10 @@ declare class CampaignApi extends BaseService {
1724
1726
  * @param params - The parameters.
1725
1727
  * @param params.id - The ID of the campaign to redeem.
1726
1728
  * @param params.quantity - The quantity to redeem.
1729
+ * @param params.addressKey - The address key of a user's address.
1730
+ * @param params.contactNumber - The contact number of the user.
1731
+ * @param params.pointUnit - The point unit of the campaign.
1732
+ * @param params.spPoint - Point Per Unit x Quantity (Donate only).
1727
1733
  * @param params.options - Additional options for the redemption.
1728
1734
  * @param requestOptions - The options for the HTTP request.
1729
1735
  * @returns A promise that resolves to a service response containing the redeem response.
@@ -1731,6 +1737,10 @@ declare class CampaignApi extends BaseService {
1731
1737
  bulkRedeem(params: {
1732
1738
  id: string;
1733
1739
  quantity: number;
1740
+ addressKey?: string;
1741
+ contactNumber?: string;
1742
+ pointUnit?: string;
1743
+ spPoint?: number;
1734
1744
  options?: {
1735
1745
  [key: string]: unknown;
1736
1746
  };
package/dist/index.d.ts CHANGED
@@ -1706,6 +1706,7 @@ declare class CampaignApi extends BaseService {
1706
1706
  * @param params.addressKey - The address key of a user's address.
1707
1707
  * @param params.contactNumber - The contact number of the user.
1708
1708
  * @param params.options - Additional options for the redemption.
1709
+ * @param params.spPoint - Point Per Unit x Quantity (Donate only).
1709
1710
  * @param requestOptions - The options for the HTTP request.
1710
1711
  * @returns A promise that resolves to a service response containing the redeem response.
1711
1712
  */
@@ -1714,6 +1715,7 @@ declare class CampaignApi extends BaseService {
1714
1715
  addressKey?: string;
1715
1716
  contactNumber?: string;
1716
1717
  pointUnit?: string;
1718
+ spPoint?: number;
1717
1719
  options?: {
1718
1720
  [key: string]: unknown;
1719
1721
  };
@@ -1724,6 +1726,10 @@ declare class CampaignApi extends BaseService {
1724
1726
  * @param params - The parameters.
1725
1727
  * @param params.id - The ID of the campaign to redeem.
1726
1728
  * @param params.quantity - The quantity to redeem.
1729
+ * @param params.addressKey - The address key of a user's address.
1730
+ * @param params.contactNumber - The contact number of the user.
1731
+ * @param params.pointUnit - The point unit of the campaign.
1732
+ * @param params.spPoint - Point Per Unit x Quantity (Donate only).
1727
1733
  * @param params.options - Additional options for the redemption.
1728
1734
  * @param requestOptions - The options for the HTTP request.
1729
1735
  * @returns A promise that resolves to a service response containing the redeem response.
@@ -1731,6 +1737,10 @@ declare class CampaignApi extends BaseService {
1731
1737
  bulkRedeem(params: {
1732
1738
  id: string;
1733
1739
  quantity: number;
1740
+ addressKey?: string;
1741
+ contactNumber?: string;
1742
+ pointUnit?: string;
1743
+ spPoint?: number;
1734
1744
  options?: {
1735
1745
  [key: string]: unknown;
1736
1746
  };
package/dist/index.js CHANGED
@@ -884,6 +884,7 @@ var CampaignApi = class extends BaseService {
884
884
  * @param params.addressKey - The address key of a user's address.
885
885
  * @param params.contactNumber - The contact number of the user.
886
886
  * @param params.options - Additional options for the redemption.
887
+ * @param params.spPoint - Point Per Unit x Quantity (Donate only).
887
888
  * @param requestOptions - The options for the HTTP request.
888
889
  * @returns A promise that resolves to a service response containing the redeem response.
889
890
  */
@@ -894,7 +895,8 @@ var CampaignApi = class extends BaseService {
894
895
  __spreadValues({
895
896
  address_key: params.addressKey,
896
897
  contact_number: params.contactNumber,
897
- pointUnit: params.pointUnit
898
+ pointUnit: params.pointUnit,
899
+ sp_point: params.spPoint
898
900
  }, params.options),
899
901
  {
900
902
  headers: __spreadValues({
@@ -912,6 +914,10 @@ var CampaignApi = class extends BaseService {
912
914
  * @param params - The parameters.
913
915
  * @param params.id - The ID of the campaign to redeem.
914
916
  * @param params.quantity - The quantity to redeem.
917
+ * @param params.addressKey - The address key of a user's address.
918
+ * @param params.contactNumber - The contact number of the user.
919
+ * @param params.pointUnit - The point unit of the campaign.
920
+ * @param params.spPoint - Point Per Unit x Quantity (Donate only).
915
921
  * @param params.options - Additional options for the redemption.
916
922
  * @param requestOptions - The options for the HTTP request.
917
923
  * @returns A promise that resolves to a service response containing the redeem response.
@@ -921,7 +927,11 @@ var CampaignApi = class extends BaseService {
921
927
  return yield this.post(
922
928
  `campaign/${params.id}/bulkredeem`,
923
929
  __spreadValues({
924
- quantity: params.quantity
930
+ quantity: params.quantity,
931
+ address_key: params.addressKey,
932
+ contact_number: params.contactNumber,
933
+ pointUnit: params.pointUnit,
934
+ sp_point: params.spPoint
925
935
  }, params.options),
926
936
  requestOptions
927
937
  );