BasicShipmentInvoiceDTO.java

package com.tradecloud.dto.api.shipment;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import io.swagger.annotations.ApiModel;

@ApiModel(description = "When Viewing shipment/order, this will return basic fields of invoice")
public class BasicShipmentInvoiceDTO {

    @JsonPropertyDescription(value = "invoice reference.")
    @JsonProperty(access = JsonProperty.Access.AUTO)
    private String reference;
    @JsonPropertyDescription(value = "invoice state.")
    @JsonProperty(access = JsonProperty.Access.AUTO)
    private String state;

    public BasicShipmentInvoiceDTO(String reference, String state) {
        this.reference = reference;
        this.state = state;
    }

    public BasicShipmentInvoiceDTO() {
    }

    public String getReference() {
        return reference;
    }

    public void setReference(String reference) {
        this.reference = reference;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}