From 115da677b6879b11b1f40170424881fe7433a5c5 Mon Sep 17 00:00:00 2001 From: Auto Mation Date: Fri, 8 Dec 2023 07:19:03 +0000 Subject: [PATCH] TASK: Updating RAML types, Postman and OAS definition --- oas/history/openapi.yaml | 73 +++++++++++++++++++++++----------------- 1 file changed, 42 insertions(+), 31 deletions(-) diff --git a/oas/history/openapi.yaml b/oas/history/openapi.yaml index 8f52cdb41..b227c369d 100644 --- a/oas/history/openapi.yaml +++ b/oas/history/openapi.yaml @@ -1555,15 +1555,12 @@ components: required: - change - nextValue - - previousValue - type properties: type: type: "string" change: type: "string" - previousValue: - $ref: '#/components/schemas/Address' nextValue: $ref: '#/components/schemas/Address' AddAssetChange: @@ -1656,11 +1653,11 @@ components: previousValue: type: "array" items: - $ref: '#/components/schemas/ChannelRole' + $ref: '#/components/schemas/ChannelRoleEnum' nextValue: type: "array" items: - $ref: '#/components/schemas/ChannelRole' + $ref: '#/components/schemas/ChannelRoleEnum' AddCustomLineItemChange: allOf: - $ref: '#/components/schemas/Change' @@ -1834,7 +1831,7 @@ components: change: type: "string" nextValue: - $ref: '#/components/schemas/LocalizedEnumValue' + $ref: '#/components/schemas/AttributeLocalizedEnumValue' fieldName: type: "string" attributeName: @@ -1846,15 +1843,12 @@ components: required: - change - nextValue - - previousValue - type properties: type: type: "string" change: type: "string" - previousValue: - $ref: '#/components/schemas/Location' nextValue: $ref: '#/components/schemas/Location' AddOrderLineItemChange: @@ -1926,7 +1920,7 @@ components: change: type: "string" nextValue: - $ref: '#/components/schemas/EnumValue' + $ref: '#/components/schemas/AttributePlainEnumValue' attributeName: type: "string" AddPriceChange: @@ -2079,11 +2073,11 @@ components: previousValue: type: "array" items: - $ref: '#/components/schemas/StateRole' + $ref: '#/components/schemas/StateRoleEnum' nextValue: type: "array" items: - $ref: '#/components/schemas/StateRole' + $ref: '#/components/schemas/StateRoleEnum' AddTaxRateChange: allOf: - $ref: '#/components/schemas/Change' @@ -2390,6 +2384,26 @@ components: $ref: '#/components/schemas/TextInputHint' isSearchable: type: "boolean" + AttributeLocalizedEnumValue: + type: "object" + required: + - key + - label + properties: + key: + type: "string" + label: + $ref: '#/components/schemas/LocalizedString' + AttributePlainEnumValue: + type: "object" + required: + - key + - label + properties: + key: + type: "string" + label: + type: "string" AttributeType: type: "object" required: @@ -3580,9 +3594,9 @@ components: change: type: "string" previousValue: - $ref: '#/components/schemas/StateType' + $ref: '#/components/schemas/StateTypeEnum' nextValue: - $ref: '#/components/schemas/StateType' + $ref: '#/components/schemas/StateTypeEnum' ChangeStatusChange: allOf: - $ref: '#/components/schemas/Change' @@ -3964,7 +3978,7 @@ components: permyriad: type: "integer" format: "int32" - ChannelRole: + ChannelRoleEnum: type: "string" enum: - InventorySupply @@ -4904,11 +4918,11 @@ components: previousValue: type: "array" items: - $ref: '#/components/schemas/ChannelRole' + $ref: '#/components/schemas/ChannelRoleEnum' nextValue: type: "array" items: - $ref: '#/components/schemas/ChannelRole' + $ref: '#/components/schemas/ChannelRoleEnum' RemoveCustomLineItemChange: allOf: - $ref: '#/components/schemas/Change' @@ -5097,7 +5111,6 @@ components: - type: "object" required: - change - - nextValue - previousValue - type properties: @@ -5107,8 +5120,6 @@ components: type: "string" previousValue: $ref: '#/components/schemas/Location' - nextValue: - $ref: '#/components/schemas/Location' RemoveOrderLineItemChange: allOf: - $ref: '#/components/schemas/Change' @@ -5295,18 +5306,17 @@ components: previousValue: type: "array" items: - $ref: '#/components/schemas/StateRole' + $ref: '#/components/schemas/StateRoleEnum' nextValue: type: "array" items: - $ref: '#/components/schemas/StateRole' + $ref: '#/components/schemas/StateRoleEnum' RemoveTaxRateChange: allOf: - $ref: '#/components/schemas/Change' - type: "object" required: - change - - nextValue - previousValue - type properties: @@ -5316,8 +5326,6 @@ components: type: "string" previousValue: $ref: '#/components/schemas/TaxRate' - nextValue: - $ref: '#/components/schemas/TaxRate' RemoveTextLineItemChange: allOf: - $ref: '#/components/schemas/Change' @@ -5937,11 +5945,11 @@ components: previousValue: type: "array" items: - $ref: '#/components/schemas/ChannelRole' + $ref: '#/components/schemas/ChannelRoleEnum' nextValue: type: "array" items: - $ref: '#/components/schemas/ChannelRole' + $ref: '#/components/schemas/ChannelRoleEnum' SetCompanyNameChange: allOf: - $ref: '#/components/schemas/Change' @@ -8114,11 +8122,11 @@ components: previousValue: type: "array" items: - $ref: '#/components/schemas/StateRole' + $ref: '#/components/schemas/StateRoleEnum' nextValue: type: "array" items: - $ref: '#/components/schemas/StateRole' + $ref: '#/components/schemas/StateRoleEnum' SetStatusInterfaceCodeChange: allOf: - $ref: '#/components/schemas/Change' @@ -8676,13 +8684,13 @@ components: - Sent - Closed x-annotation-package: "Common" - StateRole: + StateRoleEnum: type: "string" enum: - ReviewIncludedInStatistics - Return x-annotation-package: "Common" - StateType: + StateTypeEnum: type: "string" enum: - OrderState @@ -8690,6 +8698,9 @@ components: - ProductState - ReviewState - PaymentState + - QuoteRequestState + - StagedQuoteState + - QuoteState x-annotation-package: "Common" StoreCountry: type: "object"