Skip to content

Commit

Permalink
Upgrade OpenAPI spec v1178 and ndc-rest v0.2.2 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac authored Aug 6, 2024
1 parent 3ae2790 commit b1c87dc
Show file tree
Hide file tree
Showing 12 changed files with 9,001 additions and 1,954 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM ghcr.io/hasura/ndc-rest:v0.2.1
FROM ghcr.io/hasura/ndc-rest:v0.2.2

COPY ./config /etc/connector
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NDC_REST_VERSION ?= v0.2.1
NDC_REST_VERSION ?= v0.2.2
UID ?= $(shell id -u)
GID ?= $(shell id -g)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The connector serves the HTTP service at `http://localhost:8080` and connect to
### Update dependencies

```sh
NDC_REST_VERSION=\<version\> make update-deps
NDC_REST_VERSION=<version> make update-deps
```

### Update schema
Expand Down
10,845 changes: 8,905 additions & 1,940 deletions config/schema.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion schema/config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
file: https://raw.githubusercontent.com/stripe/openapi/v1071/openapi/spec3.json
file: https://raw.githubusercontent.com/stripe/openapi/v1178/openapi/spec3.json
spec: oas3
envPrefix: STRIPE
trimPrefix: /v1
2 changes: 1 addition & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

ROOT="$(pwd)"
NDC_TEST_VERSION=v0.1.3
NDC_TEST_VERSION=v0.1.5

http_wait() {
printf "$1:\t "
Expand Down
3 changes: 2 additions & 1 deletion testdata/mock/query/GetChargesChargeDispute/expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"object": "dispute",
"payment_intent": null,
"payment_method_details": {
"card": { "brand": "visa", "network_reason_code": "10.4" },
"klarna": null,
"paypal": null,
"type": "card"
},
"reason": "general",
Expand Down
30 changes: 28 additions & 2 deletions testdata/mock/query/GetChargesChargeDispute/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,34 @@
"column": "payment_method_details",
"fields": {
"fields": {
"card": {
"column": "card",
"klarna": {
"column": "klarna",
"fields": {
"fields": {
"reason_code": {
"column": "reason_code",
"type": "column"
}
},
"type": "object"
},
"type": "column"
},
"paypal": {
"column": "paypal",
"fields": {
"fields": {
"case_id": {
"column": "case_id",
"type": "column"
},
"reason_code": {
"column": "reason_code",
"type": "column"
}
},
"type": "object"
},
"type": "column"
},
"type": {
Expand Down
3 changes: 2 additions & 1 deletion testdata/mock/query/GetDisputes/expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"object": "dispute",
"payment_intent": null,
"payment_method_details": {
"card": { "brand": "visa", "network_reason_code": "10.4" },
"klarna": null,
"paypal": null,
"type": "card"
},
"reason": "general",
Expand Down
30 changes: 28 additions & 2 deletions testdata/mock/query/GetDisputes/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,34 @@
"column": "payment_method_details",
"fields": {
"fields": {
"card": {
"column": "card",
"klarna": {
"column": "klarna",
"fields": {
"fields": {
"reason_code": {
"column": "reason_code",
"type": "column"
}
},
"type": "object"
},
"type": "column"
},
"paypal": {
"column": "paypal",
"fields": {
"fields": {
"case_id": {
"column": "case_id",
"type": "column"
},
"reason_code": {
"column": "reason_code",
"type": "column"
}
},
"type": "object"
},
"type": "column"
},
"type": {
Expand Down
3 changes: 2 additions & 1 deletion testdata/mock/query/GetDisputesDispute/expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"object": "dispute",
"payment_intent": null,
"payment_method_details": {
"card": { "brand": "visa", "network_reason_code": "10.4" },
"klarna": null,
"paypal": null,
"type": "card"
},
"reason": "general",
Expand Down
31 changes: 29 additions & 2 deletions testdata/mock/query/GetDisputesDispute/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,39 @@
"column": "payment_intent",
"type": "column"
},

"payment_method_details": {
"column": "payment_method_details",
"fields": {
"fields": {
"card": {
"column": "card",
"klarna": {
"column": "klarna",
"fields": {
"fields": {
"reason_code": {
"column": "reason_code",
"type": "column"
}
},
"type": "object"
},
"type": "column"
},
"paypal": {
"column": "paypal",
"fields": {
"fields": {
"case_id": {
"column": "case_id",
"type": "column"
},
"reason_code": {
"column": "reason_code",
"type": "column"
}
},
"type": "object"
},
"type": "column"
},
"type": {
Expand Down

0 comments on commit b1c87dc

Please sign in to comment.