|
|
|
@ -13,7 +13,7 @@ public final class OutboundQuery { |
|
|
|
private final Instant after; |
|
|
|
private final Instant after; |
|
|
|
private final Instant before; |
|
|
|
private final Instant before; |
|
|
|
private final List<String> statuses; |
|
|
|
private final List<String> statuses; |
|
|
|
private final String providerOrderId; |
|
|
|
private final String outboundRequestNo; |
|
|
|
private final String orderRef; |
|
|
|
private final String orderRef; |
|
|
|
private final int pageSize; |
|
|
|
private final int pageSize; |
|
|
|
private final String cursor; |
|
|
|
private final String cursor; |
|
|
|
@ -25,7 +25,7 @@ public final class OutboundQuery { |
|
|
|
this.after = b.after; |
|
|
|
this.after = b.after; |
|
|
|
this.before = b.before; |
|
|
|
this.before = b.before; |
|
|
|
this.statuses = Collections.unmodifiableList(new ArrayList<String>(b.statuses)); |
|
|
|
this.statuses = Collections.unmodifiableList(new ArrayList<String>(b.statuses)); |
|
|
|
this.providerOrderId = b.providerOrderId; |
|
|
|
this.outboundRequestNo = b.outboundRequestNo; |
|
|
|
this.orderRef = b.orderRef; |
|
|
|
this.orderRef = b.orderRef; |
|
|
|
this.pageSize = b.pageSize; |
|
|
|
this.pageSize = b.pageSize; |
|
|
|
this.cursor = b.cursor; |
|
|
|
this.cursor = b.cursor; |
|
|
|
@ -50,9 +50,15 @@ public final class OutboundQuery { |
|
|
|
return statuses; |
|
|
|
return statuses; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 按仓出库单号精确查。 */ |
|
|
|
/** |
|
|
|
public String providerOrderId() { |
|
|
|
* 按<b>来源单号</b>(我们下发的 {@code outboundRequestNo})精确查。 |
|
|
|
return providerOrderId; |
|
|
|
* |
|
|
|
|
|
|
|
* <p>原名 {@code providerOrderId} 有误导:它装的从来不是仓内部 id。 |
|
|
|
|
|
|
|
* 运去哪创建订单(API 123)返回的 {@code orderId} 是内部数字 id, |
|
|
|
|
|
|
|
* 只能用于列表/关联;详情查询(API 128)只认来源单号。</p> |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public String outboundRequestNo() { |
|
|
|
|
|
|
|
return outboundRequestNo; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -80,7 +86,7 @@ public final class OutboundQuery { |
|
|
|
.after(after) |
|
|
|
.after(after) |
|
|
|
.before(before) |
|
|
|
.before(before) |
|
|
|
.statuses(statuses) |
|
|
|
.statuses(statuses) |
|
|
|
.providerOrderId(providerOrderId) |
|
|
|
.outboundRequestNo(outboundRequestNo) |
|
|
|
.orderRef(orderRef) |
|
|
|
.orderRef(orderRef) |
|
|
|
.pageSize(pageSize) |
|
|
|
.pageSize(pageSize) |
|
|
|
.cursor(cursor); |
|
|
|
.cursor(cursor); |
|
|
|
@ -91,7 +97,7 @@ public final class OutboundQuery { |
|
|
|
private Instant after; |
|
|
|
private Instant after; |
|
|
|
private Instant before; |
|
|
|
private Instant before; |
|
|
|
private final List<String> statuses = new ArrayList<String>(); |
|
|
|
private final List<String> statuses = new ArrayList<String>(); |
|
|
|
private String providerOrderId; |
|
|
|
private String outboundRequestNo; |
|
|
|
private String orderRef; |
|
|
|
private String orderRef; |
|
|
|
private int pageSize = 100; |
|
|
|
private int pageSize = 100; |
|
|
|
private String cursor; |
|
|
|
private String cursor; |
|
|
|
@ -120,8 +126,8 @@ public final class OutboundQuery { |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Builder providerOrderId(String providerOrderId) { |
|
|
|
public Builder outboundRequestNo(String outboundRequestNo) { |
|
|
|
this.providerOrderId = providerOrderId; |
|
|
|
this.outboundRequestNo = outboundRequestNo; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|