2020import com .fasterxml .jackson .annotation .JsonCreator ;
2121import com .fasterxml .jackson .annotation .JsonTypeName ;
2222import com .fasterxml .jackson .annotation .JsonValue ;
23- import java .math .BigDecimal ;
2423import java .time .OffsetDateTime ;
2524import com .fasterxml .jackson .annotation .JsonPropertyOrder ;
2625import com .fasterxml .jackson .annotation .JsonTypeName ;
3433 Order .JSON_PROPERTY_QUANTITY ,
3534 Order .JSON_PROPERTY_SHIP_DATE ,
3635 Order .JSON_PROPERTY_STATUS ,
37- Order .JSON_PROPERTY_COMPLETE ,
38- Order .JSON_PROPERTY_PAYMENT_METHOD
36+ Order .JSON_PROPERTY_COMPLETE
3937})
4038@ javax .annotation .Generated (value = "org.openapitools.codegen.languages.JavaClientCodegen" , comments = "Generator version: 7.13.0-SNAPSHOT" )
4139public class Order {
@@ -100,59 +98,19 @@ public static StatusEnum fromValue(String value) {
10098 @ javax .annotation .Nullable
10199 private Boolean complete = false ;
102100
103- /**
104- * Various payment methods
105- */
106- public enum PaymentMethodEnum {
107- NUMBER_1 (new BigDecimal ("1" )),
108-
109- NUMBER_2 (new BigDecimal ("2" ));
110-
111- private BigDecimal value ;
112-
113- PaymentMethodEnum (BigDecimal value ) {
114- this .value = value ;
115- }
116-
117- @ JsonValue
118- public BigDecimal getValue () {
119- return value ;
120- }
121-
122- @ Override
123- public String toString () {
124- return String .valueOf (value );
125- }
126-
127- @ JsonCreator
128- public static PaymentMethodEnum fromValue (BigDecimal value ) {
129- for (PaymentMethodEnum b : PaymentMethodEnum .values ()) {
130- if (b .value .equals (value )) {
131- return b ;
132- }
133- }
134- throw new IllegalArgumentException ("Unexpected value '" + value + "'" );
135- }
136- }
137-
138- public static final String JSON_PROPERTY_PAYMENT_METHOD = "paymentMethod" ;
139- @ javax .annotation .Nullable
140- private PaymentMethodEnum paymentMethod = PaymentMethodEnum .NUMBER_1 ;
141-
142101 public Order () {
143102 }
144103
145104 /**
146105 * Constructor with all args parameters
147106 */
148- public Order (@ JsonProperty (JSON_PROPERTY_ID ) Long id , @ JsonProperty (JSON_PROPERTY_PET_ID ) Long petId , @ JsonProperty (JSON_PROPERTY_QUANTITY ) Integer quantity , @ JsonProperty (JSON_PROPERTY_SHIP_DATE ) OffsetDateTime shipDate , @ JsonProperty (JSON_PROPERTY_STATUS ) StatusEnum status , @ JsonProperty (JSON_PROPERTY_COMPLETE ) Boolean complete , @ JsonProperty ( JSON_PROPERTY_PAYMENT_METHOD ) PaymentMethodEnum paymentMethod ) {
107+ public Order (@ JsonProperty (JSON_PROPERTY_ID ) Long id , @ JsonProperty (JSON_PROPERTY_PET_ID ) Long petId , @ JsonProperty (JSON_PROPERTY_QUANTITY ) Integer quantity , @ JsonProperty (JSON_PROPERTY_SHIP_DATE ) OffsetDateTime shipDate , @ JsonProperty (JSON_PROPERTY_STATUS ) StatusEnum status , @ JsonProperty (JSON_PROPERTY_COMPLETE ) Boolean complete ) {
149108 this .id = id ;
150109 this .petId = petId ;
151110 this .quantity = quantity ;
152111 this .shipDate = shipDate ;
153112 this .status = status ;
154113 this .complete = complete ;
155- this .paymentMethod = paymentMethod ;
156114 }
157115
158116 public Order id (@ javax .annotation .Nullable Long id ) {
@@ -305,31 +263,6 @@ public void setComplete(@javax.annotation.Nullable Boolean complete) {
305263 this .complete = complete ;
306264 }
307265
308- public Order paymentMethod (@ javax .annotation .Nullable PaymentMethodEnum paymentMethod ) {
309-
310- this .paymentMethod = paymentMethod ;
311- return this ;
312- }
313-
314- /**
315- * Various payment methods
316- * @return paymentMethod
317- */
318- @ javax .annotation .Nullable
319- @ JsonProperty (JSON_PROPERTY_PAYMENT_METHOD )
320- @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
321-
322- public PaymentMethodEnum getPaymentMethod () {
323- return paymentMethod ;
324- }
325-
326-
327- @ JsonProperty (JSON_PROPERTY_PAYMENT_METHOD )
328- @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
329- public void setPaymentMethod (@ javax .annotation .Nullable PaymentMethodEnum paymentMethod ) {
330- this .paymentMethod = paymentMethod ;
331- }
332-
333266
334267 @ Override
335268 public boolean equals (Object o ) {
@@ -345,13 +278,12 @@ public boolean equals(Object o) {
345278 Objects .equals (this .quantity , order .quantity ) &&
346279 Objects .equals (this .shipDate , order .shipDate ) &&
347280 Objects .equals (this .status , order .status ) &&
348- Objects .equals (this .complete , order .complete ) &&
349- Objects .equals (this .paymentMethod , order .paymentMethod );
281+ Objects .equals (this .complete , order .complete );
350282 }
351283
352284 @ Override
353285 public int hashCode () {
354- return Objects .hash (id , petId , quantity , shipDate , status , complete , paymentMethod );
286+ return Objects .hash (id , petId , quantity , shipDate , status , complete );
355287 }
356288
357289 @ Override
@@ -364,7 +296,6 @@ public String toString() {
364296 sb .append (" shipDate: " ).append (toIndentedString (shipDate )).append ("\n " );
365297 sb .append (" status: " ).append (toIndentedString (status )).append ("\n " );
366298 sb .append (" complete: " ).append (toIndentedString (complete )).append ("\n " );
367- sb .append (" paymentMethod: " ).append (toIndentedString (paymentMethod )).append ("\n " );
368299 sb .append ("}" );
369300 return sb .toString ();
370301 }
@@ -416,10 +347,6 @@ public Order.Builder complete(Boolean complete) {
416347 this .instance .complete = complete ;
417348 return this ;
418349 }
419- public Order .Builder paymentMethod (PaymentMethodEnum paymentMethod ) {
420- this .instance .paymentMethod = paymentMethod ;
421- return this ;
422- }
423350
424351
425352 /**
@@ -459,8 +386,7 @@ public Order.Builder toBuilder() {
459386 .quantity (getQuantity ())
460387 .shipDate (getShipDate ())
461388 .status (getStatus ())
462- .complete (getComplete ())
463- .paymentMethod (getPaymentMethod ());
389+ .complete (getComplete ());
464390 }
465391
466392
0 commit comments