-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated API from documentation release
- Loading branch information
1 parent
216db1b
commit e1917c6
Showing
47 changed files
with
251 additions
and
67 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
4 changes: 4 additions & 0 deletions
4
api-specs/api/examples/Cart/CartChangeLineItemsOrderAction.json
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,4 @@ | ||
{ | ||
"action": "changeLineItemsOrder", | ||
"lineItemOrder": ["{{lineItemId2}}", "{{lineItemId}}"] | ||
} |
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
11 changes: 11 additions & 0 deletions
11
api-specs/api/types/cart/updates/CartChangeLineItemsOrderAction.raml
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,11 @@ | ||
#%RAML 1.0 DataType | ||
(package): Cart | ||
type: CartUpdateAction | ||
displayName: CartChangeLineItemsOrderAction | ||
discriminatorValue: changeLineItemsOrder | ||
example: !include ../../../examples/Cart/CartChangeLineItemsOrderAction.json | ||
properties: | ||
lineItemOrder: | ||
type: string[] | ||
description: | | ||
All existing [LineItem](ctp:api:type:LineItem) `id`s in the desired new order. |
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
11 changes: 11 additions & 0 deletions
11
api-specs/api/types/me/updates/MyCartChangeLineItemsOrderAction.raml
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,11 @@ | ||
#%RAML 1.0 DataType | ||
(package): Me | ||
type: MyCartUpdateAction | ||
displayName: MyCartChangeLineItemsOrderAction | ||
discriminatorValue: changeLineItemsOrder | ||
example: !include ../../../examples/Cart/CartChangeLineItemsOrderAction.json | ||
properties: | ||
lineItemOrder: | ||
type: string[] | ||
description: | | ||
All existing [LineItem](ctp:api:type:LineItem) `id`s of the [Cart](ctp:api:type:Cart) in the desired new order. |
58 changes: 58 additions & 0 deletions
58
api-specs/api/types/order-search/OrderSearchCustomType.raml
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,58 @@ | ||
#%RAML 1.0 DataType | ||
(package): Order | ||
displayName: OrderSearchCustomType | ||
description: Possible values for the `customType` property on [query expressions](/../api/projects/order-search#query-expressions) indicating the data type of the `field`. | ||
type: string | ||
enum: | ||
- BooleanType | ||
- StringType | ||
- LocalizedStringType | ||
- EnumType | ||
- LocalizedEnumType | ||
- NumberType | ||
- DateType | ||
- TimeType | ||
- DateTimeType | ||
- SetType.StringType | ||
- SetType.LocalizedStringType | ||
- SetType.EnumType | ||
- SetType.LocalizedEnumType | ||
- SetType.NumberType | ||
- SetType.DateType | ||
- SetType.TimeType | ||
- SetType.DateTimeType | ||
(enumDescriptions): | ||
BooleanType: | | ||
For [CustomFieldBooleanType](ctp:api:type:CustomFieldBooleanType) Custom Fields. | ||
StringType: | | ||
For [CustomFieldStringType](ctp:api:type:CustomFieldStringType) Custom Fields. | ||
LocalizedStringType: | | ||
For [CustomFieldLocalizedStringType](ctp:api:type:CustomFieldLocalizedStringType) Custom Fields. | ||
EnumType: | | ||
For [CustomFieldEnumType](ctp:api:type:CustomFieldEnumType) Custom Fields. | ||
LocalizedEnumType: | | ||
For [CustomFieldLocalizedEnumType](ctp:api:type:CustomFieldLocalizedEnumType) Custom Fields. | ||
NumberType: | | ||
For [CustomFieldNumberType](ctp:api:type:CustomFieldNumberType) Custom Fields. | ||
DateType: | | ||
For [CustomFieldDateType](ctp:api:type:CustomFieldDateType) Custom Fields. | ||
DateTimeType: | | ||
For [CustomFieldDateTimeType](ctp:api:type:CustomFieldDateTimeType) Custom Fields. | ||
TimeType: | | ||
For [CustomFieldTimeType](ctp:api:type:CustomFieldTimeType) Custom Fields. | ||
SetType.StringType: | | ||
For [CustomFieldSetType](ctp:api:type:CustomFieldSetType) of `StringType` Custom Fields. | ||
SetType.LocalizedStringType: | | ||
For [CustomFieldSetType](ctp:api:type:CustomFieldSetType) of `LocalizedStringType` Custom Fields. | ||
SetType.EnumType: | | ||
For [CustomFieldSetType](ctp:api:type:CustomFieldSetType) of `EnumType` Custom Fields. | ||
SetType.LocalizedEnumType: | | ||
For [CustomFieldSetType](ctp:api:type:CustomFieldSetType) of `LocalizedEnumType` Custom Fields. | ||
SetType.NumberType: | | ||
For [CustomFieldSetType](ctp:api:type:CustomFieldSetType) of `NumberType` Custom Fields. | ||
SetType.DateType: | | ||
For [CustomFieldSetType](ctp:api:type:CustomFieldSetType) of `DateType` Custom Fields. | ||
SetType.DateTimeType: | | ||
For [CustomFieldSetType](ctp:api:type:CustomFieldSetType) of `DateTimeType` Custom Fields. | ||
SetType.TimeType: | | ||
For [CustomFieldSetType](ctp:api:type:CustomFieldSetType) of `TimeType` Custom Fields. |
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ properties: | |
type: number | ||
format: int32 | ||
customType?: | ||
type: string | ||
type: OrderSearchCustomType |
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
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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
#%RAML 1.0 DataType | ||
(package): Product | ||
displayName: SuggestionResult | ||
example: !include ../../examples/product-projection-suggest.example.json | ||
type: object | ||
properties: | ||
/searchKeywords.[a-z]{2}(-[A-Z]{2})?/: | ||
type: array | ||
items: Suggestion | ||
description: | | ||
The result may contain multiple Suggestions identified by their [Locale](ctp:api:type:Locale). | ||
See [Suggestions for two languages](/projects/products-suggestions#suggestions-for-two-languages). |
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
Oops, something went wrong.