UNPKG

ggez-banking-sdk

Version:

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.

120 lines (119 loc) 3.33 kB
import { IEmail, IPhone, IAddresses, IResult, IGeoCoordinates } from "./interface"; export interface CreateOrganizationInterface { name: string; localName: string; organizationType: number; establishedDate: string; registrationNumber: string; tradeLicenseNumber: string; isBilling: number; addressLine1: string; addressLine2?: string; postalZipCode: string; countryCode: string; stateRegion: string; cityTown: string; geoCoordinates?: IGeoCoordinates | null; } export interface UpdateOrganizationInterface { name: string; localName: string; organizationType: number; status: number; verificationStatus: number; registrationNumber: string; tradeLicenseNumber: string; addressId: string; isBilling: number; addressLine1: string; addressLine2?: string; postalZipCode: string; countryCode: string; stateRegion: string; cityTown: string; geoCoordinates?: IGeoCoordinates | null; } export interface DeleteOrganizationInterface { } export interface CreateDocumentOrganizationInterface { subject: string; attachment: any; geoCoordinates?: IGeoCoordinates | null; } export interface IOrganization { result: IResult; info: IOrganizationInfo; details: IDetails; address: IAddresses[]; email?: IEmail[]; phone?: IPhone[]; social_media?: any[]; ownership_json?: string; classification?: any; working_hours?: any; json?: string; geo_coordinates?: IGeoCoordinates | null; history?: any[]; relationship?: IRelationship[]; documents?: IDocumentData[]; users?: any[]; accounts?: any[]; picture?: string[]; ExternalHostInfo?: any; ticket: any; } export interface IOrganizationInfo { id: number; program_id?: number; entity?: number | null; entity_id?: number | null; name: string; local_name: string; status?: number | null; verification_status?: number | null; type: number; server_date?: string | null; formatted_server_date?: string | null; date_utc?: string | null; formatted_date_utc?: string | null; client_date?: string | null; formatted_client_date?: string | null; source_time_zone?: string | null; source_id?: string | null; } export interface IDetails { established_date?: string | null; formatted_established_date?: string | null; size?: number | null; registration_number: string; trade_license_number: string; } export interface IRelationship { id?: number; entity?: number | null; entity_id?: number | null; entity_name?: string; entity_email?: string; entity_phone?: string; on_entity?: number | null; on_entity_id?: number | null; on_entity_name?: string; on_entity_email?: string; on_entity_phone?: string; type?: number | null; status?: number | null; verification_status?: number | null; order?: number | null; original_source_id: string; formatted_server_date: string; formatted_date_utc: string; formatted_client_date: string; formatted_update_date_utc: string; custom_field: Record<string, any>; } export interface IDocumentData { info?: any; attachment?: any[]; custom_field?: Record<string, any>; geo_coordinates?: any; }