-
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.
feat(openapi): add new endpoint for getting orders destinations for a…
… customer feat(openapi): add response schema for getting orders destinations feat(openapi): add schema for listing order shipping details feat(functions): add CustomerOrderControllerShipping for handling shipping requests feat(functions): add CustomerOrderServiceShipping for processing shipping data feat(shipping): update ShippingMongooseSchema to include origin information feat(tests): add test for CustomerOrderServiceShipping feat(tests): add test for createShipping function in jest helpers
- Loading branch information
1 parent
44378d2
commit e2430d9
Showing
8 changed files
with
96 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
get: | ||
parameters: | ||
- name: customerId | ||
in: path | ||
description: customerId for the customer | ||
required: true | ||
schema: | ||
type: string | ||
- name: start | ||
in: query | ||
description: start of date | ||
required: true | ||
schema: | ||
type: string | ||
- name: end | ||
in: query | ||
description: end of date | ||
required: true | ||
schema: | ||
type: string | ||
tags: | ||
- CustomerOrder | ||
operationId: customerOrderShipping | ||
summary: GET Get only all orders destinations for customer | ||
description: Get all driving information that are included in the orders | ||
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" | ||
"404": | ||
$ref: "../../../../responses/not-found.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,25 @@ | ||
type: object | ||
properties: | ||
id: | ||
type: number | ||
order_number: | ||
type: number | ||
customer: | ||
$ref: customer.yaml | ||
start: | ||
type: string | ||
end: | ||
type: string | ||
title: | ||
type: string | ||
shipping: | ||
$ref: ../../customer/shipping/_types/shipping.yaml | ||
|
||
required: | ||
- id | ||
- customer | ||
- start | ||
- end | ||
- title | ||
- order_number | ||
- shipping |
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,12 @@ | ||
type: object | ||
properties: | ||
success: | ||
type: boolean | ||
example: true | ||
payload: | ||
type: array | ||
items: | ||
$ref: list.yaml | ||
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
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