Skip to content

Commit 6e34da2

Browse files
authored
Merge pull request #22 from gadget-inc/update_returns_payload
Update override for refund webhook
2 parents 510a995 + 9316d26 commit 6e34da2

File tree

7 files changed

+1489
-13
lines changed

7 files changed

+1489
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "shopify-webhook-schemas",
3-
"version": "0.2.6",
3+
"version": "0.2.7",
44
"description": "",
55
"main": "dist/src/index.js",
66
"type": "commonjs",

schemas/2024-10/refunds/create.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,26 @@
528528
"type": "boolean"
529529
},
530530
"return": {
531-
"type": [
532-
"null",
533-
"string"
531+
"anyOf": [
532+
{
533+
"type": "null"
534+
},
535+
{
536+
"properties": {
537+
"admin_graphql_api_id": {
538+
"format": "uri",
539+
"type": "string"
540+
},
541+
"id": {
542+
"type": "integer"
543+
}
544+
},
545+
"required": [
546+
"admin_graphql_api_id",
547+
"id"
548+
],
549+
"type": "object"
550+
}
534551
]
535552
},
536553
"total_duties_set": {

schemas/2025-01/refunds/create.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,26 @@
528528
"type": "boolean"
529529
},
530530
"return": {
531-
"type": [
532-
"null",
533-
"string"
531+
"anyOf": [
532+
{
533+
"type": "null"
534+
},
535+
{
536+
"properties": {
537+
"admin_graphql_api_id": {
538+
"format": "uri",
539+
"type": "string"
540+
},
541+
"id": {
542+
"type": "integer"
543+
}
544+
},
545+
"required": [
546+
"admin_graphql_api_id",
547+
"id"
548+
],
549+
"type": "object"
550+
}
534551
]
535552
},
536553
"total_duties_set": {

schemas/2025-04/refunds/create.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,26 @@
528528
"type": "boolean"
529529
},
530530
"return": {
531-
"type": [
532-
"null",
533-
"string"
531+
"anyOf": [
532+
{
533+
"type": "null"
534+
},
535+
{
536+
"properties": {
537+
"admin_graphql_api_id": {
538+
"format": "uri",
539+
"type": "string"
540+
},
541+
"id": {
542+
"type": "integer"
543+
}
544+
},
545+
"required": [
546+
"admin_graphql_api_id",
547+
"id"
548+
],
549+
"type": "object"
550+
}
534551
]
535552
},
536553
"total_duties_set": {

schemas/2025-07/refunds/create.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,26 @@
528528
"type": "boolean"
529529
},
530530
"return": {
531-
"type": [
532-
"null",
533-
"string"
531+
"anyOf": [
532+
{
533+
"type": "null"
534+
},
535+
{
536+
"properties": {
537+
"admin_graphql_api_id": {
538+
"format": "uri",
539+
"type": "string"
540+
},
541+
"id": {
542+
"type": "integer"
543+
}
544+
},
545+
"required": [
546+
"admin_graphql_api_id",
547+
"id"
548+
],
549+
"type": "object"
550+
}
534551
]
535552
},
536553
"total_duties_set": {

0 commit comments

Comments
 (0)