-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(openapi): update references to shipping types in openapi.yaml
feat(openapi): add ShippingCreate endpoint to openapi.yaml feat(openapi): add ShippingBody and ShippingCreateResponse types to openapi.yaml feat(openapi): add shippingId property to customer availability get body feat(openapi): add ShippingBody type to shipping calculate endpoint in openapi.yaml feat(openapi): add ShippingCreate endpoint to openapi.yaml feat(openapi): add ShippingCreateResponse type to openapi.yaml feat(openapi): add NumberOrString type to openapi.yaml fix(server.ts): change port variable case from lowercase port to uppercase PORT feat(server.ts): add support for process.env.PORT environment variable fix(shipping/controllers/calculate.ts): add customerId property to ShippingControllerCalculateRequest fix(shipping/services/calculate.ts): add comment about using customerId to find locationId
- Loading branch information
1 parent
f5ce656
commit 07ee45e
Showing
11 changed files
with
86 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
openapi/paths/shipping/calculate/body.yaml → openapi/paths/shipping/_types/body.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
post: | ||
tags: | ||
- ShippingCreate | ||
operationId: shippingCreate | ||
summary: POST create shipping | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../_types/body.yaml" | ||
responses: | ||
"200": | ||
description: "Response" | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "./response.yaml" | ||
"400": | ||
$ref: "../../../responses/bad.yaml" | ||
"401": | ||
$ref: "../../../responses/unauthorized.yaml" | ||
"403": | ||
$ref: "../../../responses/forbidden.yaml" | ||
security: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
type: object | ||
properties: | ||
success: | ||
type: boolean | ||
example: true | ||
payload: | ||
type: object | ||
allOf: | ||
- $ref: ../../location/_types/travel-time.yaml | ||
- type: object | ||
properties: | ||
cost: | ||
type: object | ||
properties: | ||
currency: | ||
type: string | ||
value: | ||
type: integer | ||
required: | ||
- currency | ||
- value | ||
required: | ||
- cost | ||
|
||
required: | ||
- success | ||
- payload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
oneOf: | ||
- type: number | ||
- type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters