ggez-banking-sdk 0.1.175 → 0.1.176

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.
@@ -12,7 +12,7 @@ declare class UserHelper {
12
12
  static ExtractDeviceData: (data: UserData | VerifySecurityData) => import("../types").Device;
13
13
  static FillPromotionData: (data: Pick<ICreateUserData, "giftData" | "referralCode" | "referralCodeType">) => {
14
14
  promotion_data: {
15
- gift_data?: ICreateUserData["giftData"];
15
+ gift_data?: ICreateUserData["giftData"][];
16
16
  referral_data?: {
17
17
  code: ICreateUserData["referralCode"];
18
18
  type: ICreateUserData["referralCodeType"];
@@ -138,7 +138,7 @@ class UserHelper {
138
138
  return;
139
139
  const customField = { promotion_data: {} };
140
140
  if (data.giftData) {
141
- customField.promotion_data.gift_data = data.giftData;
141
+ customField.promotion_data.gift_data = [data.giftData];
142
142
  }
143
143
  if (data.referralCode && data.referralCodeType) {
144
144
  customField.promotion_data.referral_data = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.1.175",
3
+ "version": "0.1.176",
4
4
  "description": "A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",