From ffff19f029973c67e352a1f41b8b9ab80383d722 Mon Sep 17 00:00:00 2001 From: juanroute4me Date: Wed, 7 Dec 2022 10:08:12 -0500 Subject: [PATCH] Removed prefix custom_fields from Bundling Examples --- pom.xml | 2 +- .../bundling/BundlingByAddressAndProrityConstraint.java | 2 +- .../sdk/examples/bundling/BundlingUsingMultipleFields.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 21b1a6e..40a28a6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 io.github.route4me route4me-java-sdk - 1.14.0 + 1.14.1 jar UTF-8 diff --git a/src/main/java/com/route4me/sdk/examples/bundling/BundlingByAddressAndProrityConstraint.java b/src/main/java/com/route4me/sdk/examples/bundling/BundlingByAddressAndProrityConstraint.java index 7a6208f..137ad7c 100644 --- a/src/main/java/com/route4me/sdk/examples/bundling/BundlingByAddressAndProrityConstraint.java +++ b/src/main/java/com/route4me/sdk/examples/bundling/BundlingByAddressAndProrityConstraint.java @@ -136,7 +136,7 @@ public static void main(String[] args) { bundling.setMergeMode(BundlingEnum.BundledItemsMode.KEEP_AS_SEPARATE_DESTINATIONS.getValue()); bundling.setMode(BundlingEnum.BundlingMode.BUNDLING_BY_ADDRESS.getValue()); - List modeParams = Arrays.asList("custom_fields.BUNDLING_KEY", "custom_fields.LOCATION_ID"); + List modeParams = Arrays.asList("BUNDLING_KEY", "LOCATION_ID"); bundling.setModeParams(modeParams); ServiceTimeRules serviceTimeRules = new ServiceTimeRules(); serviceTimeRules.setFirstItemMode(BundlingEnum.BundlingFirstItemMode.USE_CUSTOM_SERVICE_TIME.getValue()); diff --git a/src/main/java/com/route4me/sdk/examples/bundling/BundlingUsingMultipleFields.java b/src/main/java/com/route4me/sdk/examples/bundling/BundlingUsingMultipleFields.java index 21b4f57..2a2f800 100644 --- a/src/main/java/com/route4me/sdk/examples/bundling/BundlingUsingMultipleFields.java +++ b/src/main/java/com/route4me/sdk/examples/bundling/BundlingUsingMultipleFields.java @@ -181,7 +181,7 @@ public static void main(String[] args) { bundling.setMergeMode(BundlingEnum.BundledItemsMode.KEEP_AS_SEPARATE_DESTINATIONS.getValue()); bundling.setMode(BundlingEnum.BundlingMode.BUNDLING_BY_MULTIPLE_FIELDS.getValue()); - List modeParams = Arrays.asList("custom_fields.BUNDLING_KEY", "custom_fields.LOCATION_ID"); + List modeParams = Arrays.asList("BUNDLING_KEY", "LOCATION_ID"); bundling.setModeParams(modeParams); ServiceTimeRules serviceTimeRules = new ServiceTimeRules(); serviceTimeRules.setFirstItemMode(BundlingEnum.BundlingFirstItemMode.USE_CUSTOM_SERVICE_TIME.getValue());