Skip to content

Conversation

@jonathanhamel4
Copy link
Contributor

The discount rejection tutorial uses the default Discount API to bundle the extension. This extension api version is set on 2025-04 which is not working for rejections which require 2026-01.

Tried those configs in DFT and they all built fine.

@jonathanhamel4 jonathanhamel4 requested review from a team and devisscher January 22, 2026 14:42
"""
type BuyerIdentity {
"""
The customer that's interacting with the cart. A customer is a buyer who has an
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Generated schema from shopify app function schema


```shell
cargo build --target=wasm32-wasip1 --release
cargo build --target=wasm32-unknown-unknown --release
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the new target to be used currently otherwise it wouldn't build on 2026-01. https://shopify.slack.com/archives/CLD1WMN03/p1762532329810509?thread_ts=1762531781.130489&cid=CLD1WMN03

@jonathanhamel4
Copy link
Contributor Author

Closing, this is no longer the source of truth for newer CLI versions. They now live in https://github.com/Shopify/extensions-templates/tree/main/functions-discount-rs and https://github.com/Shopify/extensions-templates/tree/main/functions-discount-js

I will create a PR in ttps://github.com/Shopify/extensions-templates

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