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

feat(credit_notes): Expose credit notes in API #505

Merged
merged 6 commits into from
Oct 7, 2022

Conversation

vincent-pochet
Copy link
Collaborator

Context

The objective of this feature is to introduce a new concept of credit notes.

The main reason behind this need is to handle the following case:

  • If an overdue has been paid because a customer passes from a yearly plan to a monthly plan (in_advance), we charge the customer as if the remainder does not exist.

Description

This PR exposes two new API routes:

  • GET /credit_notes to retrieve the paginated list of credit note of an organization or of a specific customer
  • GET /credit_notes/:id to retrieve a specific credit notes

@vincent-pochet vincent-pochet added the Invoice Related to Invoices label Oct 3, 2022
@vincent-pochet vincent-pochet self-assigned this Oct 3, 2022
@vincent-pochet vincent-pochet force-pushed the feature/credit-notes-api branch from 84bbc17 to 6ff0b08 Compare October 3, 2022 12:49
@vincent-pochet vincent-pochet changed the title Feature/credit notes api feat(credit_notes): Expose credit notes in API Oct 3, 2022
@vincent-pochet vincent-pochet force-pushed the feature/credit-notes-api branch from dec2878 to fd41bbc Compare October 3, 2022 15:02
@vincent-pochet vincent-pochet marked this pull request as ready for review October 3, 2022 15:04
.rubocop.yml Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Invoice Related to Invoices
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants