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 (tax-integrations): Use Anrok taxes in subscription invoices flow #2486

Merged
merged 9 commits into from
Aug 29, 2024

Commits on Aug 28, 2024

  1. Configuration menu
    Copy the full SHA
    b344d69 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    04e65d3 View commit details
    Browse the repository at this point in the history
  3. add specs

    lovrocolic committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    9180a34 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    36fdf19 View commit details
    Browse the repository at this point in the history
  5. Feat(anrok): add tax fetching and error processing on draft invoices (#…

    …2378)
    
    ## Context
    
    Added error processing on draft invoices, finalization of draft invoices
    with tax error details
    
    ## Description
    
    Added:
    - Fetch taxes from anrok/create_draft_invoice service if calculating
    fees and applying taxes for draft invoices
    - Fetch taxes from anrok/create_invoice service if calculating fees and
    applying taxes for draft invoices that is being finalized
    - From refresh_draft_and_finalize service if there was a tax error we
    now update invoice to failed state and do not send any notifications
    - Return from finalize_service if it was a tax_error while fetching
    taxes
    - Reset all invoice values when refreshing it - not only delete values,
    but also set 0 to computed values, so when we fail we have 0s instead of
    previous calculated values
    annvelents authored and lovrocolic committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    f177b72 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6d5e02e View commit details
    Browse the repository at this point in the history
  7. remove unnecessary save

    lovrocolic committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    a929f5a View commit details
    Browse the repository at this point in the history
  8. return validation_error when failing to refresh invoice (#2482)

    fail with validation failure when fail to refresh invoice
    annvelents authored and lovrocolic committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    2b04003 View commit details
    Browse the repository at this point in the history
  9. add missing spec

    lovrocolic committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    47dda19 View commit details
    Browse the repository at this point in the history