|
| 1 | +/* |
| 2 | + * Accounting API |
| 3 | + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) |
| 4 | + * |
| 5 | + * OpenAPI spec version: 2.0.0 |
| 6 | + * Contact: api@xero.com |
| 7 | + * |
| 8 | + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
| 9 | + * https://openapi-generator.tech |
| 10 | + * Do not edit the class manually. |
| 11 | + */ |
| 12 | + |
| 13 | + |
| 14 | +package com.xero.models.accounting; |
| 15 | + |
| 16 | +import java.util.Objects; |
| 17 | +import java.util.Arrays; |
| 18 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 19 | +import com.fasterxml.jackson.annotation.JsonCreator; |
| 20 | +import com.fasterxml.jackson.annotation.JsonValue; |
| 21 | +import io.swagger.annotations.ApiModel; |
| 22 | +import io.swagger.annotations.ApiModelProperty; |
| 23 | +import java.util.UUID; |
| 24 | + |
| 25 | +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| 26 | + |
| 27 | +/** |
| 28 | + * LineItemTracking |
| 29 | + */ |
| 30 | + |
| 31 | +public class LineItemTracking { |
| 32 | + |
| 33 | + @JsonProperty("TrackingCategoryID") |
| 34 | + private UUID trackingCategoryID; |
| 35 | + |
| 36 | + |
| 37 | + @JsonProperty("Name") |
| 38 | + private String name; |
| 39 | + |
| 40 | + |
| 41 | + @JsonProperty("Option") |
| 42 | + private String option; |
| 43 | + |
| 44 | + public LineItemTracking trackingCategoryID(UUID trackingCategoryID) { |
| 45 | + this.trackingCategoryID = trackingCategoryID; |
| 46 | + return this; |
| 47 | + } |
| 48 | + |
| 49 | + /** |
| 50 | + * The Xero identifier for a tracking category |
| 51 | + * @return trackingCategoryID |
| 52 | + **/ |
| 53 | + @ApiModelProperty(example = "297c2dc5-cc47-4afd-8ec8-74990b8761e9", value = "The Xero identifier for a tracking category") |
| 54 | + public UUID getTrackingCategoryID() { |
| 55 | + return trackingCategoryID; |
| 56 | + } |
| 57 | + |
| 58 | + public void setTrackingCategoryID(UUID trackingCategoryID) { |
| 59 | + this.trackingCategoryID = trackingCategoryID; |
| 60 | + } |
| 61 | + |
| 62 | + public LineItemTracking name(String name) { |
| 63 | + this.name = name; |
| 64 | + return this; |
| 65 | + } |
| 66 | + |
| 67 | + /** |
| 68 | + * The name of the tracking category |
| 69 | + * @return name |
| 70 | + **/ |
| 71 | + @ApiModelProperty(example = "Region", value = "The name of the tracking category") |
| 72 | + public String getName() { |
| 73 | + return name; |
| 74 | + } |
| 75 | + |
| 76 | + public void setName(String name) { |
| 77 | + this.name = name; |
| 78 | + } |
| 79 | + |
| 80 | + public LineItemTracking option(String option) { |
| 81 | + this.option = option; |
| 82 | + return this; |
| 83 | + } |
| 84 | + |
| 85 | + /** |
| 86 | + * See Tracking Options |
| 87 | + * @return option |
| 88 | + **/ |
| 89 | + @ApiModelProperty(example = "North", value = "See Tracking Options") |
| 90 | + public String getOption() { |
| 91 | + return option; |
| 92 | + } |
| 93 | + |
| 94 | + public void setOption(String option) { |
| 95 | + this.option = option; |
| 96 | + } |
| 97 | + |
| 98 | + |
| 99 | + @Override |
| 100 | + public boolean equals(java.lang.Object o) { |
| 101 | + if (this == o) { |
| 102 | + return true; |
| 103 | + } |
| 104 | + if (o == null || getClass() != o.getClass()) { |
| 105 | + return false; |
| 106 | + } |
| 107 | + LineItemTracking lineItemTracking = (LineItemTracking) o; |
| 108 | + return Objects.equals(this.trackingCategoryID, lineItemTracking.trackingCategoryID) && |
| 109 | + Objects.equals(this.name, lineItemTracking.name) && |
| 110 | + Objects.equals(this.option, lineItemTracking.option); |
| 111 | + } |
| 112 | + |
| 113 | + @Override |
| 114 | + public int hashCode() { |
| 115 | + return Objects.hash(trackingCategoryID, name, option); |
| 116 | + } |
| 117 | + |
| 118 | + |
| 119 | + @Override |
| 120 | + public String toString() { |
| 121 | + StringBuilder sb = new StringBuilder(); |
| 122 | + sb.append("class LineItemTracking {\n"); |
| 123 | + |
| 124 | + sb.append(" trackingCategoryID: ").append(toIndentedString(trackingCategoryID)).append("\n"); |
| 125 | + sb.append(" name: ").append(toIndentedString(name)).append("\n"); |
| 126 | + sb.append(" option: ").append(toIndentedString(option)).append("\n"); |
| 127 | + sb.append("}"); |
| 128 | + return sb.toString(); |
| 129 | + } |
| 130 | + |
| 131 | + /** |
| 132 | + * Convert the given object to string with each line indented by 4 spaces |
| 133 | + * (except the first line). |
| 134 | + */ |
| 135 | + private String toIndentedString(java.lang.Object o) { |
| 136 | + if (o == null) { |
| 137 | + return "null"; |
| 138 | + } |
| 139 | + return o.toString().replace("\n", "\n "); |
| 140 | + } |
| 141 | + |
| 142 | +} |
| 143 | + |
0 commit comments