Skip to content

Commit

Permalink
Schema Fixes (#17)
Browse files Browse the repository at this point in the history
* set order_refunds created_at to a date-time

* make order_adjustments available and add to order_refunds
  • Loading branch information
KAllan357 authored Dec 3, 2018
1 parent 6439e8b commit 324fc88
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 61 deletions.
56 changes: 56 additions & 0 deletions tap_shopify/schemas/definitions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,60 @@
{
"order_adjustments": {
"items": {
"properties": {
"order_id": {
"type": [
"null",
"integer"
]
},
"tax_amount": {
"type": [
"null",
"number"
]
},
"refund_id": {
"type": [
"null",
"integer"
]
},
"amount": {
"type": [
"null",
"number"
]
},
"kind": {
"type": [
"null",
"string"
]
},
"id": {
"type": [
"null",
"integer"
]
},
"reason": {
"type": [
"null",
"string"
]
}
},
"type": [
"null",
"object"
]
},
"type": [
"null",
"array"
]
},
"customer": {
"type": "object",
"properties": {
Expand Down
6 changes: 5 additions & 1 deletion tap_shopify/schemas/order_refunds.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"boolean"
]
},
"order_adjustments": {
"$ref": "definitions.json#/order_adjustments"
},
"processed_at": {
"type": [
"null",
Expand All @@ -38,7 +41,8 @@
]
},
"created_at": {
"type": "string"
"type": ["null", "string"],
"format": "date-time"
},
"admin_graphql_api_id": {
"type": [
Expand Down
62 changes: 2 additions & 60 deletions tap_shopify/schemas/orders.json
Original file line number Diff line number Diff line change
@@ -1,62 +1,4 @@
{
"definitions": {
"order_adjustments": {
"items": {
"properties": {
"order_id": {
"type": [
"null",
"integer"
]
},
"tax_amount": {
"type": [
"null",
"number"
]
},
"refund_id": {
"type": [
"null",
"integer"
]
},
"amount": {
"type": [
"null",
"number"
]
},
"kind": {
"type": [
"null",
"string"
]
},
"id": {
"type": [
"null",
"integer"
]
},
"reason": {
"type": [
"null",
"string"
]
}
},
"type": [
"null",
"object"
]
},
"type": [
"null",
"array"
]
}
},
"properties": {
"presentment_currency": {
"type": [
Expand Down Expand Up @@ -110,7 +52,7 @@
]
},
"order_adjustments": {
"$ref": "#/definitions/order_adjustments"
"$ref": "definitions.json#/order_adjustments"
},
"shipping_lines": {
"items": {
Expand Down Expand Up @@ -1127,7 +1069,7 @@
"format": "date-time"
},
"order_adjustments": {
"$ref": "#/definitions/order_adjustments"
"$ref": "definitions.json#/order_adjustments"
}
},
"type": [
Expand Down

0 comments on commit 324fc88

Please sign in to comment.