ggez-banking-sdk 0.5.32 → 0.5.34

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,6 +3,7 @@ import { createDefaultUserData } from "./user";
3
3
  const fillCreateAddressData = (data) => {
4
4
  const address = {
5
5
  type: data.type,
6
+ is_primary: data.isPrimary,
6
7
  address_line1: data.addressLine1,
7
8
  address_line2: data.addressLine2,
8
9
  country_code: data.countryCode,
@@ -8,6 +8,7 @@ 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,
11
12
  number: data.number,
12
13
  swift_code: data.swiftCode,
13
14
  iban: data.iban,
@@ -3,7 +3,7 @@ import { createDefaultUserData } from "./user";
3
3
  const fillCreateEmailData = (data) => {
4
4
  const email = {
5
5
  address: data.address,
6
- is_primary: 0,
6
+ is_primary: data.isPrimary || 0,
7
7
  };
8
8
  return createDefaultUserData({ email: [email] });
9
9
  };
@@ -3,6 +3,7 @@ import { createDefaultUserData } from "./user";
3
3
  const fillCreateIdentificationData = (data) => {
4
4
  const identification = {
5
5
  type: data.type,
6
+ is_primary: data.isPrimary,
6
7
  country_of_issue: data.countryOfIssue,
7
8
  country_of_residence: data.countryOfResidence,
8
9
  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,
6
7
  country_code: data.countryCode,
7
8
  number: data.number,
8
9
  verification_status: EntityVerificationStatus.Not_Verified,
9
- is_primary: 0,
10
10
  };
11
11
  return createDefaultUserData({ phone: [phone] });
12
12
  };
@@ -1,5 +1,6 @@
1
1
  interface AddressData {
2
2
  type: number;
3
+ isPrimary: number;
3
4
  addressLine1: string;
4
5
  addressLine2: string;
5
6
  countryCode: string;
@@ -12,7 +12,7 @@ interface IBankAccountData {
12
12
  institutionNumber: string;
13
13
  routingNumber: string;
14
14
  status?: string;
15
- isPrimary: string;
15
+ isPrimary: number;
16
16
  beneficiaryType: string;
17
17
  userId: number;
18
18
  bankAddress: string;
@@ -1,5 +1,6 @@
1
1
  interface ICreateEmailData {
2
2
  address: string;
3
+ isPrimary?: number;
3
4
  }
4
5
  interface IUpdateEmailData {
5
6
  id: number;
@@ -1,5 +1,6 @@
1
1
  interface IIdentificationData {
2
2
  type: number;
3
+ isPrimary: number;
3
4
  countryOfIssue: string;
4
5
  countryOfResidence: string;
5
6
  issueDate: string;
@@ -1,5 +1,6 @@
1
1
  interface ICreatePhoneData {
2
2
  type?: string;
3
+ isPrimary?: number;
3
4
  countryCode: string;
4
5
  number: string;
5
6
  }
@@ -1,5 +1,5 @@
1
1
  import { BaseResult } from "../../common";
2
- import { PasswordSettings, TermsConditions, VerificationRequirements, UserSystemOptions, EcommerceSettings, Payment } from ".";
2
+ import { PasswordSettings, TermsConditions, VerificationRequirements, UserSystemOptions, EcommerceSettings, ServiceSetup } from ".";
3
3
  import { Bin } from "../bin";
4
4
  import { UserApplication } from "./applicationOptions";
5
5
  import { ValidationServicesSettings } from "./validation";
@@ -11,7 +11,7 @@ type SignupRequirements = BaseResult & {
11
11
  verification_requirements: VerificationRequirements;
12
12
  organization_business_verification_requirements: VerificationRequirements;
13
13
  organization_individual_group_verification_requirements: VerificationRequirements;
14
- service_setup: Payment[];
14
+ service_setup: ServiceSetup;
15
15
  user_system_options: UserSystemOptions;
16
16
  ecommerce_settings: EcommerceSettings;
17
17
  user_application: UserApplication;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.5.32",
3
+ "version": "0.5.34",
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",