Skip to content
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

Merged
merged 3 commits into from
Dec 8, 2023
Merged

Conversation

vladpoltorin
Copy link
Contributor

  • Deprecated getCustomerInvoices method and introduced getCustomerInvoicesByName, which accepts all params for filtering and pagination
  • Codegen

…merInvoicesByName method.

This getCustomerInvoicesByName method accepts pagination and filter params
@vladpoltorin vladpoltorin self-assigned this Dec 7, 2023
/**
* @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.
*/
Copy link
Contributor Author

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

/**
* Get Customer's invoices.
*/
public getCustomerInvoicesByName(
Copy link
Contributor Author

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

Copy link
Contributor

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

Copy link
Contributor Author

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

@vladpoltorin vladpoltorin merged commit db106f9 into main Dec 8, 2023
1 check passed
@vladpoltorin vladpoltorin deleted the vlad/update-customer-invoices branch December 8, 2023 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants