ggez-banking-sdk
Advanced tools
Comparing version 0.0.70 to 0.0.71
@@ -71,5 +71,5 @@ "use strict"; | ||
const client = new clientjs_1.ClientJS(); | ||
let customField = {}; | ||
let customField = []; | ||
if (values.referralCode && values.referralCodeType) { | ||
customField["referral"] = { | ||
customField.push({ | ||
type: enum_1.GGEZPromotionType.referral, | ||
@@ -80,10 +80,10 @@ referral_data: { | ||
}, | ||
}; | ||
}); | ||
} | ||
if (values.giftData) { | ||
customField["gift"] = { | ||
customField.push({ | ||
type: enum_1.GGEZPromotionType.gift, | ||
order_status: enum_1.OrderStatus.Pending, | ||
gift_data: values.giftData, | ||
}; | ||
}); | ||
} | ||
@@ -176,6 +176,6 @@ let data = { | ||
], | ||
custom_field: customField, | ||
custom_field: JSON.parse(JSON.stringify(customField)), | ||
geo_coordinates: values.geoCoordinates, | ||
}; | ||
console.log("dataSignUpApi ~ data:", data); | ||
console.log("dataSignUpApi ~ custom_field:", data); | ||
return data; | ||
@@ -294,3 +294,3 @@ }; | ||
], | ||
custom_field: customField, | ||
custom_field: JSON.parse(JSON.stringify(customField)), | ||
geo_coordinates: values.geoCoordinates, | ||
@@ -297,0 +297,0 @@ client_time_zone: `UTC ${dayjs_1.default.tz(new Date()).format("Z")}`, |
{ | ||
"name": "ggez-banking-sdk", | ||
"version": "0.0.70", | ||
"version": "0.0.71", | ||
"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,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
777242