|
|
@@ -0,0 +1,192 @@
|
|
|
+package com.ydtech.modules.order.entity.api.bohai.response;
|
|
|
+
|
|
|
+import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
+@NoArgsConstructor
|
|
|
+@Data
|
|
|
+public class QuotationResponse extends BohaiBaseResponse {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 8400108878099661258L;
|
|
|
+
|
|
|
+
|
|
|
+ @JsonProperty("data")
|
|
|
+ private DataDTO data;
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class DataDTO {
|
|
|
+ @JsonProperty("premium")
|
|
|
+ private String premium;
|
|
|
+ @JsonProperty("vehicle")
|
|
|
+ private VehicleDTO vehicle;
|
|
|
+ @JsonProperty("carOwner")
|
|
|
+ private CarOwnerDTO carOwner;
|
|
|
+ @JsonProperty("holder")
|
|
|
+ private HolderDTO holder;
|
|
|
+ @JsonProperty("insureder")
|
|
|
+ private InsurederDTO insureder;
|
|
|
+ @JsonProperty("businessPolicy")
|
|
|
+ private BusinessPolicyDTO businessPolicy;
|
|
|
+ @JsonProperty("trafficPolicy")
|
|
|
+ private TrafficPolicyDTO trafficPolicy;
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class VehicleDTO {
|
|
|
+ @JsonProperty("currentValue")
|
|
|
+ private String currentValue;
|
|
|
+ @JsonProperty("carVin")
|
|
|
+ private String carVin;
|
|
|
+ @JsonProperty("vehicleModelCode")
|
|
|
+ private String vehicleModelCode;
|
|
|
+ @JsonProperty("engineNo")
|
|
|
+ private String engineNo;
|
|
|
+ @JsonProperty("plateNo")
|
|
|
+ private String plateNo;
|
|
|
+ @JsonProperty("plateColor")
|
|
|
+ private String plateColor;
|
|
|
+ @JsonProperty("registerDate")
|
|
|
+ private String registerDate;
|
|
|
+ @JsonProperty("purchasePrice")
|
|
|
+ private String purchasePrice;
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class CarOwnerDTO {
|
|
|
+ @JsonProperty("ownerName")
|
|
|
+ private String ownerName;
|
|
|
+ @JsonProperty("certType")
|
|
|
+ private String certType;
|
|
|
+ @JsonProperty("certNo")
|
|
|
+ private String certNo;
|
|
|
+ @JsonProperty("phoneNumber")
|
|
|
+ private String phoneNumber;
|
|
|
+ @JsonProperty("email")
|
|
|
+ private String email;
|
|
|
+ @JsonProperty("address")
|
|
|
+ private String address;
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class HolderDTO {
|
|
|
+ @JsonProperty("holderName")
|
|
|
+ private String holderName;
|
|
|
+ @JsonProperty("certType")
|
|
|
+ private String certType;
|
|
|
+ @JsonProperty("certNo")
|
|
|
+ private String certNo;
|
|
|
+ @JsonProperty("phoneNumber")
|
|
|
+ private String phoneNumber;
|
|
|
+ @JsonProperty("email")
|
|
|
+ private String email;
|
|
|
+ @JsonProperty("address")
|
|
|
+ private String address;
|
|
|
+ @JsonProperty("invoiceType")
|
|
|
+ private String invoiceType;
|
|
|
+ @JsonProperty("bizFormatType")
|
|
|
+ private String bizFormatType;
|
|
|
+ @JsonProperty("forceFormatType")
|
|
|
+ private String forceFormatType;
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class InsurederDTO {
|
|
|
+ @JsonProperty("insuredName")
|
|
|
+ private String insuredName;
|
|
|
+ @JsonProperty("certType")
|
|
|
+ private String certType;
|
|
|
+ @JsonProperty("certNo")
|
|
|
+ private String certNo;
|
|
|
+ @JsonProperty("phoneNumber")
|
|
|
+ private String phoneNumber;
|
|
|
+ @JsonProperty("email")
|
|
|
+ private String email;
|
|
|
+ @JsonProperty("address")
|
|
|
+ private String address;
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class BusinessPolicyDTO {
|
|
|
+ @JsonProperty("coverages")
|
|
|
+ private List<CoveragesDTO> coverages;
|
|
|
+ @JsonProperty("specialTermItems")
|
|
|
+ private List<SpecialTermItemsDTO> specialTermItems;
|
|
|
+ @JsonProperty("applicationNo")
|
|
|
+ private String applicationNo;
|
|
|
+ @JsonProperty("policyNo")
|
|
|
+ private String policyNo;
|
|
|
+ @JsonProperty("premium")
|
|
|
+ private String premium;
|
|
|
+ @JsonProperty("sumInsurd")
|
|
|
+ private String sumInsurd;
|
|
|
+ @JsonProperty("startDate")
|
|
|
+ private String startDate;
|
|
|
+ @JsonProperty("endDate")
|
|
|
+ private String endDate;
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class CoveragesDTO {
|
|
|
+ @JsonProperty("coverageCode")
|
|
|
+ private String coverageCode;
|
|
|
+ @JsonProperty("coverageName")
|
|
|
+ private String coverageName;
|
|
|
+ @JsonProperty("isNonDeductionCovered")
|
|
|
+ private String isNonDeductionCovered;
|
|
|
+ @JsonProperty("sumInsurd")
|
|
|
+ private String sumInsurd;
|
|
|
+ @JsonProperty("premium")
|
|
|
+ private String premium;
|
|
|
+ @JsonProperty("floatingRate")
|
|
|
+ private String floatingRate;
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class SpecialTermItemsDTO {
|
|
|
+ @JsonProperty("specialTermCode")
|
|
|
+ private String specialTermCode;
|
|
|
+ @JsonProperty("specialTermText")
|
|
|
+ private String specialTermText;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class TrafficPolicyDTO {
|
|
|
+ @JsonProperty("applicationNo")
|
|
|
+ private String applicationNo;
|
|
|
+ @JsonProperty("policyNo")
|
|
|
+ private String policyNo;
|
|
|
+ @JsonProperty("sumInsurd")
|
|
|
+ private String sumInsurd;
|
|
|
+ @JsonProperty("premium")
|
|
|
+ private String premium;
|
|
|
+ @JsonProperty("vehicleTax")
|
|
|
+ private VehicleTaxDTO vehicleTax;
|
|
|
+ @JsonProperty("startDate")
|
|
|
+ private String startDate;
|
|
|
+ @JsonProperty("endDate")
|
|
|
+ private String endDate;
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ public static class VehicleTaxDTO {
|
|
|
+ @JsonProperty("totalAmount")
|
|
|
+ private String totalAmount;
|
|
|
+ @JsonProperty("taxType")
|
|
|
+ private String taxType;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|