通用模块-快递

This commit is contained in:
wuchunlei
2024-03-26 11:25:00 +08:00
parent 02409d6137
commit 1cfa376ade
17 changed files with 693 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
package com.peanut.modules.common.vo;
import lombok.Data;
import java.math.BigDecimal;
/**
* 申报价值
*/
@Data
public class DutiableVo {
private BigDecimal DeclaredValue;
}

View File

@@ -0,0 +1,18 @@
package com.peanut.modules.common.vo;
import lombok.Data;
/**
* @Description: 快递公司 Vo
*/
@Data
public class ExpressCompanyCommonVo {
/**
* 快递公司名称
*/
private String expressName;
/**
* 快递公司编码
*/
private String expressCode;
}

View File

@@ -0,0 +1,18 @@
package com.peanut.modules.common.vo;
import lombok.Data;
/**
* @Description: 快递公司 Vo
*/
@Data
public class ExpressCompanyVo {
/**
* 快递公司名称
*/
private String expressName;
/**
* 快递公司编码
*/
private String expressCode;
}

View File

@@ -0,0 +1,102 @@
package com.peanut.modules.common.vo;
import com.peanut.modules.common.entity.ExpressCommodity;
import lombok.Data;
import java.util.List;
/**
* @Description: 快递请求 Value Object
*/
@Data
public class ExpressOrderRequestVo {
/**
* 订单号
*/
private String OrderCode;
/**
* 快递公司编码
*/
private String ShipperCode;
/**
* 支付类型 1 - 现付 2 - 到付 3 - 月结 4 - 第三方付
*/
private int payType;
/**
* 快递公司业务类型
*/
private int ExpType;
/**
* 月付款账号
*/
private String MonthCode;
/**
* 快递运费
*/
private Double Cost;
/**
* 其他费用
*/
private Double OtherCost;
/**
* 发货人
*/
private ExpressUserInfoVo Sender;
/**
* 收货人
*/
private ExpressUserInfoVo Receiver;
/**
* 货物信息
*/
private List<ExpressCommodity> Commodity;
/**
* 重量
*/
private Double Weight;
/**
* 包裹数量
*/
private Integer Quantity;
/**
* 包裹体积
*/
private Double Volume;
/**
* 备注
*/
private String Remark;
/**
* 是否返回电子面单模板
*/
private Integer IsReturnPrintTemplate;
/**
* 快递客户号
*/
private String CustomerName;
/**
* 快递客户密码
*/
private String CustomerPwd;
/**
* 面单规格
*/
private String TemplateSize;
/**
* 货物单价的币种:港澳台必填
* CNY: 人民币
* HKD: 港币
* NTD: 新台币
* MOP: 澳门元
*/
private String CurrencyCode;
/**
* 申报价值
*/
private DutiableVo Dutiable;
}

View File

@@ -0,0 +1,34 @@
package com.peanut.modules.common.vo;
import lombok.Data;
/**
* @Description: 快递下单响应 Value Object
*/
@Data
public class ExpressOrderResponseVo {
/**
* 用户ID
*/
private String EBusinessID;
/**
* 返回模板
*/
private String PrintTemplate;
/**
* 是否成功
*/
private boolean Success;
/**
* 结果响应编码
*/
private String ResultCode;
/**
* 原因
*/
private String Reason;
/**
* 订单
*/
private ExpressResponseOrderVo Order;
}

View File

@@ -0,0 +1,22 @@
package com.peanut.modules.common.vo;
import lombok.Data;
/**
* @Description: 快递查询请求 Value Object
*/
@Data
public class ExpressQueryRequestVo {
/**
* 快递编码
*/
private String ShipperCode;
/**
* 快递单号
*/
private String LogisticCode;
/**
* 手机尾号
*/
private String CustomerName;
}

View File

@@ -0,0 +1,70 @@
package com.peanut.modules.common.vo;
import lombok.Data;
/**
* @Description: 快递查询相应 Order Value Object
*/
@Data
public class ExpressResponseOrderVo {
/**
* 快递单号
*/
private String LogisticCode;
/**
* 订单号
*/
private String OrderCode;
/**
* 快递公司代码
*/
private String ShipperCode;
/**
* 大头笔(官网文档)
*/
private String MarkDestination;
/**
* 签回单单号
*/
private String SignWaybillCode;
/**
* 始发地区域编码
*/
private String OriginCode;
/**
* 事发地名称
*/
private String OriginName;
/**
* 目的地区域编码
*/
private String DestinatioCode;
/**
* 目的地名称
*/
private String DestinatioName;
/**
* 分拣编码
*/
private String SortingCode;
/**
* 邮包编码
*/
private String PackageCode;
/**
* 集包地
*/
private String PackageName;
/**
* 目的地分拨
*/
private String DestinationAllocationCentre;
/**
* 配送产品类型
*/
private String TransType;
/**
* 运输方式
*/
private String TransportType;
}

View File

@@ -0,0 +1,38 @@
package com.peanut.modules.common.vo;
import lombok.Data;
/**
* @Description: 快递收/发件人 Value Object
*/
@Data
public class ExpressUserInfoVo {
/**
* 公司
*/
private String Company;
/**
* 姓名
*/
private String Name;
/**
* 电话
*/
private String Mobile;
/**
* 省份
*/
private String ProvinceName;
/**
* 城市
*/
private String cityName;
/**
* 区
*/
private String ExpAreaName;
/**
* 详细地址
*/
private String Address;
}

View File

@@ -0,0 +1,26 @@
package com.peanut.modules.common.vo;
import lombok.Data;
/**
* @Description: 面单响应 value object
*/
@Data
public class PrintTemplateVo {
/**
* 快递单号
*/
private String expressOrderSn;
/**
* 面单
*/
private String printTemplate;
/**
* 快递公司代码
*/
private String expressCompanyCode;
/**
* 是否打印过
*/
private int templatedPrinted;
}