From c35a541bba382d856bfe0956a7d3b51c0d493a9a Mon Sep 17 00:00:00 2001 From: xuelianhan007 <148412906+xuelianhan007@users.noreply.github.com> Date: Tue, 12 Nov 2024 17:03:54 +0800 Subject: [PATCH] fix(sdk): fixed the status value always empty in the inventory list (#124) --- ...pi-target-mapper.inventory.eline.list.yaml | 6 +- .../api-target-mapper.inventory.uni.list.yaml | 7 +- ...target-mapper.order.eline.read.delete.yaml | 1 + ...i-target-mapper.order.uni.read.delete.yaml | 1 + ...pi-target-mapper.quote.eline.add.sync.yaml | 2 +- .../api-target.order.eline.read.delete.yaml | 1 + .../api-target.order.uni.read.delete.yaml | 1 + .../test/resources/mock/apis/api.order.yaml | 3 + .../operator/core/dto/ApiActivityLog.java | 1 + .../core/service/ApiActivityLogService.java | 1 + .../gateway/runner/MappingTransformer.java | 7 +- ...pi-target-mapper.inventory.eline.list.yaml | 4 +- .../api-target-mapper.inventory.uni.list.yaml | 4 +- ...target-mapper.order.eline.read.delete.yaml | 1 + .../api-target-mapper.order.eline.read.yaml | 1 + ...i-target-mapper.order.uni.read.delete.yaml | 1 + .../api-target-mapper.order.uni.read.yaml | 1 + .../api-target.order.eline.read.delete.yaml | 1 + .../api-target.order.uni.read.delete.yaml | 1 + .../resources/mef-sonata/apis/api.order.yaml | 3 + .../mapping-matrix/mapping.matrix.order.yaml | 40 ----------- .../mapping-matrix/mapping.matrix.quote.yaml | 69 ------------------- .../main/resources/mef-sonata/product.yaml | 6 +- .../template-upgrade/release.1.5.10.yaml | 13 ++++ 24 files changed, 49 insertions(+), 127 deletions(-) delete mode 100644 kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/mapping-matrix/mapping.matrix.order.yaml delete mode 100644 kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/mapping-matrix/mapping.matrix.quote.yaml create mode 100644 kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/template-upgrade/release.1.5.10.yaml diff --git a/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.inventory.eline.list.yaml b/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.inventory.eline.list.yaml index ee81b6c0..893de2d9 100644 --- a/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.inventory.eline.list.yaml +++ b/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.inventory.eline.list.yaml @@ -46,7 +46,7 @@ spec: targetType: string targetLocation: BODY requiredMapping: true - checkPath: "$[0].id" + checkPath: "$[0]['id']" deletePath: "$[*]" - name: mapper.inventory.eline.list.startDate title: "The date from which the product starts" @@ -61,7 +61,7 @@ spec: title: "Possible values for the status of a MEF product" source: "@{{responseBody.status}}" sourceLocation: BODY - target: "@{{[*].status}}" + target: "@{{status}}" targetType: enum targetLocation: BODY requiredMapping: true @@ -74,7 +74,7 @@ spec: - suspended - suspendedPendingTerminate - terminated - valueMappings: + valueMapping: ACTIVE: active, CANCELLED: canceled, PENDING: pendingActive diff --git a/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.inventory.uni.list.yaml b/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.inventory.uni.list.yaml index e4c3b05d..8b0e8f0e 100644 --- a/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.inventory.uni.list.yaml +++ b/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.inventory.uni.list.yaml @@ -45,7 +45,7 @@ spec: targetType: string targetLocation: BODY requiredMapping: true - checkPath: "$[0].id" + checkPath: "$[0]['id']" deletePath: "$[*]" - name: mapper.inventory.uni.list.startDate title: "The date from which the product starts" @@ -60,7 +60,7 @@ spec: title: "Possible values for the status of a MEF product" source: "@{{responseBody.port.status}}" sourceLocation: BODY - target: "@{{[*].status}}" + target: "@{{status}}" targetType: enum targetLocation: BODY requiredMapping: true @@ -73,9 +73,10 @@ spec: - suspended - suspendedPendingTerminate - terminated - valueMappings: + valueMapping: ACTIVE: active, ACTIVATING: pendingActive DELETING: pendingTerminate DISABLED: suspended DELETED: terminated + CANCELED: cancelled \ No newline at end of file diff --git a/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.order.eline.read.delete.yaml b/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.order.eline.read.delete.yaml index 77755ee4..78b76e88 100644 --- a/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.order.eline.read.delete.yaml +++ b/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.order.eline.read.delete.yaml @@ -10,6 +10,7 @@ spec: path: /mefApi/sonata/productOrderingManagement/v10/productOrder/{id} method: get productType: access_e_line + actionType: delete endpoints: - path: /api/v2/company/{username}/connections/{connectionId} method: GET diff --git a/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.order.uni.read.delete.yaml b/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.order.uni.read.delete.yaml index 0b575baf..6658634a 100644 --- a/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.order.uni.read.delete.yaml +++ b/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.order.uni.read.delete.yaml @@ -10,6 +10,7 @@ spec: path: /mefApi/sonata/productOrderingManagement/v10/productOrder/{id} method: get productType: uni + actionType: delete endpoints: - id: retrieve connection detail by id path: /api/company/{companyName}/ports/orders/{orderId} diff --git a/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.quote.eline.add.sync.yaml b/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.quote.eline.add.sync.yaml index 3bd46c39..91ad5f7f 100644 --- a/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.quote.eline.add.sync.yaml +++ b/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets-mappers/api-target-mapper.quote.eline.add.sync.yaml @@ -56,7 +56,7 @@ spec: - name: mapper.quote.uni.add.sync.rollInterval.amount source: "@{{quoteItem[0].requestedQuoteItemTerm.rollInterval.amount}}" sourceLocation: BODY - target: "12" + target: "1" targetLocation: BODY requiredMapping: false - name: mapper.quote.uni.add.sync.rollInterval.units diff --git a/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets/api-target.order.eline.read.delete.yaml b/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets/api-target.order.eline.read.delete.yaml index 3fd9409b..abb99e7f 100644 --- a/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets/api-target.order.eline.read.delete.yaml +++ b/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets/api-target.order.eline.read.delete.yaml @@ -15,6 +15,7 @@ spec: path: /mefApi/sonata/productOrderingManagement/v10/productOrder/{id} method: get productType: access_e_line + actionType: delete endpoints: - id: retrieve connection detail by id of eline delete order path: "" diff --git a/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets/api-target.order.uni.read.delete.yaml b/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets/api-target.order.uni.read.delete.yaml index 1ed3c88c..bc1b6f4e 100644 --- a/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets/api-target.order.uni.read.delete.yaml +++ b/kraken-app/kraken-app-hub/src/test/resources/mock/api-targets/api-target.order.uni.read.delete.yaml @@ -15,6 +15,7 @@ spec: path: /mefApi/sonata/productOrderingManagement/v10/productOrder/{id} method: get productType: uni + actionType: delete endpoints: - id: retrieve connection detail by id of uni delete order path: "" diff --git a/kraken-app/kraken-app-hub/src/test/resources/mock/apis/api.order.yaml b/kraken-app/kraken-app-hub/src/test/resources/mock/apis/api.order.yaml index 07cb9796..b8e94d96 100644 --- a/kraken-app/kraken-app-hub/src/test/resources/mock/apis/api.order.yaml +++ b/kraken-app/kraken-app-hub/src/test/resources/mock/apis/api.order.yaml @@ -20,6 +20,9 @@ spec: - ACCESS_E_LINE - path: /mefApi/sonata/productOrderingManagement/v10/productOrder/{id} method: get + actionTypes: + - add + - delete productTypes: - UNI - ACCESS_E_LINE diff --git a/kraken-java-sdk/kraken-java-sdk-core/src/main/java/com/consoleconnect/kraken/operator/core/dto/ApiActivityLog.java b/kraken-java-sdk/kraken-java-sdk-core/src/main/java/com/consoleconnect/kraken/operator/core/dto/ApiActivityLog.java index 1a3cb84e..1c10e4a1 100644 --- a/kraken-java-sdk/kraken-java-sdk-core/src/main/java/com/consoleconnect/kraken/operator/core/dto/ApiActivityLog.java +++ b/kraken-java-sdk/kraken-java-sdk-core/src/main/java/com/consoleconnect/kraken/operator/core/dto/ApiActivityLog.java @@ -22,5 +22,6 @@ public class ApiActivityLog extends AbstractHttpModel { private String clientId; private String buyer; + private String buyerId; private String buyerName; } diff --git a/kraken-java-sdk/kraken-java-sdk-core/src/main/java/com/consoleconnect/kraken/operator/core/service/ApiActivityLogService.java b/kraken-java-sdk/kraken-java-sdk-core/src/main/java/com/consoleconnect/kraken/operator/core/service/ApiActivityLogService.java index 8f5e729b..3f8fc884 100644 --- a/kraken-java-sdk/kraken-java-sdk-core/src/main/java/com/consoleconnect/kraken/operator/core/service/ApiActivityLogService.java +++ b/kraken-java-sdk/kraken-java-sdk-core/src/main/java/com/consoleconnect/kraken/operator/core/service/ApiActivityLogService.java @@ -53,6 +53,7 @@ public Paging search(LogSearchRequest logSearchRequest, Pageable UnifiedAssetDto buyerAssetDto = buyerIdEntityMap.getOrDefault(apiActivityLog.getBuyer(), null); if (Objects.nonNull(buyerAssetDto)) { + apiActivityLog.setBuyerId(buyerAssetDto.getId()); BuyerOnboardFacets facets = UnifiedAsset.getFacets(buyerAssetDto, BuyerOnboardFacets.class); apiActivityLog.setBuyerName( diff --git a/kraken-java-sdk/kraken-java-sdk-gateway/src/main/java/com/consoleconnect/kraken/operator/gateway/runner/MappingTransformer.java b/kraken-java-sdk/kraken-java-sdk-gateway/src/main/java/com/consoleconnect/kraken/operator/gateway/runner/MappingTransformer.java index 22aca71e..02d26fcf 100644 --- a/kraken-java-sdk/kraken-java-sdk-gateway/src/main/java/com/consoleconnect/kraken/operator/gateway/runner/MappingTransformer.java +++ b/kraken-java-sdk/kraken-java-sdk-gateway/src/main/java/com/consoleconnect/kraken/operator/gateway/runner/MappingTransformer.java @@ -77,7 +77,7 @@ default String transform( "converted source:{}, converted target:{},", convertedSource, convertedTarget); compactedResponseBody = JsonToolkit.generateJson( - convertToJsonPointer(mapper.getTarget().replace(REQUEST_BODY, StringUtils.EMPTY)), + convertToJsonPointer(mapper.getTarget().replace(RESPONSE_BODY, StringUtils.EMPTY)), convertedSource, compactedResponseBody); } @@ -130,8 +130,11 @@ default String deleteNodeByPath(Map checkPathMap, String json) { try { obj = doc.read(key); } catch (Exception e) { - String err = String.format("Json Path read key error, key:%s", key); + String err = + String.format( + "Json Path read key error, key:%s, value:%s will be deleted", key, value); LogHolder.log.error(err, e); + doc.delete(value); return; } if (null == obj || (obj instanceof String str && (StringUtils.isBlank(str)))) { diff --git a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.inventory.eline.list.yaml b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.inventory.eline.list.yaml index ae40ba4d..3feec9e8 100644 --- a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.inventory.eline.list.yaml +++ b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.inventory.eline.list.yaml @@ -61,7 +61,7 @@ spec: title: "Possible values for the status of a MEF product" source: "" sourceLocation: "" - target: "@{{[*].status}}" + target: "@{{status}}" targetType: enum targetLocation: BODY requiredMapping: true @@ -74,4 +74,4 @@ spec: - suspended - suspendedPendingTerminate - terminated - valueMappings: {} + valueMapping: {} diff --git a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.inventory.uni.list.yaml b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.inventory.uni.list.yaml index b3488dba..a4dd6841 100644 --- a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.inventory.uni.list.yaml +++ b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.inventory.uni.list.yaml @@ -60,7 +60,7 @@ spec: title: "Possible values for the status of a MEF product" source: "" sourceLocation: "" - target: "@{{[*].status}}" + target: "@{{status}}" targetType: enum targetLocation: BODY requiredMapping: true @@ -73,4 +73,4 @@ spec: - suspended - suspendedPendingTerminate - terminated - valueMappings: {} + valueMapping: {} diff --git a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.order.eline.read.delete.yaml b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.order.eline.read.delete.yaml index 35a11d99..2768891e 100644 --- a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.order.eline.read.delete.yaml +++ b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.order.eline.read.delete.yaml @@ -10,6 +10,7 @@ spec: path: /mefApi/sonata/productOrderingManagement/v10/productOrder/{id} method: get productType: access_e_line + actionType: delete endpoints: - path: "" method: "" diff --git a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.order.eline.read.yaml b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.order.eline.read.yaml index 121bdf5a..045d7eb9 100644 --- a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.order.eline.read.yaml +++ b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.order.eline.read.yaml @@ -11,6 +11,7 @@ spec: path: /mefApi/sonata/productOrderingManagement/v10/productOrder/{id} method: get productType: access_e_line + actionType: add endpoints: - path: "" method: "" diff --git a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.order.uni.read.delete.yaml b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.order.uni.read.delete.yaml index 708dd768..354d30e9 100644 --- a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.order.uni.read.delete.yaml +++ b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.order.uni.read.delete.yaml @@ -10,6 +10,7 @@ spec: path: /mefApi/sonata/productOrderingManagement/v10/productOrder/{id} method: get productType: uni + actionType: delete endpoints: - id: retrieve connection detail by id path: "" diff --git a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.order.uni.read.yaml b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.order.uni.read.yaml index 99f8a65e..a88539a0 100644 --- a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.order.uni.read.yaml +++ b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets-mappers/api-target-mapper.order.uni.read.yaml @@ -11,6 +11,7 @@ spec: path: /mefApi/sonata/productOrderingManagement/v10/productOrder/{id} method: get productType: uni + actionType: add endpoints: - id: retrieve connection detail by id path: "" diff --git a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets/api-target.order.eline.read.delete.yaml b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets/api-target.order.eline.read.delete.yaml index 3fd9409b..abb99e7f 100644 --- a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets/api-target.order.eline.read.delete.yaml +++ b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets/api-target.order.eline.read.delete.yaml @@ -15,6 +15,7 @@ spec: path: /mefApi/sonata/productOrderingManagement/v10/productOrder/{id} method: get productType: access_e_line + actionType: delete endpoints: - id: retrieve connection detail by id of eline delete order path: "" diff --git a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets/api-target.order.uni.read.delete.yaml b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets/api-target.order.uni.read.delete.yaml index 1ed3c88c..bc1b6f4e 100644 --- a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets/api-target.order.uni.read.delete.yaml +++ b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/api-targets/api-target.order.uni.read.delete.yaml @@ -15,6 +15,7 @@ spec: path: /mefApi/sonata/productOrderingManagement/v10/productOrder/{id} method: get productType: uni + actionType: delete endpoints: - id: retrieve connection detail by id of uni delete order path: "" diff --git a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/apis/api.order.yaml b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/apis/api.order.yaml index 07cb9796..b8e94d96 100644 --- a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/apis/api.order.yaml +++ b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/apis/api.order.yaml @@ -20,6 +20,9 @@ spec: - ACCESS_E_LINE - path: /mefApi/sonata/productOrderingManagement/v10/productOrder/{id} method: get + actionTypes: + - add + - delete productTypes: - UNI - ACCESS_E_LINE diff --git a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/mapping-matrix/mapping.matrix.order.yaml b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/mapping-matrix/mapping.matrix.order.yaml deleted file mode 100644 index 7b140309..00000000 --- a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/mapping-matrix/mapping.matrix.order.yaml +++ /dev/null @@ -1,40 +0,0 @@ ---- -kind: kraken.product.mapping.matrix -apiVersion: v1 -metadata: - key: mef.sonata.api.matrix.order - name: MEF Sonata API - labels: - mef-api-release: grace - version: 11 -spec: - matrix: - mef.sonata.api-target.order.uni.add: - - name: product_type_UNI - path: "$.body.productOrderItem[*].product.productConfiguration.['@type']" - expected: UNI - - name: action_add - path: "$.body.productOrderItem[*].['action']" - expected: add - mef.sonata.api-target.order.eline.add: - - name: product_type_eline - path: "$.body.productOrderItem[*].product.productConfiguration.['@type']" - expected: ACCESS_E_LINE - - name: action_add - path: "$.body.productOrderItem[*].['action']" - expected: add - mef.sonata.api-target.order.eline.delete: - - name: product_type_eline - path: "$.body.productOrderItem[*].product.productConfiguration.['@type']" - expected: ACCESS_E_LINE - - name: action_delete - path: "$.body.productOrderItem[*].['action']" - expected: delete - mef.sonata.api-target.order.uni.delete: - - name: product_type_uni - path: "$.body.productOrderItem[*].product.productConfiguration.['@type']" - expected: UNI - - name: action_delete - path: "$.body.productOrderItem[*].['action']" - expected: delete - diff --git a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/mapping-matrix/mapping.matrix.quote.yaml b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/mapping-matrix/mapping.matrix.quote.yaml deleted file mode 100644 index c9a4dea6..00000000 --- a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/mapping-matrix/mapping.matrix.quote.yaml +++ /dev/null @@ -1,69 +0,0 @@ ---- -kind: kraken.product.mapping.matrix -apiVersion: v1 -metadata: - key: mef.sonata.api.matrix.quote - name: MEF Sonata API - labels: - mef-api-release: grace - version: 12 -spec: - matrix: - mef.sonata.api-target.quote.uni.add: - - name: enabled - expected: false - - name: product_type_UNI - path: "$.body.quoteItem[*].product.productConfiguration.['@type']" - expected: UNI - - name: action_add - path: "$.body.quoteItem[*].['action']" - expected: add - - name: syn_mode_false - path: "$.body.instantSyncQuote" - expected: false - - name: buyer.requested.quote.level.firm - path: "$.body.buyerRequestedQuoteLevel" - expected: firm - mef.sonata.api-target.quote.eline.add: - - name: enabled - expected: false - - name: product_type_eline - path: "$.body.quoteItem[*].product.productConfiguration.['@type']" - expected: ACCESS_E_LINE - - name: action_add - path: "$.body.quoteItem[*].['action']" - expected: add - - name: syn_mode_false - path: "$.body.instantSyncQuote" - expected: false - - name: buyer.requested.quote.level.firm - path: "$.body.buyerRequestedQuoteLevel" - expected: firm - mef.sonata.api-target.quote.uni.add.sync: - - name: product_type_UNI - path: "$.body.quoteItem[*].product.productConfiguration.['@type']" - expected: UNI - - name: action_add - path: "$.body.quoteItem[*].['action']" - expected: add - - name: syn_mode_true - path: "$.body.instantSyncQuote" - expected: true - - name: buyer.requested.quote.level.firm - path: "$.body.buyerRequestedQuoteLevel" - expected: firm - mef.sonata.api-target.quote.eline.add.sync: - - name: product_type_eline - path: "$.body.quoteItem[*].product.productConfiguration.['@type']" - expected: ACCESS_E_LINE - - name: action_add - path: "$.body.quoteItem[*].['action']" - expected: add - - name: syn_mode_true - path: "$.body.instantSyncQuote" - expected: true - - name: buyer.requested.quote.level.firm - path: "$.body.buyerRequestedQuoteLevel" - expected: firm - - diff --git a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/product.yaml b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/product.yaml index 8b854a52..513f3fd2 100644 --- a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/product.yaml +++ b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/product.yaml @@ -86,12 +86,10 @@ spec: - classpath:/mef-sonata/api-targets-mappers/api-target-mapper.inventory.eline.read.yaml - classpath:/mef-sonata/api-targets-mappers/api-target-mapper.inventory.uni.read.yaml - classpath:/mef-sonata/mapping-matrix/mapping.matrix.address.validation.yaml - - classpath:/mef-sonata/mapping-matrix/mapping.matrix.order.yaml - classpath:/mef-sonata/mapping-matrix/mapping.matrix.order.uni.add.yaml - classpath:/mef-sonata/mapping-matrix/mapping.matrix.order.uni.delete.yaml - classpath:/mef-sonata/mapping-matrix/mapping.matrix.order.eline.delete.yaml - classpath:/mef-sonata/mapping-matrix/mapping.matrix.order.eline.add.yaml - - classpath:/mef-sonata/mapping-matrix/mapping.matrix.quote.yaml - classpath:/mef-sonata/mapping-matrix/mapping.matrix.quote.uni.add.sync.yaml - classpath:/mef-sonata/mapping-matrix/mapping.matrix.quote.uni.add.yaml - classpath:/mef-sonata/mapping-matrix/mapping.matrix.quote.eline.add.sync.yaml @@ -100,10 +98,8 @@ spec: - classpath:/mef-sonata/mapping-matrix/mapping.matrix.inventory.eline.read.yaml - classpath:/mef-sonata/mapping-matrix/mapping.matrix.inventory.uni.list.yaml - classpath:/mef-sonata/mapping-matrix/mapping.matrix.inventory.eline.list.yaml - - classpath:/mef-sonata/template-upgrade/release.1.5.6.yaml - - classpath:/mef-sonata/template-upgrade/release.1.5.7.yaml - - classpath:/mef-sonata/template-upgrade/release.1.5.8.yaml - classpath:/mef-sonata/template-upgrade/release.1.5.9.yaml + - classpath:/mef-sonata/template-upgrade/release.1.5.10.yaml templateUpgradePaths: diff --git a/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/template-upgrade/release.1.5.10.yaml b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/template-upgrade/release.1.5.10.yaml new file mode 100644 index 00000000..590116b3 --- /dev/null +++ b/kraken-java-sdk/kraken-java-sdk-mef/src/main/resources/mef-sonata/template-upgrade/release.1.5.10.yaml @@ -0,0 +1,13 @@ +--- +kind: kraken.product.template-upgrade +apiVersion: v1 +metadata: + key: kraken.product.template-upgrade.1.5.10 + name: V1.5.10 + labels: + productSpec: grace + productVersion: V1.5.10 + publishDate: 2024-11-13 16:14 + description: | + Fixed the status value always empty in the inventory list, and added a built-in process for empty value of id in response from downstream. + version: 2 \ No newline at end of file