001package io.konik.sdk.invoice; 002 003public class StatusResponse { 004 005 private String invoiceId; 006 private Status status; 007 private boolean changed; 008 009 public String getInvoiceId() { 010 return invoiceId; 011 } 012 013 public void setInvoiceId(String invoiceId) { 014 this.invoiceId = invoiceId; 015 } 016 017 public Status getStatus() { 018 return status; 019 } 020 021 public void setStatus(Status status) { 022 this.status = status; 023 } 024 025 public boolean isChanged() { 026 return changed; 027 } 028 029 public void setChanged(boolean changed) { 030 this.changed = changed; 031 } 032 033 @Override 034 public String toString() { 035 return "StatusResponse{" + 036 "invoiceId='" + invoiceId + '\'' + 037 ", status=" + status + 038 ", changed=" + changed + 039 '}'; 040 } 041 042 @Override 043 public boolean equals(Object o) { 044 if (this == o) return true; 045 if (!(o instanceof StatusResponse)) return false; 046 047 StatusResponse that = (StatusResponse) o; 048 049 if (changed != that.changed) return false; 050 if (invoiceId != null ? !invoiceId.equals(that.invoiceId) : that.invoiceId != null) return false; 051 return status == that.status; 052 053 } 054 055 @Override 056 public int hashCode() { 057 int result = invoiceId != null ? invoiceId.hashCode() : 0; 058 result = 31 * result + (status != null ? status.hashCode() : 0); 059 result = 31 * result + (changed ? 1 : 0); 060 return result; 061 } 062}