-
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.
Merge pull request #98 from jamalsoueidan/include-user-inside-line-items
fix(get-lineitem.spec.ts): fix typo in import statement
- Loading branch information
Showing
25 changed files
with
550 additions
and
258 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
type: object | ||
properties: | ||
locationType: | ||
type: string | ||
enum: [origin, destination] | ||
customerId: | ||
type: string | ||
format: gid | ||
originType: | ||
type: string | ||
enum: [home, commercial] | ||
name: | ||
type: string | ||
fullAddress: | ||
type: string | ||
|
||
required: | ||
- locationType | ||
- originType | ||
- customerId | ||
- name | ||
- fullAddress |
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 |
---|---|---|
@@ -1,57 +1,42 @@ | ||
type: object | ||
properties: | ||
_id: | ||
type: string | ||
locationType: | ||
type: string | ||
enum: [origin, destination] | ||
customerId: | ||
type: string | ||
format: gid | ||
originType: | ||
type: string | ||
enum: [home, commercial] | ||
name: | ||
type: string | ||
fullAddress: | ||
type: string | ||
geoLocation: | ||
type: object | ||
required: | ||
- type | ||
- coordinates | ||
allOf: | ||
- $ref: ./location.yaml | ||
- type: object | ||
properties: | ||
type: | ||
_id: | ||
type: string | ||
enum: ["Point"] | ||
coordinates: | ||
type: array | ||
items: | ||
type: number | ||
distanceForFree: | ||
type: number | ||
distanceHourlyRate: | ||
type: number | ||
fixedRatePerKm: | ||
type: number | ||
minDriveDistance: | ||
type: number | ||
maxDriveDistance: | ||
type: number | ||
startFee: | ||
type: number | ||
geoLocation: | ||
type: object | ||
required: | ||
- type | ||
- coordinates | ||
properties: | ||
type: | ||
type: string | ||
enum: ["Point"] | ||
coordinates: | ||
type: array | ||
items: | ||
type: number | ||
distanceForFree: | ||
type: number | ||
distanceHourlyRate: | ||
type: number | ||
fixedRatePerKm: | ||
type: number | ||
minDriveDistance: | ||
type: number | ||
maxDriveDistance: | ||
type: number | ||
startFee: | ||
type: number | ||
|
||
required: | ||
- _id | ||
- locationType | ||
- originType | ||
- customerId | ||
- name | ||
- fullAddress | ||
- geoLocation | ||
- distanceForFree | ||
- distanceHourlyRate | ||
- fixedRatePerKm | ||
- minDriveDistance | ||
- maxDriveDistance | ||
- startFee | ||
required: | ||
- _id | ||
- geoLocation | ||
- distanceForFree | ||
- distanceHourlyRate | ||
- fixedRatePerKm | ||
- minDriveDistance | ||
- maxDriveDistance | ||
- startFee |
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
openapi/paths/customer/order/_types/line-item-with-lookup.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
allOf: | ||
- $ref: line-item.yaml | ||
- type: object | ||
properties: | ||
user: | ||
$ref: ../_types/user.yaml | ||
location: | ||
$ref: ../../location/_types/base-location.yaml | ||
shipping: | ||
allOf: | ||
- $ref: ../../../location/_types/travel-time.yaml | ||
- $ref: ../../../shipping/_types/cost-destination.yaml | ||
required: | ||
- user | ||
- location |
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,29 @@ | ||
type: object | ||
properties: | ||
customerId: | ||
type: number | ||
fullname: | ||
type: string | ||
username: | ||
type: string | ||
shortDescription: | ||
type: string | ||
images: | ||
type: object | ||
properties: | ||
profile: | ||
type: object | ||
properties: | ||
url: | ||
type: string | ||
format: uri | ||
width: | ||
type: integer | ||
height: | ||
type: integer | ||
required: | ||
- customerId | ||
- fullname | ||
- username | ||
- shortDescription | ||
- images |
30 changes: 13 additions & 17 deletions
30
openapi/paths/customer/order/get-line-item/get-line-item.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
type: object | ||
properties: | ||
order: | ||
$ref: "../_types/order-single-line-item.yaml" | ||
product: | ||
type: object | ||
allOf: | ||
- $ref: "../_types/order.yaml" | ||
- type: object | ||
properties: | ||
selectedOptions: | ||
$ref: ../../schedule/_types/product-selected-options.yaml | ||
line_items: | ||
allOf: | ||
- $ref: ../_types/line-item-with-lookup.yaml | ||
- type: object | ||
properties: | ||
selectedOptions: | ||
$ref: ../_types/user.yaml | ||
required: | ||
- selectedOptions | ||
required: | ||
- selectedOptions | ||
location: | ||
$ref: ../../location/_types/location-is-default.yaml | ||
shipping: | ||
$ref: ../../../shipping/_types/shipping.yaml | ||
required: | ||
- order | ||
- product | ||
- location | ||
- line_items |
5 changes: 3 additions & 2 deletions
5
.../order/_types/order-array-line-items.yaml → openapi/paths/customer/order/get/get.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
allOf: | ||
- $ref: "./order.yaml" | ||
- $ref: "../_types/order.yaml" | ||
- type: object | ||
properties: | ||
line_items: | ||
type: array | ||
items: | ||
$ref: ../_types/line-item.yaml | ||
$ref: ../_types/line-item-with-lookup.yaml | ||
|
||
required: | ||
- line_items |
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
2 changes: 1 addition & 1 deletion
2
.../order/_types/order-single-line-item.yaml → openapi/paths/customer/order/list/list.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
allOf: | ||
- $ref: "./order.yaml" | ||
- $ref: "../_types/order.yaml" | ||
- type: object | ||
properties: | ||
line_items: | ||
|
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 @@ | ||
type: object | ||
properties: | ||
destination: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
fullAddress: | ||
type: string | ||
required: | ||
- name | ||
- fullAddress | ||
cost: | ||
type: object | ||
properties: | ||
currency: | ||
type: string | ||
value: | ||
type: integer | ||
required: | ||
- currency | ||
- value | ||
required: | ||
- destination | ||
- cost |
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
Oops, something went wrong.