ordersApi: {
    getAll: () => Promise<AxiosResponse<any, any, {}>>;
    getById: (id: number) => Promise<AxiosResponse<any, any, {}>>;
    checkout: (
        data: {
            email: string;
            phone: string;
            shipping_name: string;
            shipping_address_line1: string;
            shipping_address_line2?: string;
            shipping_postal_code: string;
            shipping_city: string;
            shipping_country?: string;
            use_shipping_for_billing?: boolean;
            billing_name?: string;
            billing_address_line1?: string;
            billing_address_line2?: string;
            billing_postal_code?: string;
            billing_city?: string;
            billing_country?: string;
            payment_method: string;
            customer_notes?: string;
        },
    ) => Promise<AxiosResponse<any, any, {}>>;
} = ...

Type declaration

  • getAll: () => Promise<AxiosResponse<any, any, {}>>
  • getById: (id: number) => Promise<AxiosResponse<any, any, {}>>
  • checkout: (
        data: {
            email: string;
            phone: string;
            shipping_name: string;
            shipping_address_line1: string;
            shipping_address_line2?: string;
            shipping_postal_code: string;
            shipping_city: string;
            shipping_country?: string;
            use_shipping_for_billing?: boolean;
            billing_name?: string;
            billing_address_line1?: string;
            billing_address_line2?: string;
            billing_postal_code?: string;
            billing_city?: string;
            billing_country?: string;
            payment_method: string;
            customer_notes?: string;
        },
    ) => Promise<AxiosResponse<any, any, {}>>