Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade OpenAPI spec v1178 #6

Merged
merged 2 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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