-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Custom discount code provider #4350
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
Merged
Merged
Changes from 13 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
4e38b76
Add discount codes to the OpenAPI spec
devkiran cf72878
Update route.ts
devkiran cb79fc4
Add discount code update API, webhooks, and custom provider
devkiran ac7833f
Add custom discount code webhooks, update helper, and API tests
devkiran f86ca8a
Pass workspace into partner discount generation and add custom discou…
devkiran a0a1f75
Delete index.test.ts
devkiran 9588e86
Retry generated discount codes on unique conflicts and emit deleted w…
devkiran a5bf954
Send disable/delete discount-code webhooks for all providers and skip…
devkiran 42c9e8d
Remove discount code PATCH API and discount_code.updated webhook.
devkiran b7b34d1
Remove sendDiscountCodeWebhook
devkiran eaaecd2
Reset delete discount code confirmation when the modal closes.
devkiran 559db95
Fix remap treating null coupon IDs as equivalent and roll back provid…
devkiran a8ddc7f
Merge branch 'main' into customer-discount-provider
devkiran 8cea895
Update is-discount-equivalent.ts
devkiran 65da0d9
CR feedback
devkiran 2f83938
Merge branch 'main' into customer-discount-provider
steven-tey ceed609
Merge branch 'main' into customer-discount-provider
steven-tey 121cf1e
Merge branch 'main' into customer-discount-provider
steven-tey 0ff5c32
improve OpenAPI descriptions
steven-tey ab8dc97
discountId → idOrCode
steven-tey a418653
Keep create discount code optional in OpenAPI and treat empty strings…
devkiran f1e716c
Merge branch 'customer-discount-provider' of https://github.com/dubin…
devkiran 5cd20af
Cover deleting discount codes by id or alphanumeric code.
devkiran 83c1e2d
Merge branch 'main' into customer-discount-provider
devkiran 898a430
Merge branch 'main' into customer-discount-provider
devkiran File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 5 additions & 27 deletions
32
apps/web/app/(ee)/api/discount-codes/[discountCodeId]/route.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.