Commit e317d086 by 刘鹏飞

增加更新买一赠一寄件服送券信息接口

parent 7f0da2ac
...@@ -230,4 +230,9 @@ public class InterfaceAddressConstant { ...@@ -230,4 +230,9 @@ public class InterfaceAddressConstant {
*/ */
public static final String UPDATE_COST_COUPONCODE = "/order/v2/mcCafe/updateCostCouponCode"; public static final String UPDATE_COST_COUPONCODE = "/order/v2/mcCafe/updateCostCouponCode";
/**
* 更新买一赠一寄件发送优惠券信息
*/
public static final String UPDATE_BUYONEGIVEONE_SEND_COUPON = "order/v2/updateBuyOneGiveOneSendCoupon";
} }
package com.freemud.application.sdk.api.ordercenter.request;
import lombok.Data;
import java.util.List;
/**
* @author pengfei.liu
* @Description: 买一赠一寄件发送优惠券信息
* @date 2020/11/28
*/
@Data
public class OrderSendCouponReq {
/**
* 商户号
*/
private String partnerId;
/**
* 订单编码
*/
private String orderCode;
/**
* 第三方订单号
*/
private String thirdOrderCode;
private Byte orderClient;
/**
* 买一赠一寄件信息
*/
private List<OrderSendCouponUpdateReq> chooseGoods;
}
package com.freemud.application.sdk.api.ordercenter.request;
import lombok.Data;
import java.util.Date;
/**
* @Auther: pengfei.liu
* @Date: 2020/11/28
* @Description:
*/
@Data
public class OrderSendCouponUpdateReq {
/**
* ID主键
*/
private Long id;
/**
* 商户ID
*/
private String partnerId;
/**
* 门店ID
*/
private String storeId;
/**
* 订单id
*/
private Long orderId;
/**
* 订单编码
*/
private String orderCode;
/**
* 活动编号
*/
private String activeCode;
/**
* 活动类型
*/
private String activeType;
/**
* 商品SKU,商品服务唯一标识
*/
private String goodsId;
/**
* 商品名称
*/
private String goodsName;
/**
* 券
*/
private String coupon;
/**
* 券码
*/
private String couponCode;
/**
* 0已作废1已发送
*/
private Integer couponCodeStatus;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
}
...@@ -818,6 +818,17 @@ public class OrderSdkService { ...@@ -818,6 +818,17 @@ public class OrderSdkService {
return responseHandle(responseDTO); return responseHandle(responseDTO);
} }
/**
* 更新买一赠一寄件发送优惠券信息
* @return
*/
public BaseResponse updateBuyOneGiveOneSendCoupon(OrderSendCouponReq request, String trackingNo) {
String url = InterfaceAddressConstant.UPDATE_BUYONEGIVEONE_SEND_COUPON;
OrderBaseResp responseDTO = RequestThirdPartyUtils.httpJsonReqComplexNew(restTemplate, url,
createBaseRequest(request, trackingNo), new ParameterizedTypeReference<OrderBaseResp<OrderBaseResp>>() {
});
return responseHandle(responseDTO);
}
/** /**
* 停车场 创建订单 * 停车场 创建订单
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment