ggez-banking-sdk 0.0.71 → 0.0.72

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.
@@ -68,22 +68,24 @@ const Data = () => {
68
68
  };
69
69
  const dataSignUpApi = (values) => {
70
70
  const client = new clientjs_1.ClientJS();
71
- let customField = [];
71
+ let customField = {};
72
72
  if (values.referralCode && values.referralCodeType) {
73
- customField.push({
73
+ customField["referral_data"] = {
74
74
  type: enum_1.GGEZPromotionType.referral,
75
75
  referral_data: {
76
76
  referral_code: values.referralCode,
77
77
  type: +values.referralCodeType,
78
78
  },
79
- });
79
+ };
80
80
  }
81
81
  if (values.giftData) {
82
- customField.push({
83
- type: enum_1.GGEZPromotionType.gift,
84
- order_status: enum_1.OrderStatus.Pending,
85
- gift_data: values.giftData,
86
- });
82
+ customField["gift_data"] = [
83
+ {
84
+ type: enum_1.GGEZPromotionType.gift,
85
+ order_status: enum_1.OrderStatus.Pending,
86
+ gift_data: values.giftData,
87
+ },
88
+ ];
87
89
  }
88
90
  let data = {
89
91
  ...data_1.userData,
@@ -179,22 +181,24 @@ const Data = () => {
179
181
  };
180
182
  const dataSignUpWithGoogle = (values) => {
181
183
  const client = new clientjs_1.ClientJS();
182
- let customField = [];
184
+ let customField = {};
183
185
  if (values.referralCode && values.referralCodeType) {
184
- customField.push({
186
+ customField["referral_data"] = {
185
187
  type: enum_1.GGEZPromotionType.referral,
186
188
  referral_data: {
187
189
  referral_code: values.referralCode,
188
190
  type: +values.referralCodeType,
189
191
  },
190
- });
192
+ };
191
193
  }
192
194
  if (values.giftData) {
193
- customField.push({
194
- type: enum_1.GGEZPromotionType.gift,
195
- order_status: enum_1.OrderStatus.Pending,
196
- gift_data: values.giftData,
197
- });
195
+ customField["gift_data"] = [
196
+ {
197
+ type: enum_1.GGEZPromotionType.gift,
198
+ order_status: enum_1.OrderStatus.Pending,
199
+ gift_data: values.giftData,
200
+ },
201
+ ];
198
202
  }
199
203
  let data = {
200
204
  ...data_1.userData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.0.71",
3
+ "version": "0.0.72",
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
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",