ggez-banking-sdk 0.0.69 → 0.0.70

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.
@@ -76,7 +76,7 @@ declare const Data: () => {
76
76
  user_agent: any;
77
77
  };
78
78
  }[];
79
- custom_field: CustomField[];
79
+ custom_field: Record<string, CustomField>;
80
80
  geo_coordinates: import("../interfaces").IGeoCoordinates;
81
81
  result: any;
82
82
  addresses: any;
@@ -68,22 +68,22 @@ 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"] = {
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({
82
+ customField["gift"] = {
83
83
  type: enum_1.GGEZPromotionType.gift,
84
84
  order_status: enum_1.OrderStatus.Pending,
85
85
  gift_data: values.giftData,
86
- });
86
+ };
87
87
  }
88
88
  let data = {
89
89
  ...data_1.userData,
@@ -174,6 +174,7 @@ const Data = () => {
174
174
  custom_field: customField,
175
175
  geo_coordinates: values.geoCoordinates,
176
176
  };
177
+ console.log("dataSignUpApi ~ data:", data);
177
178
  return data;
178
179
  };
179
180
  const dataSignUpWithGoogle = (values) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.0.69",
3
+ "version": "0.0.70",
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",