-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vlad/update customer invoices #32
Conversation
…merInvoicesByName method. This getCustomerInvoicesByName method accepts pagination and filter params
/** | ||
* @deprecated Use `getCustomerInvoicesByName()` to fetch customer's invoices. | ||
* This method doesn't accept parameters to filter invoices and will be removed in the next major version. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
decided to deprecate this one, bc someone might use it
src/resources/customers.ts
Outdated
/** | ||
* Get Customer's invoices. | ||
*/ | ||
public getCustomerInvoicesByName( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll probs rename this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we extend the other one to take optional filter args for the other inputs?
If not, can we just call this getInvoices
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akshalaby it's better to leave an old method as deprecated, so I just renamed the method name
getCustomerInvoices
method and introducedgetCustomerInvoicesByName
, which accepts all params for filtering and pagination