woocommerce-rest-api-ts-lib
woocommerce-rest-api-ts-lib copied to clipboard
get('orders') accepts parameter "customer" instead of "customer_id"
The GET orders endpoint accepts a "customer" parameter instead of "customer_id". The typescript definitions need to reflect this.
I think this can most easily achieved by changing:
export type OrdersParams = Partial<Orders>;
to
export type OrdersParams = Partial<Omit<Orders, 'customer_id'> & {'customer': number}>;
Hi, @dmoebius, i have assigned you to this issue, if you have a chance to create a PR, would be very helpfull. Thank in advance.