Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added support for itemCode when handling order/checkout calc taxes in AvaTax #1644

Merged
merged 6 commits into from
Nov 13, 2024

Conversation

krzysztofzuraw
Copy link
Member

Added AvaTax itemCode support when handling order or checkout calculate taxes webhooks. After this change app will send itemCode to Avalara based on Saleor variant SKU or variant id.

Order confirmed handling is not affected as it was already sending itemCode.

Scope of the PR

Related issues

Checklist

Copy link

changeset-bot bot commented Nov 12, 2024

🦋 Changeset detected

Latest commit: 2d439e4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
app-avatax Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Nov 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

6 Skipped Deployments
Name Status Preview Comments Updated (UTC)
saleor-app-avatax ⬜️ Ignored (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 0:59am
saleor-app-cms ⬜️ Ignored (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 0:59am
saleor-app-klaviyo ⬜️ Ignored (Inspect) Visit Preview Nov 13, 2024 0:59am
saleor-app-products-feed ⬜️ Ignored (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 0:59am
saleor-app-search ⬜️ Ignored (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 0:59am
saleor-app-smtp ⬜️ Ignored (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 0:59am

@vercel vercel bot temporarily deployed to Preview – saleor-app-klaviyo November 12, 2024 11:24 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-products-feed November 12, 2024 11:24 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-cms November 12, 2024 11:24 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-smtp November 12, 2024 11:24 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-search November 12, 2024 11:24 Inactive
witoszekdev
witoszekdev previously approved these changes Nov 12, 2024
}
if (line.__typename === "OrderLine") {
return line.orderProductVariant?.sku ?? line.orderProductVariant?.id ?? "";
}
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: let's add invariant if there's some other __typename:

Suggested change
}
}
throw new Error("Invariant: unknown line type")

Copy link
Member Author

Choose a reason for hiding this comment

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

Added in d76a9f3

@vercel vercel bot temporarily deployed to Preview – saleor-app-cms November 12, 2024 16:01 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-products-feed November 12, 2024 16:01 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-search November 12, 2024 16:01 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-smtp November 12, 2024 16:01 Inactive
@vercel vercel bot temporarily deployed to Preview – saleor-app-klaviyo November 12, 2024 16:01 Inactive
@krzysztofzuraw krzysztofzuraw enabled auto-merge (squash) November 13, 2024 12:57
@krzysztofzuraw krzysztofzuraw merged commit 96c3164 into main Nov 13, 2024
16 checks passed
@krzysztofzuraw krzysztofzuraw deleted the shopx-1568 branch November 13, 2024 14:29
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants