ChangeCause.java

  1. package com.syntifi.near.api.model.common;

  2. import com.fasterxml.jackson.annotation.JsonInclude;
  3. import com.fasterxml.jackson.annotation.JsonInclude.Include;
  4. import com.fasterxml.jackson.annotation.JsonProperty;

  5. import lombok.Getter;
  6. import lombok.Setter;

  7. /**
  8.  * @author Alexandre Carvalho
  9.  * @author Andre Bertolace
  10.  * @since 0.0.1
  11.  */
  12. @Getter
  13. @Setter
  14. public class ChangeCause {
  15.     @JsonProperty("type")
  16.     private String type;

  17.     @JsonProperty("tx_hash")
  18.     @JsonInclude(value = Include.NON_EMPTY)
  19.     private String transactionHash;

  20.     @JsonProperty("receipt_hash")
  21.     @JsonInclude(value = Include.NON_EMPTY)
  22.     private String receiptHash;
  23. }