Skip to content

Commit

Permalink
Merge pull request #526 from Shopify/2024-07
Browse files Browse the repository at this point in the history
Update to 2024-07
  • Loading branch information
davejcameron committed Jul 3, 2024
2 parents 3fec025 + b2e3899 commit 3edb36e
Show file tree
Hide file tree
Showing 66 changed files with 1,581 additions and 124 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2912,6 +2912,23 @@ type Input {
validation: Validation!
}

"""
A [JSON](https://www.json.org/json-en.html) object.
Example value:
`{
"product": {
"id": "gid://shopify/Product/1346443542550",
"title": "White T-shirt",
"options": [{
"name": "Size",
"values": ["M", "L"]
}]
}
}`
"""
scalar JSON

"""
A language.
"""
Expand Down Expand Up @@ -3866,14 +3883,19 @@ For more information about the Shopify resources that you can attach metafields
[HasMetafields](https://shopify.dev/api/admin/graphql/reference/common-objects/HasMetafields).
"""
type Metafield {
"""
The data stored in the metafield in JSON format.
"""
jsonValue: JSON!

"""
The type of data that the metafield stores in the `value` field.
Refer to the list of [supported types](https://shopify.dev/apps/metafields/types).
"""
type: String!

"""
The data to store in the metafield. The data is always stored as a string, regardless of the metafield's type.
The data stored in the metafield. Always stored as a string, regardless of the metafield's type.
"""
value: String!
}
Expand Down Expand Up @@ -4096,7 +4118,7 @@ type PurchasingCompany {
"""
Represents how products and variants can be sold and purchased.
"""
type SellingPlan {
type SellingPlan implements HasMetafields {
"""
The description of the selling plan.
"""
Expand All @@ -4107,6 +4129,21 @@ type SellingPlan {
"""
id: ID!

"""
Returns a metafield by namespace and key that belongs to the resource.
"""
metafield(
"""
The key for the metafield.
"""
key: String!

"""
The container the metafield belongs to. If omitted, the app-reserved namespace will be used.
"""
namespace: String
): Metafield

"""
The name of the selling plan. For example, '6 weeks of prepaid granola, delivered weekly'.
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api_version = "2024-04"
api_version = "2024-07"

[[extensions]]
name = "t:name"
Expand Down
41 changes: 39 additions & 2 deletions checkout/javascript/cart-transform/default/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2735,6 +2735,23 @@ type Input {
shop: Shop!
}

"""
A [JSON](https://www.json.org/json-en.html) object.
Example value:
`{
"product": {
"id": "gid://shopify/Product/1346443542550",
"title": "White T-shirt",
"options": [{
"name": "Size",
"values": ["M", "L"]
}]
}
}`
"""
scalar JSON

"""
A language.
"""
Expand Down Expand Up @@ -3649,14 +3666,19 @@ For more information about the Shopify resources that you can attach metafields
[HasMetafields](https://shopify.dev/api/admin/graphql/reference/common-objects/HasMetafields).
"""
type Metafield {
"""
The data stored in the metafield in JSON format.
"""
jsonValue: JSON!

"""
The type of data that the metafield stores in the `value` field.
Refer to the list of [supported types](https://shopify.dev/apps/metafields/types).
"""
type: String!

"""
The data to store in the metafield. The data is always stored as a string, regardless of the metafield's type.
The data stored in the metafield. Always stored as a string, regardless of the metafield's type.
"""
value: String!
}
Expand Down Expand Up @@ -3883,7 +3905,7 @@ type PurchasingCompany {
"""
Represents how products and variants can be sold and purchased.
"""
type SellingPlan {
type SellingPlan implements HasMetafields {
"""
The description of the selling plan.
"""
Expand All @@ -3894,6 +3916,21 @@ type SellingPlan {
"""
id: ID!

"""
Returns a metafield by namespace and key that belongs to the resource.
"""
metafield(
"""
The key for the metafield.
"""
key: String!

"""
The container the metafield belongs to. If omitted, the app-reserved namespace will be used.
"""
namespace: String
): Metafield

"""
The name of the selling plan. For example, '6 weeks of prepaid granola, delivered weekly'.
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api_version = "2024-04"
api_version = "2024-07"

[[extensions]]
name = "t:name"
Expand Down
41 changes: 39 additions & 2 deletions checkout/javascript/delivery-customization/default/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2778,6 +2778,23 @@ type Input {
shop: Shop!
}

"""
A [JSON](https://www.json.org/json-en.html) object.
Example value:
`{
"product": {
"id": "gid://shopify/Product/1346443542550",
"title": "White T-shirt",
"options": [{
"name": "Size",
"values": ["M", "L"]
}]
}
}`
"""
scalar JSON

"""
A language.
"""
Expand Down Expand Up @@ -3732,14 +3749,19 @@ For more information about the Shopify resources that you can attach metafields
[HasMetafields](https://shopify.dev/api/admin/graphql/reference/common-objects/HasMetafields).
"""
type Metafield {
"""
The data stored in the metafield in JSON format.
"""
jsonValue: JSON!

"""
The type of data that the metafield stores in the `value` field.
Refer to the list of [supported types](https://shopify.dev/apps/metafields/types).
"""
type: String!

"""
The data to store in the metafield. The data is always stored as a string, regardless of the metafield's type.
The data stored in the metafield. Always stored as a string, regardless of the metafield's type.
"""
value: String!
}
Expand Down Expand Up @@ -4002,7 +4024,7 @@ input RenameOperation {
"""
Represents how products and variants can be sold and purchased.
"""
type SellingPlan {
type SellingPlan implements HasMetafields {
"""
The description of the selling plan.
"""
Expand All @@ -4013,6 +4035,21 @@ type SellingPlan {
"""
id: ID!

"""
Returns a metafield by namespace and key that belongs to the resource.
"""
metafield(
"""
The key for the metafield.
"""
key: String!

"""
The container the metafield belongs to. If omitted, the app-reserved namespace will be used.
"""
namespace: String
): Metafield

"""
The name of the selling plan. For example, '6 weeks of prepaid granola, delivered weekly'.
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api_version = "2024-04"
api_version = "2024-07"

[[extensions]]
name = "t:name"
Expand Down
69 changes: 67 additions & 2 deletions checkout/javascript/payment-customization/default/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,11 @@ input HideOperation {
The identifier of the payment method to hide out.
"""
paymentMethodId: ID!

"""
Placement types to hide. If not provided, all placements will be hidden.
"""
placements: [PaymentCustomizationPaymentMethodPlacement!]
}

"""
Expand Down Expand Up @@ -2763,6 +2768,23 @@ type Input {
shop: Shop!
}

"""
A [JSON](https://www.json.org/json-en.html) object.
Example value:
`{
"product": {
"id": "gid://shopify/Product/1346443542550",
"title": "White T-shirt",
"options": [{
"name": "Size",
"values": ["M", "L"]
}]
}
}`
"""
scalar JSON

"""
A language.
"""
Expand Down Expand Up @@ -3717,14 +3739,19 @@ For more information about the Shopify resources that you can attach metafields
[HasMetafields](https://shopify.dev/api/admin/graphql/reference/common-objects/HasMetafields).
"""
type Metafield {
"""
The data stored in the metafield in JSON format.
"""
jsonValue: JSON!

"""
The type of data that the metafield stores in the `value` field.
Refer to the list of [supported types](https://shopify.dev/apps/metafields/types).
"""
type: String!

"""
The data to store in the metafield. The data is always stored as a string, regardless of the metafield's type.
The data stored in the metafield. Always stored as a string, regardless of the metafield's type.
"""
value: String!
}
Expand Down Expand Up @@ -3830,6 +3857,29 @@ type PaymentCustomizationPaymentMethod {
"""
id: ID!
name: String!

"""
Placements supported by this payment method.
Only available for API clients installed on a Shopify Plus store.
"""
placements: [PaymentCustomizationPaymentMethodPlacement!]!
}

"""
Describes how a payment method can be applied at checkout.
Only available for API clients installed on a Shopify Plus store.
"""
enum PaymentCustomizationPaymentMethodPlacement {
"""
Accelerated checkout button in the Express section of checkout. Payment method can be used to accelerate a
buyer through checkout by prefilling delivery and payment information.
"""
ACCELERATED_CHECKOUT

"""
Payment method can be selected from a list of available payment methods in the payment section of checkout.
"""
PAYMENT_METHOD
}

"""
Expand Down Expand Up @@ -4015,7 +4065,7 @@ input RenameOperation {
"""
Represents how products and variants can be sold and purchased.
"""
type SellingPlan {
type SellingPlan implements HasMetafields {
"""
The description of the selling plan.
"""
Expand All @@ -4026,6 +4076,21 @@ type SellingPlan {
"""
id: ID!

"""
Returns a metafield by namespace and key that belongs to the resource.
"""
metafield(
"""
The key for the metafield.
"""
key: String!

"""
The container the metafield belongs to. If omitted, the app-reserved namespace will be used.
"""
namespace: String
): Metafield

"""
The name of the selling plan. For example, '6 weeks of prepaid granola, delivered weekly'.
"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api_version = "2024-04"
api_version = "2024-07"

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

0 comments on commit 3edb36e

Please sign in to comment.