ggez-banking-sdk 0.0.70 → 0.0.71
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AddressType, AuthorizationOperationRequestType, BankAccountTypes, BankBeneficiaryType, CommerceProductSourceType, DeviceType, DocumentType, Entity, EntityStatus, OrderType, TransactionType, ValidateType } from "../constants/enum";
|
|
2
2
|
import { CreateDeviceInterface, UpdateDeviceInterface, DeleteDeviceInterface, VerifyDeviceInterface, ConfirmDeviceInterface, LogoutDeviceInterface } from "../interfaces/deviceInterface";
|
|
3
|
-
import {
|
|
3
|
+
import { SignUpInterface, SignUpWithGoogleInterface } from "../interfaces/signInterface";
|
|
4
4
|
import { DoTransactionInterface, GetTransactionInterface } from "../interfaces/accountInterface";
|
|
5
5
|
import { CreateAddressInterface, DeleteUserAddressInterface, MakeAddressPrimaryInterface, UpdateAddressInterface, CreateUserEmailInterface, DeleteUserEmailInterface, UpdateUserEmailInterface, ConfirmLimitedEmailInterface, MakePrimaryUserEmailInterface, VerifyLimitedEmailInterface, ConfirmLimitedPhoneInterface, CreateUserPhoneInterface, DeleteUserPhoneInterface, MakeUserPhonePrimaryInterface, UpdateUserPhoneInterface, VerifyLimitedPhoneInterface, CreateBankAccountInterFace, UpdateBankAccountInterFace, DeleteBankAccountInterFace, MakeBankAccountPrimaryInterFace, CreateIdentificationInterface, DeleteIdentificationInterface, UpdateIdentificationInterface, UpdatePersonalInfoInterface, UpdateProfilePictureInterface, ChangeUserSecurityCodeInterface, ResetPasswordInterface, ResetSecurityQuestionsInterface, UpdateUserPreferencesInterface, ValidateSecurityCodeInterface, ActivateGoogleAuthInterface, ValidateLimitedPhoneInterface, IsEmailPresentAndValidInterface, IsPhonePresentAndValidInterface, SendOTPPhoneInterface, SendOTPEmailInterface, CreateDocumentInterface, ForgetPasswordConfirmInterface, ForgetPasswordValidateInterface, DeleteGoogleAuthInterface } from "../interfaces/bankingSystemInterface";
|
|
6
6
|
import { IOrderInterface } from "../interfaces/transactionInterface";
|
|
@@ -76,7 +76,7 @@ declare const Data: () => {
|
|
|
76
76
|
user_agent: any;
|
|
77
77
|
};
|
|
78
78
|
}[];
|
|
79
|
-
custom_field:
|
|
79
|
+
custom_field: any;
|
|
80
80
|
geo_coordinates: import("../interfaces").IGeoCoordinates;
|
|
81
81
|
result: any;
|
|
82
82
|
addresses: any;
|
|
@@ -188,7 +188,7 @@ declare const Data: () => {
|
|
|
188
188
|
user_agent: any;
|
|
189
189
|
};
|
|
190
190
|
}[];
|
|
191
|
-
custom_field:
|
|
191
|
+
custom_field: any;
|
|
192
192
|
geo_coordinates: import("../interfaces").IGeoCoordinates;
|
|
193
193
|
client_time_zone: string;
|
|
194
194
|
result: 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
|
|
73
|
+
customField.push({
|
|
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
|
|
82
|
+
customField.push({
|
|
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,
|
|
@@ -171,10 +171,10 @@ const Data = () => {
|
|
|
171
171
|
},
|
|
172
172
|
},
|
|
173
173
|
],
|
|
174
|
-
custom_field: customField,
|
|
174
|
+
custom_field: JSON.parse(JSON.stringify(customField)),
|
|
175
175
|
geo_coordinates: values.geoCoordinates,
|
|
176
176
|
};
|
|
177
|
-
console.log("dataSignUpApi ~
|
|
177
|
+
console.log("dataSignUpApi ~ custom_field:", data);
|
|
178
178
|
return data;
|
|
179
179
|
};
|
|
180
180
|
const dataSignUpWithGoogle = (values) => {
|
|
@@ -288,7 +288,7 @@ const Data = () => {
|
|
|
288
288
|
},
|
|
289
289
|
},
|
|
290
290
|
],
|
|
291
|
-
custom_field: customField,
|
|
291
|
+
custom_field: JSON.parse(JSON.stringify(customField)),
|
|
292
292
|
geo_coordinates: values.geoCoordinates,
|
|
293
293
|
client_time_zone: `UTC ${dayjs_1.default.tz(new Date()).format("Z")}`,
|
|
294
294
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ggez-banking-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.71",
|
|
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",
|