Skip to content

Commit

Permalink
fix(dvs-upstream): lombok annotation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vincejv committed Aug 28, 2023
1 parent 7725350 commit bbd1d10
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/dtone/dvs/dto/BenefitAmountFixed.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class BenefitAmountFixed extends Benefit {
@EqualsAndHashCode
public class BenefitAmountFixed {

@JsonProperty(value = "base")
private Double base;
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/dtone/dvs/dto/BenefitFixed.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@ToString(callSuper = true)
public class BenefitFixed extends Benefit {

@JsonProperty(value = "amount")
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/dtone/dvs/dto/BenefitRanged.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@ToString(callSuper = true)
public class BenefitRanged extends Benefit {

@JsonProperty(value = "amount")
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/dtone/dvs/dto/LookupOperatorRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

@JsonInclude(Include.NON_NULL)
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@ToString(callSuper = true)
public class LookupOperatorRequest extends ApiRequest {

@JsonProperty(value = "mobile_number")
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/dtone/dvs/dto/ProductFixed.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@ToString(callSuper = true)
public class ProductFixed extends Product {

@JsonProperty(value = "benefits")
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/dtone/dvs/dto/ProductPriceFixed.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@ToString(callSuper = true)
public class ProductPriceFixed extends ProductPrice {

@JsonProperty(value = "amount")
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/dtone/dvs/dto/ProductPriceRanged.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@ToString(callSuper = true)
public class ProductPriceRanged extends ProductPrice {

@JsonProperty(value = "amount")
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/dtone/dvs/dto/ProductRanged.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@ToString(callSuper = true)
public class ProductRanged extends Product {

@JsonProperty(value = "benefits")
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/dtone/dvs/dto/ProductSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@JsonIgnoreProperties(ignoreUnknown = true)
@ToString(callSuper = true)
public class ProductSource {

@JsonProperty(value = "unit_type")
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/dtone/dvs/dto/Source.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@ToString(callSuper = true)
public class Source extends ProductSource {

@JsonProperty(value = "amount")
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/dtone/dvs/dto/SourceFixed.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@ToString(callSuper = true)
public class SourceFixed extends ProductSource {

@JsonProperty(value = "amount")
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/dtone/dvs/dto/SourceRanged.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@ToString(callSuper = true)
public class SourceRanged extends ProductSource {

@JsonProperty(value = "amount")
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/dtone/dvs/dto/TransactionDeserializer.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.dtone.dvs.dto;

import java.io.IOException;
import java.io.Serial;
import java.util.List;

import com.dtone.dvs.util.ProductUtils;
Expand All @@ -13,6 +14,7 @@

public class TransactionDeserializer extends StdDeserializer<Transaction> {

@Serial
private static final long serialVersionUID = -6186626005507523730L;
private static final ObjectMapper mapper = new ObjectMapper();

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/dtone/dvs/dto/TransactionFixed.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@ToString(callSuper = true)
public class TransactionFixed extends Transaction {

@JsonProperty(value = "benefits")
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/dtone/dvs/dto/TransactionRanged.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@ToString(callSuper = true)
public class TransactionRanged extends Transaction {

@JsonProperty(value = "benefits")
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/dtone/dvs/dto/TransactionRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@ToString(callSuper = true)
public class TransactionRequest extends ApiRequest {

@JsonProperty(value = "external_id")
Expand Down

0 comments on commit bbd1d10

Please sign in to comment.