ggez-banking-sdk 0.0.66 → 0.0.68

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 { CustomField, SignUpInterface, SignUpWithGoogleInterface } from "../interfaces/signInterface";
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: CustomField[];
79
+ custom_field: string;
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: CustomField[];
191
+ custom_field: string;
192
192
  geo_coordinates: import("../interfaces").IGeoCoordinates;
193
193
  client_time_zone: string;
194
194
  result: any;
@@ -68,7 +68,7 @@ const Data = () => {
68
68
  };
69
69
  const dataSignUpApi = (values) => {
70
70
  const client = new clientjs_1.ClientJS();
71
- let customField = null;
71
+ let customField = [];
72
72
  if (values.referralCode && values.referralCodeType) {
73
73
  customField.push({
74
74
  type: enum_1.GGEZPromotionType.referral,
@@ -171,14 +171,14 @@ const Data = () => {
171
171
  },
172
172
  },
173
173
  ],
174
- custom_field: customField,
174
+ custom_field: JSON.stringify(customField),
175
175
  geo_coordinates: values.geoCoordinates,
176
176
  };
177
177
  return data;
178
178
  };
179
179
  const dataSignUpWithGoogle = (values) => {
180
180
  const client = new clientjs_1.ClientJS();
181
- let customField = null;
181
+ let customField = [];
182
182
  if (values.referralCode && values.referralCodeType) {
183
183
  customField.push({
184
184
  type: enum_1.GGEZPromotionType.referral,
@@ -287,7 +287,7 @@ const Data = () => {
287
287
  },
288
288
  },
289
289
  ],
290
- custom_field: customField,
290
+ custom_field: JSON.stringify(customField),
291
291
  geo_coordinates: values.geoCoordinates,
292
292
  client_time_zone: `UTC ${dayjs_1.default.tz(new Date()).format("Z")}`,
293
293
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.0.66",
3
+ "version": "0.0.68",
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",