@ -89,6 +89,9 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@@ -89,6 +89,9 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@ -344,11 +347,13 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@@ -344,11 +347,13 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@ -494,8 +499,18 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@@ -494,8 +499,18 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@ -516,12 +531,13 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@@ -516,12 +531,13 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@ -542,7 +558,7 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@@ -542,7 +558,7 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@ -552,8 +568,9 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@@ -552,8 +568,9 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@ -564,8 +581,9 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@@ -564,8 +581,9 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@ -586,17 +604,6 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@@ -586,17 +604,6 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@ -657,6 +664,21 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@@ -657,6 +664,21 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@ -666,7 +688,20 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@@ -666,7 +688,20 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@ -679,8 +714,10 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@@ -679,8 +714,10 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
}
longdays=Duration.between(from,to).toDays();
if(days>WalmartConstants.MAX_ORDER_WINDOW_DAYS){
throwunsupportedFilter("walmart /v3/orders window is "+days+" days, max "
+WalmartConstants.MAX_ORDER_WINDOW_DAYS+"; split the window instead of truncating");
throwunsupportedFilter("walmart /v3/orders window is "+days
+" days, over the local limit of "
+WalmartConstants.MAX_ORDER_WINDOW_DAYS
+" (platform default is 7 days); split the window instead of truncating");
}
}
@ -692,20 +729,6 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@@ -692,20 +729,6 @@ public final class WalmartAdapter implements SalesOrderCapable, ProductCapable,
@ -38,7 +38,12 @@ public final class JacksonJsonCodec implements JsonCodec {
@@ -38,7 +38,12 @@ public final class JacksonJsonCodec implements JsonCodec {
try{
returnmapper.readValue(json,type);
}catch(Exceptione){
thrownewIllegalArgumentException("deserialize failed for "+type.getSimpleName(),e);
// 带上 Jackson 的原始信息:它含字段路径与 line/column,排障时是唯一线索。
// 只包一层类型名的话,线上只能看到「反序列化失败」,不知道该改哪个字段。
Stringdetail=e.getMessage();
Stringmessage="deserialize failed for "+type.getSimpleName()