pancake-client-sdk
Version:
Official TypeScript SDK for Pancake POS API
31 lines (30 loc) • 894 B
TypeScript
import { Customer, CustomerListParams, CreateCustomerRequest, CustomerAddress } from '../types/customer';
import { BaseResource } from './base';
export declare class CustomerResource extends BaseResource {
/**
* Get list of customers
*/
list(params?: CustomerListParams): Promise<{
data: Customer[];
}>;
/**
* Get customer by ID
*/
getById(customerId: string): Promise<Customer>;
/**
* Create new customer
*/
create(data: CreateCustomerRequest): Promise<Customer>;
/**
* Update customer
*/
update(customerId: string, data: Partial<Customer>): Promise<Customer>;
/**
* Add customer address
*/
addAddress(customerId: string, address: CustomerAddress): Promise<CustomerAddress>;
/**
* Get customer reward points history
*/
getRewardHistory(customerId: string): Promise<any>;
}