Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 33 additions & 5 deletions functions-cart-checkout-validation-js/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ the subtotal before taxes and duties, the tax amount, and duty charges.
"""
type CartCost {
"""
The amount for the customer to pay at checkout, excluding taxes and discounts.
The amount, before taxes and cart-level discounts, for the customer to pay.
"""
subtotalAmount: MoneyV2!

Expand Down Expand Up @@ -342,7 +342,7 @@ type CartLine {
gift wrapping requests, or custom product details. Attributes are stored as key-value pairs.

Cart line attributes are equivalent to the
[`line_item`](https://shopify.dev/docs/apps/build/purchase-options/subscriptions/selling-plans)
[`line_item`](https://shopify.dev/docs/api/liquid/objects/line_item)
object in Liquid.
"""
attribute(
Expand All @@ -369,6 +369,12 @@ type CartLine {
"""
merchandise: Merchandise!

"""
The [nested relationship](https://shopify.dev/docs/apps/build/product-merchandising/nested-cart-lines)
between this line and its parent line, if any.
"""
parentRelationship: CartLineParentRelationship

"""
The quantity of the item that the customer intends to purchase.
"""
Expand All @@ -394,7 +400,7 @@ type CartLineCost {
amountPerQuantity: MoneyV2!

"""
The cost of a single unit before any discounts are applied. This field is used to calculate and display
The `compareAt` price of a single unit before any discounts are applied. This field is used to calculate and display
savings for customers. For example, if a product's `compareAtAmountPerQuantity` is $25 and its current price
is $20, then the customer sees a $5 discount. This value can change based on the buyer's identity and is
`null` when the value is hidden from buyers.
Expand All @@ -414,6 +420,16 @@ type CartLineCost {
totalAmount: MoneyV2!
}

"""
Represents the relationship between a cart line and its parent line.
"""
type CartLineParentRelationship {
"""
The parent line in the relationship.
"""
parent: CartLine!
}

"""
The fetch target result. Your Function must return this data structure when generating the request.
"""
Expand Down Expand Up @@ -594,6 +610,16 @@ type CompanyLocation implements HasMetafields {
"""
name: String!

"""
The number of orders placed at this company location.
"""
ordersCount: Int!

"""
The total amount spent at this company location.
"""
totalSpent: MoneyV2!

"""
The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601))
at which the company location was last modified.
Expand Down Expand Up @@ -2829,7 +2855,7 @@ type DeliverableCartLine {
gift wrapping requests, or custom product details. Attributes are stored as key-value pairs.

Cart line attributes are equivalent to the
[`line_item`](https://shopify.dev/docs/apps/build/purchase-options/subscriptions/selling-plans)
[`line_item`](https://shopify.dev/docs/api/liquid/objects/line_item)
object in Liquid.
"""
attribute(
Expand Down Expand Up @@ -4563,7 +4589,9 @@ type Metafield {
}

"""
A precise monetary value and its associated currency. For example, 12.99 USD.
A precise monetary value and its associated currency. Combines a decimal amount
with a three-letter currency code to express prices, costs, and other financial
values throughout the API. For example, 12.99 USD.
"""
type MoneyV2 {
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api_version = "2025-07"
api_version = "2026-01"

[[extensions]]
name = "t:name"
Expand Down
2 changes: 1 addition & 1 deletion functions-cart-checkout-validation-rs/Cargo.toml.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "1.0.0"
edition = "2021"

[dependencies]
shopify_function = "2.0.2"
shopify_function = "2.0.3"

[profile.release]
lto = true
Expand Down
38 changes: 33 additions & 5 deletions functions-cart-checkout-validation-rs/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ the subtotal before taxes and duties, the tax amount, and duty charges.
"""
type CartCost {
"""
The amount for the customer to pay at checkout, excluding taxes and discounts.
The amount, before taxes and cart-level discounts, for the customer to pay.
"""
subtotalAmount: MoneyV2!

Expand Down Expand Up @@ -342,7 +342,7 @@ type CartLine {
gift wrapping requests, or custom product details. Attributes are stored as key-value pairs.

Cart line attributes are equivalent to the
[`line_item`](https://shopify.dev/docs/apps/build/purchase-options/subscriptions/selling-plans)
[`line_item`](https://shopify.dev/docs/api/liquid/objects/line_item)
object in Liquid.
"""
attribute(
Expand All @@ -369,6 +369,12 @@ type CartLine {
"""
merchandise: Merchandise!

"""
The [nested relationship](https://shopify.dev/docs/apps/build/product-merchandising/nested-cart-lines)
between this line and its parent line, if any.
"""
parentRelationship: CartLineParentRelationship

"""
The quantity of the item that the customer intends to purchase.
"""
Expand All @@ -394,7 +400,7 @@ type CartLineCost {
amountPerQuantity: MoneyV2!

"""
The cost of a single unit before any discounts are applied. This field is used to calculate and display
The `compareAt` price of a single unit before any discounts are applied. This field is used to calculate and display
savings for customers. For example, if a product's `compareAtAmountPerQuantity` is $25 and its current price
is $20, then the customer sees a $5 discount. This value can change based on the buyer's identity and is
`null` when the value is hidden from buyers.
Expand All @@ -414,6 +420,16 @@ type CartLineCost {
totalAmount: MoneyV2!
}

"""
Represents the relationship between a cart line and its parent line.
"""
type CartLineParentRelationship {
"""
The parent line in the relationship.
"""
parent: CartLine!
}

"""
The fetch target result. Your Function must return this data structure when generating the request.
"""
Expand Down Expand Up @@ -594,6 +610,16 @@ type CompanyLocation implements HasMetafields {
"""
name: String!

"""
The number of orders placed at this company location.
"""
ordersCount: Int!

"""
The total amount spent at this company location.
"""
totalSpent: MoneyV2!

"""
The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601))
at which the company location was last modified.
Expand Down Expand Up @@ -2829,7 +2855,7 @@ type DeliverableCartLine {
gift wrapping requests, or custom product details. Attributes are stored as key-value pairs.

Cart line attributes are equivalent to the
[`line_item`](https://shopify.dev/docs/apps/build/purchase-options/subscriptions/selling-plans)
[`line_item`](https://shopify.dev/docs/api/liquid/objects/line_item)
object in Liquid.
"""
attribute(
Expand Down Expand Up @@ -4563,7 +4589,9 @@ type Metafield {
}

"""
A precise monetary value and its associated currency. For example, 12.99 USD.
A precise monetary value and its associated currency. Combines a decimal amount
with a three-letter currency code to express prices, costs, and other financial
values throughout the API. For example, 12.99 USD.
"""
type MoneyV2 {
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api_version = "2025-07"
api_version = "2026-01"

[[extensions]]
name = "t:name"
Expand Down
38 changes: 33 additions & 5 deletions functions-cart-checkout-validation-wasm/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ the subtotal before taxes and duties, the tax amount, and duty charges.
"""
type CartCost {
"""
The amount for the customer to pay at checkout, excluding taxes and discounts.
The amount, before taxes and cart-level discounts, for the customer to pay.
"""
subtotalAmount: MoneyV2!

Expand Down Expand Up @@ -342,7 +342,7 @@ type CartLine {
gift wrapping requests, or custom product details. Attributes are stored as key-value pairs.

Cart line attributes are equivalent to the
[`line_item`](https://shopify.dev/docs/apps/build/purchase-options/subscriptions/selling-plans)
[`line_item`](https://shopify.dev/docs/api/liquid/objects/line_item)
object in Liquid.
"""
attribute(
Expand All @@ -369,6 +369,12 @@ type CartLine {
"""
merchandise: Merchandise!

"""
The [nested relationship](https://shopify.dev/docs/apps/build/product-merchandising/nested-cart-lines)
between this line and its parent line, if any.
"""
parentRelationship: CartLineParentRelationship

"""
The quantity of the item that the customer intends to purchase.
"""
Expand All @@ -394,7 +400,7 @@ type CartLineCost {
amountPerQuantity: MoneyV2!

"""
The cost of a single unit before any discounts are applied. This field is used to calculate and display
The `compareAt` price of a single unit before any discounts are applied. This field is used to calculate and display
savings for customers. For example, if a product's `compareAtAmountPerQuantity` is $25 and its current price
is $20, then the customer sees a $5 discount. This value can change based on the buyer's identity and is
`null` when the value is hidden from buyers.
Expand All @@ -414,6 +420,16 @@ type CartLineCost {
totalAmount: MoneyV2!
}

"""
Represents the relationship between a cart line and its parent line.
"""
type CartLineParentRelationship {
"""
The parent line in the relationship.
"""
parent: CartLine!
}

"""
The fetch target result. Your Function must return this data structure when generating the request.
"""
Expand Down Expand Up @@ -594,6 +610,16 @@ type CompanyLocation implements HasMetafields {
"""
name: String!

"""
The number of orders placed at this company location.
"""
ordersCount: Int!

"""
The total amount spent at this company location.
"""
totalSpent: MoneyV2!

"""
The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601))
at which the company location was last modified.
Expand Down Expand Up @@ -2829,7 +2855,7 @@ type DeliverableCartLine {
gift wrapping requests, or custom product details. Attributes are stored as key-value pairs.

Cart line attributes are equivalent to the
[`line_item`](https://shopify.dev/docs/apps/build/purchase-options/subscriptions/selling-plans)
[`line_item`](https://shopify.dev/docs/api/liquid/objects/line_item)
object in Liquid.
"""
attribute(
Expand Down Expand Up @@ -4563,7 +4589,9 @@ type Metafield {
}

"""
A precise monetary value and its associated currency. For example, 12.99 USD.
A precise monetary value and its associated currency. Combines a decimal amount
with a three-letter currency code to express prices, costs, and other financial
values throughout the API. For example, 12.99 USD.
"""
type MoneyV2 {
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api_version = "2025-07"
api_version = "2026-01"

[[extensions]]
name = "t:name"
Expand Down
35 changes: 32 additions & 3 deletions functions-cart-transform-js/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ type CartLine {
gift wrapping requests, or custom product details. Attributes are stored as key-value pairs.

Cart line attributes are equivalent to the
[`line_item`](https://shopify.dev/docs/apps/build/purchase-options/subscriptions/selling-plans)
[`line_item`](https://shopify.dev/docs/api/liquid/objects/line_item)
object in Liquid.
"""
attribute(
Expand All @@ -186,6 +186,12 @@ type CartLine {
"""
merchandise: Merchandise!

"""
The [nested relationship](https://shopify.dev/docs/apps/build/product-merchandising/nested-cart-lines)
between this line and its parent line, if any.
"""
parentRelationship: CartLineParentRelationship

"""
The quantity of the item that the customer intends to purchase.
"""
Expand All @@ -211,7 +217,7 @@ type CartLineCost {
amountPerQuantity: MoneyV2!

"""
The cost of a single unit before any discounts are applied. This field is used to calculate and display
The `compareAt` price of a single unit before any discounts are applied. This field is used to calculate and display
savings for customers. For example, if a product's `compareAtAmountPerQuantity` is $25 and its current price
is $20, then the customer sees a $5 discount. This value can change based on the buyer's identity and is
`null` when the value is hidden from buyers.
Expand Down Expand Up @@ -245,6 +251,16 @@ input CartLineInput {
quantity: Int!
}

"""
Represents the relationship between a cart line and its parent line.
"""
type CartLineParentRelationship {
"""
The parent line in the relationship.
"""
parent: CartLine!
}

"""
An operation to apply to the cart. For example, you can expand a cart line item to display
its [bundled items](https://shopify.dev/docs/apps/build/product-merchandising/bundles), merge
Expand Down Expand Up @@ -481,6 +497,16 @@ type CompanyLocation implements HasMetafields {
"""
name: String!

"""
The number of orders placed at this company location.
"""
ordersCount: Int!

"""
The total amount spent at this company location.
"""
totalSpent: MoneyV2!

"""
The date and time ([ISO 8601 format](http://en.wikipedia.org/wiki/ISO_8601))
at which the company location was last modified.
Expand Down Expand Up @@ -3746,6 +3772,7 @@ input LineUpdateOperation {
"""
The image that replaces the existing image for the cart line item.
The image must have a publicly accessible URL.
This image is visible in checkout only and is not persisted to orders.
"""
image: ImageInput

Expand Down Expand Up @@ -4222,7 +4249,9 @@ type Metafield {
}

"""
A precise monetary value and its associated currency. For example, 12.99 USD.
A precise monetary value and its associated currency. Combines a decimal amount
with a three-letter currency code to express prices, costs, and other financial
values throughout the API. For example, 12.99 USD.
"""
type MoneyV2 {
"""
Expand Down
2 changes: 1 addition & 1 deletion functions-cart-transform-js/shopify.extension.toml.liquid
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api_version = "2025-07"
api_version = "2026-01"

[[extensions]]
name = "t:name"
Expand Down
Loading