@complycube/api
Version:
ComplyCube's Node.js library for the AML/KYC API
45 lines (44 loc) • 1.4 kB
TypeScript
import { AxiosInstance } from "axios";
import { Resource } from "../Resource";
export type AddressRequest = {
clientId?: string | null;
type?: string | null;
propertyNumber?: string | null;
buildingName?: string | null;
line?: string | null;
city?: string | null;
state?: string | null;
postalCode?: string | null;
country?: string | null;
fromDate?: string | null;
toDate?: string | null;
lastActionBy?: string | null;
};
export type Address = {
id: string;
clientId: string;
type: string;
propertyNumber?: string | null;
buildingName?: string | null;
line: string;
city: string;
state?: string | null;
postalCode?: string | null;
country: string;
fromDate?: string | null;
toDate?: string | null;
lastActionBy?: string | null;
createdAt: string;
updatedAt: string;
};
export declare class Addresses extends Resource<AddressRequest> {
constructor(axiosInstance: AxiosInstance);
create(clientId: string, addressRequest: AddressRequest): Promise<Address>;
get(id: string): Promise<Address>;
update(id: string, addressRequest: AddressRequest): Promise<Address>;
delete(id: string): Promise<void>;
list(clientId: string, { page, pageSize }?: {
page?: number;
pageSize?: number;
}): Promise<Address[]>;
}