|
|
|
@ -67,6 +67,16 @@ public final class OutboundCommand { |
|
|
|
/** 是否 SFP(Seller Fulfilled Prime);null 表示不传,由仓按默认否处理。 */ |
|
|
|
/** 是否 SFP(Seller Fulfilled Prime);null 表示不传,由仓按默认否处理。 */ |
|
|
|
private final Boolean sfp; |
|
|
|
private final Boolean sfp; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ==================== 仓方原始字段(下单时用)====================
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 是否需要签名签收;null 表示不传,由仓方按默认处理。 |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* <p>信仓 {@code is_sign}({@code "1"} / {@code "0"})。适配器不会替你猜: |
|
|
|
|
|
|
|
* 不传就不发,仓方默认值与业务要求未必一致。</p> |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
private final Boolean signatureRequired; |
|
|
|
|
|
|
|
|
|
|
|
private OutboundCommand(Builder b) { |
|
|
|
private OutboundCommand(Builder b) { |
|
|
|
if (b.outboundRequestNo == null || b.outboundRequestNo.trim().isEmpty()) { |
|
|
|
if (b.outboundRequestNo == null || b.outboundRequestNo.trim().isEmpty()) { |
|
|
|
throw new IllegalArgumentException("outboundRequestNo must not be blank"); |
|
|
|
throw new IllegalArgumentException("outboundRequestNo must not be blank"); |
|
|
|
@ -96,6 +106,7 @@ public final class OutboundCommand { |
|
|
|
this.labelContentBase64 = b.labelContentBase64; |
|
|
|
this.labelContentBase64 = b.labelContentBase64; |
|
|
|
this.shopName = b.shopName; |
|
|
|
this.shopName = b.shopName; |
|
|
|
this.sfp = b.sfp; |
|
|
|
this.sfp = b.sfp; |
|
|
|
|
|
|
|
this.signatureRequired = b.signatureRequired; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static Builder builder() { |
|
|
|
public static Builder builder() { |
|
|
|
@ -207,6 +218,11 @@ public final class OutboundCommand { |
|
|
|
return sfp; |
|
|
|
return sfp; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 是否需要签名签收;null 表示不传(信仓 {@code is_sign})。 */ |
|
|
|
|
|
|
|
public Boolean signatureRequired() { |
|
|
|
|
|
|
|
return signatureRequired; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static final class Builder { |
|
|
|
public static final class Builder { |
|
|
|
|
|
|
|
|
|
|
|
private String outboundRequestNo; |
|
|
|
private String outboundRequestNo; |
|
|
|
@ -230,6 +246,7 @@ public final class OutboundCommand { |
|
|
|
private String labelContentBase64; |
|
|
|
private String labelContentBase64; |
|
|
|
private String shopName; |
|
|
|
private String shopName; |
|
|
|
private Boolean sfp; |
|
|
|
private Boolean sfp; |
|
|
|
|
|
|
|
private Boolean signatureRequired; |
|
|
|
|
|
|
|
|
|
|
|
public Builder outboundRequestNo(String outboundRequestNo) { |
|
|
|
public Builder outboundRequestNo(String outboundRequestNo) { |
|
|
|
this.outboundRequestNo = outboundRequestNo; |
|
|
|
this.outboundRequestNo = outboundRequestNo; |
|
|
|
@ -353,6 +370,12 @@ public final class OutboundCommand { |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 是否需要签名签收;null 表示不传(信仓 {@code is_sign})。 */ |
|
|
|
|
|
|
|
public Builder signatureRequired(Boolean v) { |
|
|
|
|
|
|
|
this.signatureRequired = v; |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public OutboundCommand build() { |
|
|
|
public OutboundCommand build() { |
|
|
|
return new OutboundCommand(this); |
|
|
|
return new OutboundCommand(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|