UNPKG

@shopify/shopify-api

Version:

Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks

73 lines 2.63 kB
/*********************************************************************************************************************** * This file is auto-generated. If you have an issue, please create a GitHub issue. * ***********************************************************************************************************************/ import { Base, FindAllResponse } from '../../base'; import { ResourcePath, ResourceNames, Body } from '../../types'; import { Session } from '../../../lib/session/session'; import { ApiVersion } from '../../../lib/types'; interface FindArgs { session: Session; id: number | string; customer_id?: number | string | null; } interface DeleteArgs { session: Session; id: number | string; customer_id?: number | string | null; } interface AllArgs { [key: string]: unknown; session: Session; customer_id?: number | string | null; } interface DefaultArgs { [key: string]: unknown; body?: { [key: string]: unknown; } | null; } interface SetArgs { [key: string]: unknown; address_ids?: unknown[] | number | string | null; operation?: unknown; body?: { [key: string]: unknown; } | null; } export declare class CustomerAddress extends Base { static apiVersion: ApiVersion; protected static hasOne: { [key: string]: typeof Base; }; protected static hasMany: { [key: string]: typeof Base; }; protected static paths: ResourcePath[]; protected static resourceNames: ResourceNames[]; protected static getJsonBodyName(): string; protected setData(data: Body): void; static find({ session, id, customer_id }: FindArgs): Promise<CustomerAddress | null>; static delete({ session, id, customer_id }: DeleteArgs): Promise<unknown>; static all({ session, customer_id, ...otherArgs }: AllArgs): Promise<FindAllResponse<CustomerAddress>>; default({ body, ...otherArgs }: DefaultArgs): Promise<unknown>; set({ address_ids, operation, body, ...otherArgs }: SetArgs): Promise<unknown>; address1: string | null; address2: string | null; city: string | null; company: string | null; country: string | null; country_code: string | null; country_name: string | null; customer_id: string | null; first_name: string | null; id: string | null; is_default: boolean | null; last_name: string | null; name: string | null; phone: string | null; province: string | null; province_code: string | null; zip: string | null; } export {}; //# sourceMappingURL=customer_address.d.ts.map