Skip to content

Commit 610edf2

Browse files
authored
Merge pull request #411 from Shopify/update-payment-customization-schema-to-2024-01
Update payment customization schema to 2024-01 version
2 parents 3b0f4db + 577d3f0 commit 610edf2

File tree

10 files changed

+110
-25
lines changed

10 files changed

+110
-25
lines changed

checkout/javascript/payment-customization/default/schema.graphql

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema {
44
}
55

66
"""
7-
Exactly one field of input must be provided, and all others omitted.
7+
Requires that exactly one field must be supplied and that field must not be `null`.
88
"""
99
directive @oneOf on INPUT_OBJECT
1010

@@ -175,7 +175,7 @@ type CartDeliveryOption {
175175
"""
176176
The unique identifier of the delivery option.
177177
"""
178-
handle: String!
178+
handle: Handle!
179179

180180
"""
181181
The title of the delivery option.
@@ -2500,6 +2500,11 @@ type Customer implements HasMetafields {
25002500
"""
25012501
email: String
25022502

2503+
"""
2504+
The customer's first name.
2505+
"""
2506+
firstName: String
2507+
25032508
"""
25042509
Whether the customer has any of the given tags.
25052510
"""
@@ -2525,6 +2530,11 @@ type Customer implements HasMetafields {
25252530
"""
25262531
id: ID!
25272532

2533+
"""
2534+
The customer's last name.
2535+
"""
2536+
lastName: String
2537+
25282538
"""
25292539
Returns a metafield by namespace and key that belongs to the resource.
25302540
"""
@@ -2662,6 +2672,13 @@ input FunctionRunResult {
26622672
operations: [Operation!]!
26632673
}
26642674

2675+
"""
2676+
A function-scoped handle to a refer a resource.
2677+
The Handle type appears in a JSON response as a String, but it is not intended to be human-readable.
2678+
Example value: `"10079785100"`
2679+
"""
2680+
scalar Handle
2681+
26652682
"""
26662683
Represents information about the metafields associated to the specified resource.
26672684
"""
@@ -3634,7 +3651,7 @@ type Market implements HasMetafields {
36343651
"""
36353652
A human-readable unique string for the market automatically generated from its title.
36363653
"""
3637-
handle: String!
3654+
handle: Handle!
36383655

36393656
"""
36403657
A globally-unique identifier.
@@ -3823,7 +3840,7 @@ type Product implements HasMetafields {
38233840
"""
38243841
A unique human-friendly string of the product's title.
38253842
"""
3826-
handle: String!
3843+
handle: Handle!
38273844

38283845
"""
38293846
Whether the product has any of the given tags.

checkout/javascript/payment-customization/default/shopify.extension.toml.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
api_version = "2023-10"
1+
api_version = "2024-01"
22

33
[[extensions]]
44
handle = "{{handle}}"

checkout/rust/payment-customization/default/schema.graphql

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema {
44
}
55

66
"""
7-
Exactly one field of input must be provided, and all others omitted.
7+
Requires that exactly one field must be supplied and that field must not be `null`.
88
"""
99
directive @oneOf on INPUT_OBJECT
1010

@@ -175,7 +175,7 @@ type CartDeliveryOption {
175175
"""
176176
The unique identifier of the delivery option.
177177
"""
178-
handle: String!
178+
handle: Handle!
179179

180180
"""
181181
The title of the delivery option.
@@ -2500,6 +2500,11 @@ type Customer implements HasMetafields {
25002500
"""
25012501
email: String
25022502

2503+
"""
2504+
The customer's first name.
2505+
"""
2506+
firstName: String
2507+
25032508
"""
25042509
Whether the customer has any of the given tags.
25052510
"""
@@ -2525,6 +2530,11 @@ type Customer implements HasMetafields {
25252530
"""
25262531
id: ID!
25272532

2533+
"""
2534+
The customer's last name.
2535+
"""
2536+
lastName: String
2537+
25282538
"""
25292539
Returns a metafield by namespace and key that belongs to the resource.
25302540
"""
@@ -2662,6 +2672,13 @@ input FunctionRunResult {
26622672
operations: [Operation!]!
26632673
}
26642674

2675+
"""
2676+
A function-scoped handle to a refer a resource.
2677+
The Handle type appears in a JSON response as a String, but it is not intended to be human-readable.
2678+
Example value: `"10079785100"`
2679+
"""
2680+
scalar Handle
2681+
26652682
"""
26662683
Represents information about the metafields associated to the specified resource.
26672684
"""
@@ -3634,7 +3651,7 @@ type Market implements HasMetafields {
36343651
"""
36353652
A human-readable unique string for the market automatically generated from its title.
36363653
"""
3637-
handle: String!
3654+
handle: Handle!
36383655

36393656
"""
36403657
A globally-unique identifier.
@@ -3823,7 +3840,7 @@ type Product implements HasMetafields {
38233840
"""
38243841
A unique human-friendly string of the product's title.
38253842
"""
3826-
handle: String!
3843+
handle: Handle!
38273844

38283845
"""
38293846
Whether the product has any of the given tags.

checkout/rust/payment-customization/default/shopify.extension.toml.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
api_version = "2023-10"
1+
api_version = "2024-01"
22

33
[[extensions]]
44
handle = "{{handle}}"

checkout/wasm/payment-customization/default/schema.graphql

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema {
44
}
55

66
"""
7-
Exactly one field of input must be provided, and all others omitted.
7+
Requires that exactly one field must be supplied and that field must not be `null`.
88
"""
99
directive @oneOf on INPUT_OBJECT
1010

@@ -175,7 +175,7 @@ type CartDeliveryOption {
175175
"""
176176
The unique identifier of the delivery option.
177177
"""
178-
handle: String!
178+
handle: Handle!
179179

180180
"""
181181
The title of the delivery option.
@@ -2500,6 +2500,11 @@ type Customer implements HasMetafields {
25002500
"""
25012501
email: String
25022502

2503+
"""
2504+
The customer's first name.
2505+
"""
2506+
firstName: String
2507+
25032508
"""
25042509
Whether the customer has any of the given tags.
25052510
"""
@@ -2525,6 +2530,11 @@ type Customer implements HasMetafields {
25252530
"""
25262531
id: ID!
25272532

2533+
"""
2534+
The customer's last name.
2535+
"""
2536+
lastName: String
2537+
25282538
"""
25292539
Returns a metafield by namespace and key that belongs to the resource.
25302540
"""
@@ -2662,6 +2672,13 @@ input FunctionRunResult {
26622672
operations: [Operation!]!
26632673
}
26642674

2675+
"""
2676+
A function-scoped handle to a refer a resource.
2677+
The Handle type appears in a JSON response as a String, but it is not intended to be human-readable.
2678+
Example value: `"10079785100"`
2679+
"""
2680+
scalar Handle
2681+
26652682
"""
26662683
Represents information about the metafields associated to the specified resource.
26672684
"""
@@ -3634,7 +3651,7 @@ type Market implements HasMetafields {
36343651
"""
36353652
A human-readable unique string for the market automatically generated from its title.
36363653
"""
3637-
handle: String!
3654+
handle: Handle!
36383655

36393656
"""
36403657
A globally-unique identifier.
@@ -3823,7 +3840,7 @@ type Product implements HasMetafields {
38233840
"""
38243841
A unique human-friendly string of the product's title.
38253842
"""
3826-
handle: String!
3843+
handle: Handle!
38273844

38283845
"""
38293846
Whether the product has any of the given tags.

checkout/wasm/payment-customization/default/shopify.extension.toml.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
api_version = "2023-10"
1+
api_version = "2024-01"
22

33
[[extensions]]
44
handle = "{{handle}}"

sample-apps/payment-customizations/extensions/payment-customization-js/schema.graphql

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema {
44
}
55

66
"""
7-
Exactly one field of input must be provided, and all others omitted.
7+
Requires that exactly one field must be supplied and that field must not be `null`.
88
"""
99
directive @oneOf on INPUT_OBJECT
1010

@@ -175,7 +175,7 @@ type CartDeliveryOption {
175175
"""
176176
The unique identifier of the delivery option.
177177
"""
178-
handle: String!
178+
handle: Handle!
179179

180180
"""
181181
The title of the delivery option.
@@ -2500,6 +2500,11 @@ type Customer implements HasMetafields {
25002500
"""
25012501
email: String
25022502

2503+
"""
2504+
The customer's first name.
2505+
"""
2506+
firstName: String
2507+
25032508
"""
25042509
Whether the customer has any of the given tags.
25052510
"""
@@ -2525,6 +2530,11 @@ type Customer implements HasMetafields {
25252530
"""
25262531
id: ID!
25272532

2533+
"""
2534+
The customer's last name.
2535+
"""
2536+
lastName: String
2537+
25282538
"""
25292539
Returns a metafield by namespace and key that belongs to the resource.
25302540
"""
@@ -2662,6 +2672,13 @@ input FunctionRunResult {
26622672
operations: [Operation!]!
26632673
}
26642674

2675+
"""
2676+
A function-scoped handle to a refer a resource.
2677+
The Handle type appears in a JSON response as a String, but it is not intended to be human-readable.
2678+
Example value: `"10079785100"`
2679+
"""
2680+
scalar Handle
2681+
26652682
"""
26662683
Represents information about the metafields associated to the specified resource.
26672684
"""
@@ -3634,7 +3651,7 @@ type Market implements HasMetafields {
36343651
"""
36353652
A human-readable unique string for the market automatically generated from its title.
36363653
"""
3637-
handle: String!
3654+
handle: Handle!
36383655

36393656
"""
36403657
A globally-unique identifier.
@@ -3823,7 +3840,7 @@ type Product implements HasMetafields {
38233840
"""
38243841
A unique human-friendly string of the product's title.
38253842
"""
3826-
handle: String!
3843+
handle: Handle!
38273844

38283845
"""
38293846
Whether the product has any of the given tags.

sample-apps/payment-customizations/extensions/payment-customization-js/shopify.extension.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
api_version = "2023-10"
1+
api_version = "2024-01"
22

33
[[extensions]]
44
handle = "payment-customization-js"

sample-apps/payment-customizations/extensions/payment-customization-rust/schema.graphql

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ schema {
44
}
55

66
"""
7-
Exactly one field of input must be provided, and all others omitted.
7+
Requires that exactly one field must be supplied and that field must not be `null`.
88
"""
99
directive @oneOf on INPUT_OBJECT
1010

@@ -175,7 +175,7 @@ type CartDeliveryOption {
175175
"""
176176
The unique identifier of the delivery option.
177177
"""
178-
handle: String!
178+
handle: Handle!
179179

180180
"""
181181
The title of the delivery option.
@@ -2500,6 +2500,11 @@ type Customer implements HasMetafields {
25002500
"""
25012501
email: String
25022502

2503+
"""
2504+
The customer's first name.
2505+
"""
2506+
firstName: String
2507+
25032508
"""
25042509
Whether the customer has any of the given tags.
25052510
"""
@@ -2525,6 +2530,11 @@ type Customer implements HasMetafields {
25252530
"""
25262531
id: ID!
25272532

2533+
"""
2534+
The customer's last name.
2535+
"""
2536+
lastName: String
2537+
25282538
"""
25292539
Returns a metafield by namespace and key that belongs to the resource.
25302540
"""
@@ -2662,6 +2672,13 @@ input FunctionRunResult {
26622672
operations: [Operation!]!
26632673
}
26642674

2675+
"""
2676+
A function-scoped handle to a refer a resource.
2677+
The Handle type appears in a JSON response as a String, but it is not intended to be human-readable.
2678+
Example value: `"10079785100"`
2679+
"""
2680+
scalar Handle
2681+
26652682
"""
26662683
Represents information about the metafields associated to the specified resource.
26672684
"""
@@ -3634,7 +3651,7 @@ type Market implements HasMetafields {
36343651
"""
36353652
A human-readable unique string for the market automatically generated from its title.
36363653
"""
3637-
handle: String!
3654+
handle: Handle!
36383655

36393656
"""
36403657
A globally-unique identifier.
@@ -3823,7 +3840,7 @@ type Product implements HasMetafields {
38233840
"""
38243841
A unique human-friendly string of the product's title.
38253842
"""
3826-
handle: String!
3843+
handle: Handle!
38273844

38283845
"""
38293846
Whether the product has any of the given tags.

sample-apps/payment-customizations/extensions/payment-customization-rust/shopify.extension.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
api_version = "2023-10"
1+
api_version = "2024-01"
22

33
[[extensions]]
44
handle = "payment-customization-rust"

0 commit comments

Comments
 (0)