-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCartItem.java
More file actions
703 lines (521 loc) · 22.7 KB
/
CartItem.java
File metadata and controls
703 lines (521 loc) · 22.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
/*
* Talon.One API
* Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
*
* The version of the OpenAPI document:
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package one.talon.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import one.talon.model.AdditionalCost;
import one.talon.model.PriceDetail;
import one.talon.model.Product;
import org.threeten.bp.OffsetDateTime;
/**
* CartItem
*/
public class CartItem {
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_SKU = "sku";
@SerializedName(SERIALIZED_NAME_SKU)
private String sku;
public static final String SERIALIZED_NAME_QUANTITY = "quantity";
@SerializedName(SERIALIZED_NAME_QUANTITY)
private Long quantity;
public static final String SERIALIZED_NAME_RETURNED_QUANTITY = "returnedQuantity";
@SerializedName(SERIALIZED_NAME_RETURNED_QUANTITY)
private Long returnedQuantity;
public static final String SERIALIZED_NAME_REMAINING_QUANTITY = "remainingQuantity";
@SerializedName(SERIALIZED_NAME_REMAINING_QUANTITY)
private Long remainingQuantity;
public static final String SERIALIZED_NAME_PRICE = "price";
@SerializedName(SERIALIZED_NAME_PRICE)
private BigDecimal price;
public static final String SERIALIZED_NAME_CATEGORY = "category";
@SerializedName(SERIALIZED_NAME_CATEGORY)
private String category;
public static final String SERIALIZED_NAME_PRODUCT = "product";
@SerializedName(SERIALIZED_NAME_PRODUCT)
private Product product;
public static final String SERIALIZED_NAME_WEIGHT = "weight";
@SerializedName(SERIALIZED_NAME_WEIGHT)
private BigDecimal weight;
public static final String SERIALIZED_NAME_HEIGHT = "height";
@SerializedName(SERIALIZED_NAME_HEIGHT)
private BigDecimal height;
public static final String SERIALIZED_NAME_WIDTH = "width";
@SerializedName(SERIALIZED_NAME_WIDTH)
private BigDecimal width;
public static final String SERIALIZED_NAME_LENGTH = "length";
@SerializedName(SERIALIZED_NAME_LENGTH)
private BigDecimal length;
public static final String SERIALIZED_NAME_POSITION = "position";
@SerializedName(SERIALIZED_NAME_POSITION)
private BigDecimal position;
public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
@SerializedName(SERIALIZED_NAME_ATTRIBUTES)
private Object attributes;
public static final String SERIALIZED_NAME_ADDITIONAL_COSTS = "additionalCosts";
@SerializedName(SERIALIZED_NAME_ADDITIONAL_COSTS)
private Map<String, AdditionalCost> additionalCosts = null;
public static final String SERIALIZED_NAME_CATALOG_ITEM_I_D = "catalogItemID";
@SerializedName(SERIALIZED_NAME_CATALOG_ITEM_I_D)
private Long catalogItemID;
public static final String SERIALIZED_NAME_SELECTED_PRICE_TYPE = "selectedPriceType";
@SerializedName(SERIALIZED_NAME_SELECTED_PRICE_TYPE)
private String selectedPriceType;
public static final String SERIALIZED_NAME_ADJUSTMENT_REFERENCE_ID = "adjustmentReferenceId";
@SerializedName(SERIALIZED_NAME_ADJUSTMENT_REFERENCE_ID)
private UUID adjustmentReferenceId;
public static final String SERIALIZED_NAME_ADJUSTMENT_EFFECTIVE_FROM = "adjustmentEffectiveFrom";
@SerializedName(SERIALIZED_NAME_ADJUSTMENT_EFFECTIVE_FROM)
private OffsetDateTime adjustmentEffectiveFrom;
public static final String SERIALIZED_NAME_ADJUSTMENT_EFFECTIVE_UNTIL = "adjustmentEffectiveUntil";
@SerializedName(SERIALIZED_NAME_ADJUSTMENT_EFFECTIVE_UNTIL)
private OffsetDateTime adjustmentEffectiveUntil;
public static final String SERIALIZED_NAME_PRICES = "prices";
@SerializedName(SERIALIZED_NAME_PRICES)
private Map<String, PriceDetail> prices = null;
public CartItem name(String name) {
this.name = name;
return this;
}
/**
* Name of item.
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Air Glide", value = "Name of item.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public CartItem sku(String sku) {
this.sku = sku;
return this;
}
/**
* Stock keeping unit of item.
* @return sku
**/
@ApiModelProperty(example = "SKU1241028", required = true, value = "Stock keeping unit of item.")
public String getSku() {
return sku;
}
public void setSku(String sku) {
this.sku = sku;
}
public CartItem quantity(Long quantity) {
this.quantity = quantity;
return this;
}
/**
* Number of units of this item. Due to [cart item flattening](https://docs.talon.one/docs/product/rules/understanding-cart-item-flattening), if you provide a quantity greater than 1, the item will be split in as many items as the provided quantity. This will impact the number of **per-item** effects triggered from your campaigns.
* minimum: 1
* @return quantity
**/
@ApiModelProperty(example = "1", required = true, value = "Number of units of this item. Due to [cart item flattening](https://docs.talon.one/docs/product/rules/understanding-cart-item-flattening), if you provide a quantity greater than 1, the item will be split in as many items as the provided quantity. This will impact the number of **per-item** effects triggered from your campaigns. ")
public Long getQuantity() {
return quantity;
}
public void setQuantity(Long quantity) {
this.quantity = quantity;
}
public CartItem returnedQuantity(Long returnedQuantity) {
this.returnedQuantity = returnedQuantity;
return this;
}
/**
* Number of returned items, calculated internally based on returns of this item.
* @return returnedQuantity
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1", value = "Number of returned items, calculated internally based on returns of this item.")
public Long getReturnedQuantity() {
return returnedQuantity;
}
public void setReturnedQuantity(Long returnedQuantity) {
this.returnedQuantity = returnedQuantity;
}
public CartItem remainingQuantity(Long remainingQuantity) {
this.remainingQuantity = remainingQuantity;
return this;
}
/**
* Remaining quantity of the item, calculated internally based on returns of this item.
* @return remainingQuantity
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1", value = "Remaining quantity of the item, calculated internally based on returns of this item.")
public Long getRemainingQuantity() {
return remainingQuantity;
}
public void setRemainingQuantity(Long remainingQuantity) {
this.remainingQuantity = remainingQuantity;
}
public CartItem price(BigDecimal price) {
this.price = price;
return this;
}
/**
* Price of the item in the currency defined by your Application. This field is required if this item is not part of a [catalog](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). If it is part of a catalog, setting a price here overrides the price from the catalog.
* @return price
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "99.99", value = "Price of the item in the currency defined by your Application. This field is required if this item is not part of a [catalog](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs). If it is part of a catalog, setting a price here overrides the price from the catalog. ")
public BigDecimal getPrice() {
return price;
}
public void setPrice(BigDecimal price) {
this.price = price;
}
public CartItem category(String category) {
this.category = category;
return this;
}
/**
* Type, group or model of the item.
* @return category
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "shoes", value = "Type, group or model of the item.")
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public CartItem product(Product product) {
this.product = product;
return this;
}
/**
* Get product
* @return product
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Product getProduct() {
return product;
}
public void setProduct(Product product) {
this.product = product;
}
public CartItem weight(BigDecimal weight) {
this.weight = weight;
return this;
}
/**
* Weight of item in grams.
* @return weight
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1130.0", value = "Weight of item in grams.")
public BigDecimal getWeight() {
return weight;
}
public void setWeight(BigDecimal weight) {
this.weight = weight;
}
public CartItem height(BigDecimal height) {
this.height = height;
return this;
}
/**
* Height of item in mm.
* @return height
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Height of item in mm.")
public BigDecimal getHeight() {
return height;
}
public void setHeight(BigDecimal height) {
this.height = height;
}
public CartItem width(BigDecimal width) {
this.width = width;
return this;
}
/**
* Width of item in mm.
* @return width
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Width of item in mm.")
public BigDecimal getWidth() {
return width;
}
public void setWidth(BigDecimal width) {
this.width = width;
}
public CartItem length(BigDecimal length) {
this.length = length;
return this;
}
/**
* Length of item in mm.
* @return length
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Length of item in mm.")
public BigDecimal getLength() {
return length;
}
public void setLength(BigDecimal length) {
this.length = length;
}
public CartItem position(BigDecimal position) {
this.position = position;
return this;
}
/**
* Position of the Cart Item in the Cart (calculated internally).
* @return position
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Position of the Cart Item in the Cart (calculated internally).")
public BigDecimal getPosition() {
return position;
}
public void setPosition(BigDecimal position) {
this.position = position;
}
public CartItem attributes(Object attributes) {
this.attributes = attributes;
return this;
}
/**
* Use this property to set a value for the attributes of your choice. [Attributes](https://docs.talon.one/docs/dev/concepts/attributes) represent any information to attach to this cart item. Custom _cart item_ attributes must be created in the Campaign Manager before you set them with this property. **Note:** Any previously defined attributes that you do not include in the array will be removed.
* @return attributes
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "{\"image\":\"11.jpeg\",\"material\":\"leather\"}", value = "Use this property to set a value for the attributes of your choice. [Attributes](https://docs.talon.one/docs/dev/concepts/attributes) represent any information to attach to this cart item. Custom _cart item_ attributes must be created in the Campaign Manager before you set them with this property. **Note:** Any previously defined attributes that you do not include in the array will be removed. ")
public Object getAttributes() {
return attributes;
}
public void setAttributes(Object attributes) {
this.attributes = attributes;
}
public CartItem additionalCosts(Map<String, AdditionalCost> additionalCosts) {
this.additionalCosts = additionalCosts;
return this;
}
public CartItem putAdditionalCostsItem(String key, AdditionalCost additionalCostsItem) {
if (this.additionalCosts == null) {
this.additionalCosts = new HashMap<String, AdditionalCost>();
}
this.additionalCosts.put(key, additionalCostsItem);
return this;
}
/**
* Use this property to set a value for the additional costs of this item, such as a shipping cost. They must be created in the Campaign Manager before you set them with this property. See [Managing additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs).
* @return additionalCosts
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "{\"shipping\":{\"price\":9}}", value = "Use this property to set a value for the additional costs of this item, such as a shipping cost. They must be created in the Campaign Manager before you set them with this property. See [Managing additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs). ")
public Map<String, AdditionalCost> getAdditionalCosts() {
return additionalCosts;
}
public void setAdditionalCosts(Map<String, AdditionalCost> additionalCosts) {
this.additionalCosts = additionalCosts;
}
public CartItem catalogItemID(Long catalogItemID) {
this.catalogItemID = catalogItemID;
return this;
}
/**
* The catalog item ID.
* @return catalogItemID
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The catalog item ID.")
public Long getCatalogItemID() {
return catalogItemID;
}
public void setCatalogItemID(Long catalogItemID) {
this.catalogItemID = catalogItemID;
}
public CartItem selectedPriceType(String selectedPriceType) {
this.selectedPriceType = selectedPriceType;
return this;
}
/**
* The selected price type for this cart item (e.g. the price for members only).
* @return selectedPriceType
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "member", value = "The selected price type for this cart item (e.g. the price for members only).")
public String getSelectedPriceType() {
return selectedPriceType;
}
public void setSelectedPriceType(String selectedPriceType) {
this.selectedPriceType = selectedPriceType;
}
public CartItem adjustmentReferenceId(UUID adjustmentReferenceId) {
this.adjustmentReferenceId = adjustmentReferenceId;
return this;
}
/**
* The reference ID of the selected price adjustment for this cart item. Only returned if the selected price resulted from a price adjustment.
* @return adjustmentReferenceId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "68851723-e6fa-488f-ace9-112581e6c19b", value = "The reference ID of the selected price adjustment for this cart item. Only returned if the selected price resulted from a price adjustment.")
public UUID getAdjustmentReferenceId() {
return adjustmentReferenceId;
}
public void setAdjustmentReferenceId(UUID adjustmentReferenceId) {
this.adjustmentReferenceId = adjustmentReferenceId;
}
public CartItem adjustmentEffectiveFrom(OffsetDateTime adjustmentEffectiveFrom) {
this.adjustmentEffectiveFrom = adjustmentEffectiveFrom;
return this;
}
/**
* The date and time from which the price adjustment is effective. Only returned if the selected price resulted from a price adjustment that contains this field.
* @return adjustmentEffectiveFrom
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2021-09-12T10:12:42Z", value = "The date and time from which the price adjustment is effective. Only returned if the selected price resulted from a price adjustment that contains this field.")
public OffsetDateTime getAdjustmentEffectiveFrom() {
return adjustmentEffectiveFrom;
}
public void setAdjustmentEffectiveFrom(OffsetDateTime adjustmentEffectiveFrom) {
this.adjustmentEffectiveFrom = adjustmentEffectiveFrom;
}
public CartItem adjustmentEffectiveUntil(OffsetDateTime adjustmentEffectiveUntil) {
this.adjustmentEffectiveUntil = adjustmentEffectiveUntil;
return this;
}
/**
* The date and time until which the price adjustment is effective. Only returned if the selected price resulted from a price adjustment that contains this field.
* @return adjustmentEffectiveUntil
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2021-09-12T10:12:42Z", value = "The date and time until which the price adjustment is effective. Only returned if the selected price resulted from a price adjustment that contains this field.")
public OffsetDateTime getAdjustmentEffectiveUntil() {
return adjustmentEffectiveUntil;
}
public void setAdjustmentEffectiveUntil(OffsetDateTime adjustmentEffectiveUntil) {
this.adjustmentEffectiveUntil = adjustmentEffectiveUntil;
}
public CartItem prices(Map<String, PriceDetail> prices) {
this.prices = prices;
return this;
}
public CartItem putPricesItem(String key, PriceDetail pricesItem) {
if (this.prices == null) {
this.prices = new HashMap<String, PriceDetail>();
}
this.prices.put(key, pricesItem);
return this;
}
/**
* A map of keys and values representing the price types and related price adjustment details for this cart item. The keys correspond to the `priceType` names.
* @return prices
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "{\"member\":{\"price\":90,\"adjustmentReferenceId\":\"68851723-e6fa-488f-ace9-112581e6c19b\",\"effectiveFrom\":\"2025-05-25T00:00:00Z\",\"effectiveUntil\":\"2025-05-30T00:00:00Z\"},\"base\":{\"price\":100}}", value = "A map of keys and values representing the price types and related price adjustment details for this cart item. The keys correspond to the `priceType` names. ")
public Map<String, PriceDetail> getPrices() {
return prices;
}
public void setPrices(Map<String, PriceDetail> prices) {
this.prices = prices;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CartItem cartItem = (CartItem) o;
return Objects.equals(this.name, cartItem.name) &&
Objects.equals(this.sku, cartItem.sku) &&
Objects.equals(this.quantity, cartItem.quantity) &&
Objects.equals(this.returnedQuantity, cartItem.returnedQuantity) &&
Objects.equals(this.remainingQuantity, cartItem.remainingQuantity) &&
Objects.equals(this.price, cartItem.price) &&
Objects.equals(this.category, cartItem.category) &&
Objects.equals(this.product, cartItem.product) &&
Objects.equals(this.weight, cartItem.weight) &&
Objects.equals(this.height, cartItem.height) &&
Objects.equals(this.width, cartItem.width) &&
Objects.equals(this.length, cartItem.length) &&
Objects.equals(this.position, cartItem.position) &&
Objects.equals(this.attributes, cartItem.attributes) &&
Objects.equals(this.additionalCosts, cartItem.additionalCosts) &&
Objects.equals(this.catalogItemID, cartItem.catalogItemID) &&
Objects.equals(this.selectedPriceType, cartItem.selectedPriceType) &&
Objects.equals(this.adjustmentReferenceId, cartItem.adjustmentReferenceId) &&
Objects.equals(this.adjustmentEffectiveFrom, cartItem.adjustmentEffectiveFrom) &&
Objects.equals(this.adjustmentEffectiveUntil, cartItem.adjustmentEffectiveUntil) &&
Objects.equals(this.prices, cartItem.prices);
}
@Override
public int hashCode() {
return Objects.hash(name, sku, quantity, returnedQuantity, remainingQuantity, price, category, product, weight, height, width, length, position, attributes, additionalCosts, catalogItemID, selectedPriceType, adjustmentReferenceId, adjustmentEffectiveFrom, adjustmentEffectiveUntil, prices);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CartItem {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" sku: ").append(toIndentedString(sku)).append("\n");
sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n");
sb.append(" returnedQuantity: ").append(toIndentedString(returnedQuantity)).append("\n");
sb.append(" remainingQuantity: ").append(toIndentedString(remainingQuantity)).append("\n");
sb.append(" price: ").append(toIndentedString(price)).append("\n");
sb.append(" category: ").append(toIndentedString(category)).append("\n");
sb.append(" product: ").append(toIndentedString(product)).append("\n");
sb.append(" weight: ").append(toIndentedString(weight)).append("\n");
sb.append(" height: ").append(toIndentedString(height)).append("\n");
sb.append(" width: ").append(toIndentedString(width)).append("\n");
sb.append(" length: ").append(toIndentedString(length)).append("\n");
sb.append(" position: ").append(toIndentedString(position)).append("\n");
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
sb.append(" additionalCosts: ").append(toIndentedString(additionalCosts)).append("\n");
sb.append(" catalogItemID: ").append(toIndentedString(catalogItemID)).append("\n");
sb.append(" selectedPriceType: ").append(toIndentedString(selectedPriceType)).append("\n");
sb.append(" adjustmentReferenceId: ").append(toIndentedString(adjustmentReferenceId)).append("\n");
sb.append(" adjustmentEffectiveFrom: ").append(toIndentedString(adjustmentEffectiveFrom)).append("\n");
sb.append(" adjustmentEffectiveUntil: ").append(toIndentedString(adjustmentEffectiveUntil)).append("\n");
sb.append(" prices: ").append(toIndentedString(prices)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}