fix(订单中心):携程新增优惠券回调请求体封装
This commit is contained in:
+119
@@ -0,0 +1,119 @@
|
|||||||
|
package com.central.order.model;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 携程创建订单请求
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class CtripCreateOrderRequest {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 请求头
|
||||||
|
*/
|
||||||
|
private CtripHeader header;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 请求体
|
||||||
|
*/
|
||||||
|
private CtripOrderBody body;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 携程请求头
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public static class CtripHeader {
|
||||||
|
private String requestTime;
|
||||||
|
private String accountId;
|
||||||
|
private String sign;
|
||||||
|
private String serviceName;
|
||||||
|
private String version;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 携程订单体
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public static class CtripOrderBody {
|
||||||
|
private String otaOrderId;
|
||||||
|
private String sequenceId;
|
||||||
|
private List<CtripOrderItem> items;
|
||||||
|
private List<CtripContact> contacts;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 携程订单项
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public static class CtripOrderItem {
|
||||||
|
private List<CtripPassenger> passengers;
|
||||||
|
private java.math.BigDecimal cost;
|
||||||
|
private Integer quantity;
|
||||||
|
private java.math.BigDecimal salePrice;
|
||||||
|
private String remark;
|
||||||
|
private String useEndDate;
|
||||||
|
private String locale;
|
||||||
|
private String useStartDate;
|
||||||
|
private String priceCurrency;
|
||||||
|
private List<Object> adjunctions;
|
||||||
|
private java.math.BigDecimal price;
|
||||||
|
private String PLU;
|
||||||
|
private Object deposit;
|
||||||
|
private String distributionChannel;
|
||||||
|
private String costCurrency;
|
||||||
|
private String salePriceCurrency;
|
||||||
|
private CtripExpressDelivery expressDelivery;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 携程乘客信息
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public static class CtripPassenger {
|
||||||
|
private String cardIssuePlace;
|
||||||
|
private String lastName;
|
||||||
|
private String cardIssueCountry;
|
||||||
|
private Integer shoeSize;
|
||||||
|
private String gender;
|
||||||
|
private String cardIssueDate;
|
||||||
|
private String intlCode;
|
||||||
|
private String nationalityName;
|
||||||
|
private String mobile;
|
||||||
|
private String cardType;
|
||||||
|
private Integer weight;
|
||||||
|
private Integer myopiaDegreeL;
|
||||||
|
private String birthDate;
|
||||||
|
private String cardNo;
|
||||||
|
private String ageType;
|
||||||
|
private Integer myopiaDegreeR;
|
||||||
|
private String firstName;
|
||||||
|
private String birthPlace;
|
||||||
|
private String nationalityCode;
|
||||||
|
private String name;
|
||||||
|
private String passengerId;
|
||||||
|
private String cardValidDate;
|
||||||
|
private Integer height;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 携程联系人信息
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public static class CtripContact {
|
||||||
|
private String intlCode;
|
||||||
|
private String name;
|
||||||
|
private String mobile;
|
||||||
|
private String optionalMobile;
|
||||||
|
private String optionalIntlCode;
|
||||||
|
private String email;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 携程快递信息
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public static class CtripExpressDelivery {
|
||||||
|
private String type;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user