-
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 #113 from jamalsoueidan/112-profile-option-to-type…
…-pricecompare-price-instead-of-dropdown profile option to change price and compare price instead of dropdown
- Loading branch information
Showing
50 changed files
with
1,403 additions
and
878 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,10 @@ | ||
type: object | ||
properties: | ||
price: | ||
type: string | ||
compareAtPrice: | ||
type: string | ||
|
||
required: | ||
- price | ||
- compareAtPrice |
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,41 @@ | ||
post: | ||
parameters: | ||
- name: customerId | ||
in: path | ||
required: true | ||
schema: | ||
type: string | ||
- name: productId | ||
in: path | ||
required: true | ||
schema: | ||
type: string | ||
tags: | ||
- CustomerProduct | ||
operationId: customerProductCreateVariant | ||
summary: POST create product variant | ||
description: This endpoint create product variant | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "./body.yaml" | ||
|
||
responses: | ||
"200": | ||
description: Response with product variant payload | ||
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: [] |
10 changes: 10 additions & 0 deletions
10
openapi/paths/customer/product/create-variant/response.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,10 @@ | ||
type: object | ||
properties: | ||
success: | ||
type: boolean | ||
example: true | ||
payload: | ||
$ref: ./variant.yaml | ||
required: | ||
- success | ||
- payload |
10 changes: 10 additions & 0 deletions
10
openapi/paths/customer/product/create-variant/variant.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,10 @@ | ||
type: object | ||
properties: | ||
id: | ||
type: number | ||
title: | ||
type: string | ||
selectedOptions: | ||
type: array | ||
items: | ||
$ref: ../../schedule/_types/product-selected-options.yaml |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.