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

child plan metadata, tax exemption for non US/Canada regions #5949

Merged
merged 4 commits into from
Oct 23, 2024

Conversation

pjain1
Copy link
Member

@pjain1 pjain1 commented Oct 22, 2024

Fixes https://github.com/rilldata/rill-private-issues/issues/804

Also add support to Inherit plan metadata from parent plan. Orb automatically creates a child plan in case we override any pricing info, only one level nesting is done.

@pjain1 pjain1 self-assigned this Oct 22, 2024
@@ -279,6 +279,35 @@ func (o *Orb) IsInvoicePaid(ctx context.Context, invoice *Invoice) bool {
return strings.EqualFold(invoice.Status, "paid")
}

func (o *Orb) MarkCustomerTaxExempt(ctx context.Context, customerID string) error {
// note - hard coded to use Avalara tax provider as of now, Orb supports Avalara and TaxJar
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to make this configurable, if in future we change tax provider, not really urgent now ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know, what do you think?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made it configurable in case we want to disable it (manually managing it) or change at some point in future.

Configurable through RILL_ADMIN_ORB_INTEGRATED_TAX_PROVIDER, default is still avalara if not set for convenience as Kristen mentioned that this is going to be our tax provider going forward, can be set to none to disable.

@pjain1 pjain1 merged commit 207aa64 into main Oct 23, 2024
7 checks passed
@pjain1 pjain1 deleted the orb_improvments branch October 23, 2024 13:10
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