ggez-banking-sdk 0.5.34 → 0.5.36

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.
@@ -3,7 +3,6 @@ import { createDefaultUserData } from "./user";
3
3
  const fillCreateAddressData = (data) => {
4
4
  const address = {
5
5
  type: data.type,
6
- is_primary: data.isPrimary,
7
6
  address_line1: data.addressLine1,
8
7
  address_line2: data.addressLine2,
9
8
  country_code: data.countryCode,
@@ -8,7 +8,6 @@ const fillCreateBankAccountData = (data) => {
8
8
  currency_code: data.currencyCode,
9
9
  settlement_currency_code: data.settlementCurrency,
10
10
  type: BankAccountTypes.Personal_Checking,
11
- is_primary: data.isPrimary,
12
11
  number: data.number,
13
12
  swift_code: data.swiftCode,
14
13
  iban: data.iban,
@@ -3,7 +3,6 @@ import { createDefaultUserData } from "./user";
3
3
  const fillCreateEmailData = (data) => {
4
4
  const email = {
5
5
  address: data.address,
6
- is_primary: data.isPrimary || 0,
7
6
  };
8
7
  return createDefaultUserData({ email: [email] });
9
8
  };
@@ -3,7 +3,6 @@ import { createDefaultUserData } from "./user";
3
3
  const fillCreateIdentificationData = (data) => {
4
4
  const identification = {
5
5
  type: data.type,
6
- is_primary: data.isPrimary,
7
6
  country_of_issue: data.countryOfIssue,
8
7
  country_of_residence: data.countryOfResidence,
9
8
  issue_date: data.issueDate,
@@ -3,10 +3,10 @@ import { createDefaultUserData } from "./user";
3
3
  const fillCreatePhoneData = (data) => {
4
4
  const phone = {
5
5
  type: PhoneNumberTypes.Undefined,
6
- is_primary: data.isPrimary || 0,
7
6
  country_code: data.countryCode,
8
7
  number: data.number,
9
8
  verification_status: EntityVerificationStatus.Not_Verified,
9
+ is_primary: 0,
10
10
  };
11
11
  return createDefaultUserData({ phone: [phone] });
12
12
  };
@@ -1,6 +1,5 @@
1
1
  interface AddressData {
2
2
  type: number;
3
- isPrimary: number;
4
3
  addressLine1: string;
5
4
  addressLine2: string;
6
5
  countryCode: string;
@@ -12,7 +12,6 @@ interface IBankAccountData {
12
12
  institutionNumber: string;
13
13
  routingNumber: string;
14
14
  status?: string;
15
- isPrimary: number;
16
15
  beneficiaryType: string;
17
16
  userId: number;
18
17
  bankAddress: string;
@@ -1,6 +1,5 @@
1
1
  interface ICreateEmailData {
2
2
  address: string;
3
- isPrimary?: number;
4
3
  }
5
4
  interface IUpdateEmailData {
6
5
  id: number;
@@ -1,6 +1,5 @@
1
1
  interface IIdentificationData {
2
2
  type: number;
3
- isPrimary: number;
4
3
  countryOfIssue: string;
5
4
  countryOfResidence: string;
6
5
  issueDate: string;
@@ -1,6 +1,5 @@
1
1
  interface ICreatePhoneData {
2
2
  type?: string;
3
- isPrimary?: number;
4
3
  countryCode: string;
5
4
  number: string;
6
5
  }
@@ -51,3 +51,4 @@ export type * from "./virtualCardsContent";
51
51
  export type * from "./withdraw";
52
52
  export type * from "./withdrawMonthlyYearly";
53
53
  export type * from "./supportedCountriesExtended";
54
+ export type * from "./supportedCountryExtendedV2";
@@ -0,0 +1,12 @@
1
+ type SupportedCountryExtendedV2 = {
2
+ country_code: number;
3
+ currency_code: string;
4
+ currency_name: string;
5
+ iso_a2: string;
6
+ iso_a3: string;
7
+ country_name: string;
8
+ phone_code: string;
9
+ is_preferred: boolean;
10
+ supported_currencies: string[];
11
+ };
12
+ export type { SupportedCountryExtendedV2 };
@@ -1,3 +1,4 @@
1
+ import { SupportedCountriesByType } from ".";
1
2
  type Identification = {
2
3
  necessity_type: string;
3
4
  type: string;
@@ -7,5 +8,6 @@ type Identification = {
7
8
  show_type_on_signup_with_code_form: boolean;
8
9
  show_attach_id_on_signup_with_code_form: boolean;
9
10
  show_attach_selfie_on_signup_with_code_form: boolean;
11
+ supported_countries_by_type: SupportedCountriesByType[];
10
12
  };
11
13
  export type { Identification };
@@ -20,6 +20,7 @@ export type * from "./POSMobileSecurity";
20
20
  export type * from "./POSWorkingHour";
21
21
  export type * from "./RESTServiceOptions";
22
22
  export type * from "./salesSignupSettings";
23
+ export type * from "./supportedCountriesByType";
23
24
  export type * from "./userApplication";
24
25
  export type * from "./userApplication";
25
26
  export type * from "./userApplicationFeatures";
@@ -0,0 +1,5 @@
1
+ type SupportedCountriesByType = {
2
+ type: number;
3
+ supported_countries: string[];
4
+ };
5
+ export type { SupportedCountriesByType };
@@ -1,6 +1,6 @@
1
1
  import { BaseResult } from "../../common";
2
2
  import { PasswordSettings, TermsConditions, VerificationRequirements, UserSystemOptions, EcommerceSettings, ServiceSetup } from ".";
3
- import { Bin } from "../bin";
3
+ import { Bin, SupportedCountryExtendedV2 } from "../bin";
4
4
  import { UserApplication } from "./applicationOptions";
5
5
  import { ValidationServicesSettings } from "./validation";
6
6
  type SignupRequirements = BaseResult & {
@@ -17,5 +17,6 @@ type SignupRequirements = BaseResult & {
17
17
  user_application: UserApplication;
18
18
  validation_service_settings: ValidationServicesSettings[];
19
19
  apply_user_verification_requirements_to_organization_users: boolean;
20
+ supported_countries: SupportedCountryExtendedV2[];
20
21
  };
21
22
  export type { SignupRequirements };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.5.34",
3
+ "version": "0.5.36",
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
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",