File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/java/com/whiskels/notifier/reporting/service/customer/payment/domain Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 3
3
import com .fasterxml .jackson .annotation .JsonFormat ;
4
4
import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
5
5
import com .fasterxml .jackson .annotation .JsonProperty ;
6
+ import com .fasterxml .jackson .annotation .JsonSetter ;
7
+ import com .fasterxml .jackson .annotation .Nulls ;
6
8
import com .whiskels .notifier .reporting .domain .AbstractTimeStampedEntity ;
7
9
import lombok .AllArgsConstructor ;
8
10
import lombok .Getter ;
@@ -31,10 +33,13 @@ public class FinancialOperation extends AbstractTimeStampedEntity implements Com
31
33
@ JsonFormat (shape = JsonFormat .Shape .STRING , pattern = "yyyy-MM-dd" )
32
34
private LocalDate date ;
33
35
private String currency ;
36
+ @ JsonSetter (nulls = Nulls .SKIP )
34
37
private BigDecimal amount = BigDecimal .ZERO ;
35
38
@ JsonProperty ("amount_usd" )
39
+ @ JsonSetter (nulls = Nulls .SKIP )
36
40
private BigDecimal amountUsd = BigDecimal .ZERO ;
37
41
@ JsonProperty ("amount_rub" )
42
+ @ JsonSetter (nulls = Nulls .SKIP )
38
43
private BigDecimal amountRub = BigDecimal .ZERO ;
39
44
private String bank ;
40
45
@ JsonProperty ("bank_account" )
You can’t perform that action at this time.
0 commit comments