Skip to content

Commit afb4f4d

Browse files
authored
update 13.1.0 (#82)
1 parent b144d44 commit afb4f4d

File tree

7 files changed

+205
-12
lines changed

7 files changed

+205
-12
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ If you use Maven, we also host [Maven Artifacts](https://github.com/talon-one/ma
88

99
Building the API client library requires:
1010

11-
1. Java 1.7+
11+
1. Java 21+
1212
2. Maven/Gradle
1313

1414
## Installation
@@ -35,7 +35,7 @@ Add this dependency to your project's POM:
3535
<dependency>
3636
<groupId>one.talon</groupId>
3737
<artifactId>talon-one-client</artifactId>
38-
<version>13.0.0</version>
38+
<version>13.1.0</version>
3939
<scope>compile</scope>
4040
</dependency>
4141
```
@@ -45,7 +45,7 @@ Add this dependency to your project's POM:
4545
Add this dependency to your project's build file:
4646

4747
```groovy
48-
compile "one.talon:talon-one-client:13.0.0"
48+
compile "one.talon:talon-one-client:13.1.0"
4949
```
5050

5151
### Others

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'eclipse'
33
apply plugin: 'java'
44

55
group = 'one.talon'
6-
version = '13.0.0'
6+
version = '13.1.0'
77

88
buildscript {
99
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "one.talon",
44
name := "talon-one-client",
5-
version := "13.0.0",
5+
version := "13.1.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>talon-one-client</artifactId>
66
<packaging>jar</packaging>
77
<name>talon-one-client</name>
8-
<version>13.0.0</version>
8+
<version>13.1.0</version>
99
<url>https://github.com/talon-one/maven-artefacts</url>
1010
<description>Talon.One unified JAVA SDK. It allows for programmatic access to the integration and management API with their respective authentication strategies</description>
1111
<scm>

src/main/java/one/talon/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private void init() {
132132
json = new JSON();
133133

134134
// Set default User-Agent.
135-
setUserAgent("OpenAPI-Generator/13.0.0/java");
135+
setUserAgent("OpenAPI-Generator/13.1.0/java");
136136

137137
authentications = new HashMap<String, Authentication>();
138138
}

src/main/java/one/talon/model/CartItem.java

Lines changed: 160 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@
2727
import java.util.HashMap;
2828
import java.util.List;
2929
import java.util.Map;
30+
import java.util.UUID;
3031
import one.talon.model.AdditionalCost;
32+
import one.talon.model.PriceDetail;
3133
import one.talon.model.Product;
34+
import org.threeten.bp.OffsetDateTime;
3235

3336
/**
3437
* CartItem
@@ -99,6 +102,26 @@ public class CartItem {
99102
@SerializedName(SERIALIZED_NAME_CATALOG_ITEM_I_D)
100103
private Long catalogItemID;
101104

105+
public static final String SERIALIZED_NAME_SELECTED_PRICE_TYPE = "selectedPriceType";
106+
@SerializedName(SERIALIZED_NAME_SELECTED_PRICE_TYPE)
107+
private String selectedPriceType;
108+
109+
public static final String SERIALIZED_NAME_ADJUSTMENT_REFERENCE_ID = "adjustmentReferenceId";
110+
@SerializedName(SERIALIZED_NAME_ADJUSTMENT_REFERENCE_ID)
111+
private UUID adjustmentReferenceId;
112+
113+
public static final String SERIALIZED_NAME_ADJUSTMENT_EFFECTIVE_FROM = "adjustmentEffectiveFrom";
114+
@SerializedName(SERIALIZED_NAME_ADJUSTMENT_EFFECTIVE_FROM)
115+
private OffsetDateTime adjustmentEffectiveFrom;
116+
117+
public static final String SERIALIZED_NAME_ADJUSTMENT_EFFECTIVE_UNTIL = "adjustmentEffectiveUntil";
118+
@SerializedName(SERIALIZED_NAME_ADJUSTMENT_EFFECTIVE_UNTIL)
119+
private OffsetDateTime adjustmentEffectiveUntil;
120+
121+
public static final String SERIALIZED_NAME_PRICES = "prices";
122+
@SerializedName(SERIALIZED_NAME_PRICES)
123+
private Map<String, PriceDetail> prices = null;
124+
102125

103126
public CartItem name(String name) {
104127

@@ -459,11 +482,11 @@ public CartItem catalogItemID(Long catalogItemID) {
459482
}
460483

461484
/**
462-
* The [catalog item ID](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs/#synchronizing-a-cart-item-catalog).
485+
* The catalog item ID.
463486
* @return catalogItemID
464487
**/
465488
@javax.annotation.Nullable
466-
@ApiModelProperty(value = "The [catalog item ID](https://docs.talon.one/docs/product/account/dev-tools/managing-cart-item-catalogs/#synchronizing-a-cart-item-catalog).")
489+
@ApiModelProperty(value = "The catalog item ID.")
467490

468491
public Long getCatalogItemID() {
469492
return catalogItemID;
@@ -475,6 +498,129 @@ public void setCatalogItemID(Long catalogItemID) {
475498
}
476499

477500

501+
public CartItem selectedPriceType(String selectedPriceType) {
502+
503+
this.selectedPriceType = selectedPriceType;
504+
return this;
505+
}
506+
507+
/**
508+
* The selected price type for this cart item (e.g. the price for members only).
509+
* @return selectedPriceType
510+
**/
511+
@javax.annotation.Nullable
512+
@ApiModelProperty(example = "member", value = "The selected price type for this cart item (e.g. the price for members only).")
513+
514+
public String getSelectedPriceType() {
515+
return selectedPriceType;
516+
}
517+
518+
519+
public void setSelectedPriceType(String selectedPriceType) {
520+
this.selectedPriceType = selectedPriceType;
521+
}
522+
523+
524+
public CartItem adjustmentReferenceId(UUID adjustmentReferenceId) {
525+
526+
this.adjustmentReferenceId = adjustmentReferenceId;
527+
return this;
528+
}
529+
530+
/**
531+
* The reference ID of the selected price adjustment for this cart item. Only returned if the selected price resulted from a price adjustment.
532+
* @return adjustmentReferenceId
533+
**/
534+
@javax.annotation.Nullable
535+
@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.")
536+
537+
public UUID getAdjustmentReferenceId() {
538+
return adjustmentReferenceId;
539+
}
540+
541+
542+
public void setAdjustmentReferenceId(UUID adjustmentReferenceId) {
543+
this.adjustmentReferenceId = adjustmentReferenceId;
544+
}
545+
546+
547+
public CartItem adjustmentEffectiveFrom(OffsetDateTime adjustmentEffectiveFrom) {
548+
549+
this.adjustmentEffectiveFrom = adjustmentEffectiveFrom;
550+
return this;
551+
}
552+
553+
/**
554+
* 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.
555+
* @return adjustmentEffectiveFrom
556+
**/
557+
@javax.annotation.Nullable
558+
@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.")
559+
560+
public OffsetDateTime getAdjustmentEffectiveFrom() {
561+
return adjustmentEffectiveFrom;
562+
}
563+
564+
565+
public void setAdjustmentEffectiveFrom(OffsetDateTime adjustmentEffectiveFrom) {
566+
this.adjustmentEffectiveFrom = adjustmentEffectiveFrom;
567+
}
568+
569+
570+
public CartItem adjustmentEffectiveUntil(OffsetDateTime adjustmentEffectiveUntil) {
571+
572+
this.adjustmentEffectiveUntil = adjustmentEffectiveUntil;
573+
return this;
574+
}
575+
576+
/**
577+
* 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.
578+
* @return adjustmentEffectiveUntil
579+
**/
580+
@javax.annotation.Nullable
581+
@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.")
582+
583+
public OffsetDateTime getAdjustmentEffectiveUntil() {
584+
return adjustmentEffectiveUntil;
585+
}
586+
587+
588+
public void setAdjustmentEffectiveUntil(OffsetDateTime adjustmentEffectiveUntil) {
589+
this.adjustmentEffectiveUntil = adjustmentEffectiveUntil;
590+
}
591+
592+
593+
public CartItem prices(Map<String, PriceDetail> prices) {
594+
595+
this.prices = prices;
596+
return this;
597+
}
598+
599+
public CartItem putPricesItem(String key, PriceDetail pricesItem) {
600+
if (this.prices == null) {
601+
this.prices = new HashMap<String, PriceDetail>();
602+
}
603+
this.prices.put(key, pricesItem);
604+
return this;
605+
}
606+
607+
/**
608+
* A map of keys and values representing the price types and related price adjustment details for this cart item. The keys correspond to the &#x60;priceType&#x60; names.
609+
* @return prices
610+
**/
611+
@javax.annotation.Nullable
612+
@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. ")
613+
614+
public Map<String, PriceDetail> getPrices() {
615+
return prices;
616+
}
617+
618+
619+
public void setPrices(Map<String, PriceDetail> prices) {
620+
this.prices = prices;
621+
}
622+
623+
478624
@Override
479625
public boolean equals(java.lang.Object o) {
480626
if (this == o) {
@@ -499,12 +645,17 @@ public boolean equals(java.lang.Object o) {
499645
Objects.equals(this.position, cartItem.position) &&
500646
Objects.equals(this.attributes, cartItem.attributes) &&
501647
Objects.equals(this.additionalCosts, cartItem.additionalCosts) &&
502-
Objects.equals(this.catalogItemID, cartItem.catalogItemID);
648+
Objects.equals(this.catalogItemID, cartItem.catalogItemID) &&
649+
Objects.equals(this.selectedPriceType, cartItem.selectedPriceType) &&
650+
Objects.equals(this.adjustmentReferenceId, cartItem.adjustmentReferenceId) &&
651+
Objects.equals(this.adjustmentEffectiveFrom, cartItem.adjustmentEffectiveFrom) &&
652+
Objects.equals(this.adjustmentEffectiveUntil, cartItem.adjustmentEffectiveUntil) &&
653+
Objects.equals(this.prices, cartItem.prices);
503654
}
504655

505656
@Override
506657
public int hashCode() {
507-
return Objects.hash(name, sku, quantity, returnedQuantity, remainingQuantity, price, category, product, weight, height, width, length, position, attributes, additionalCosts, catalogItemID);
658+
return Objects.hash(name, sku, quantity, returnedQuantity, remainingQuantity, price, category, product, weight, height, width, length, position, attributes, additionalCosts, catalogItemID, selectedPriceType, adjustmentReferenceId, adjustmentEffectiveFrom, adjustmentEffectiveUntil, prices);
508659
}
509660

510661

@@ -528,6 +679,11 @@ public String toString() {
528679
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
529680
sb.append(" additionalCosts: ").append(toIndentedString(additionalCosts)).append("\n");
530681
sb.append(" catalogItemID: ").append(toIndentedString(catalogItemID)).append("\n");
682+
sb.append(" selectedPriceType: ").append(toIndentedString(selectedPriceType)).append("\n");
683+
sb.append(" adjustmentReferenceId: ").append(toIndentedString(adjustmentReferenceId)).append("\n");
684+
sb.append(" adjustmentEffectiveFrom: ").append(toIndentedString(adjustmentEffectiveFrom)).append("\n");
685+
sb.append(" adjustmentEffectiveUntil: ").append(toIndentedString(adjustmentEffectiveUntil)).append("\n");
686+
sb.append(" prices: ").append(toIndentedString(prices)).append("\n");
531687
sb.append("}");
532688
return sb.toString();
533689
}

src/main/java/one/talon/model/IntegrationEventV2Request.java

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ public class IntegrationEventV2Request {
5151
@SerializedName(SERIALIZED_NAME_ATTRIBUTES)
5252
private Object attributes;
5353

54+
public static final String SERIALIZED_NAME_LOYALTY_CARDS = "loyaltyCards";
55+
@SerializedName(SERIALIZED_NAME_LOYALTY_CARDS)
56+
private List<String> loyaltyCards = null;
57+
5458
/**
5559
* Gets or Sets responseContent
5660
*/
@@ -233,6 +237,37 @@ public void setAttributes(Object attributes) {
233237
}
234238

235239

240+
public IntegrationEventV2Request loyaltyCards(List<String> loyaltyCards) {
241+
242+
this.loyaltyCards = loyaltyCards;
243+
return this;
244+
}
245+
246+
public IntegrationEventV2Request addLoyaltyCardsItem(String loyaltyCardsItem) {
247+
if (this.loyaltyCards == null) {
248+
this.loyaltyCards = new ArrayList<String>();
249+
}
250+
this.loyaltyCards.add(loyaltyCardsItem);
251+
return this;
252+
}
253+
254+
/**
255+
* Identifier of the loyalty card used during this event.
256+
* @return loyaltyCards
257+
**/
258+
@javax.annotation.Nullable
259+
@ApiModelProperty(example = "[loyalty-card-1]", value = "Identifier of the loyalty card used during this event.")
260+
261+
public List<String> getLoyaltyCards() {
262+
return loyaltyCards;
263+
}
264+
265+
266+
public void setLoyaltyCards(List<String> loyaltyCards) {
267+
this.loyaltyCards = loyaltyCards;
268+
}
269+
270+
236271
public IntegrationEventV2Request responseContent(List<ResponseContentEnum> responseContent) {
237272

238273
this.responseContent = responseContent;
@@ -278,12 +313,13 @@ public boolean equals(java.lang.Object o) {
278313
Objects.equals(this.evaluableCampaignIds, integrationEventV2Request.evaluableCampaignIds) &&
279314
Objects.equals(this.type, integrationEventV2Request.type) &&
280315
Objects.equals(this.attributes, integrationEventV2Request.attributes) &&
316+
Objects.equals(this.loyaltyCards, integrationEventV2Request.loyaltyCards) &&
281317
Objects.equals(this.responseContent, integrationEventV2Request.responseContent);
282318
}
283319

284320
@Override
285321
public int hashCode() {
286-
return Objects.hash(profileId, storeIntegrationId, evaluableCampaignIds, type, attributes, responseContent);
322+
return Objects.hash(profileId, storeIntegrationId, evaluableCampaignIds, type, attributes, loyaltyCards, responseContent);
287323
}
288324

289325

@@ -296,6 +332,7 @@ public String toString() {
296332
sb.append(" evaluableCampaignIds: ").append(toIndentedString(evaluableCampaignIds)).append("\n");
297333
sb.append(" type: ").append(toIndentedString(type)).append("\n");
298334
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
335+
sb.append(" loyaltyCards: ").append(toIndentedString(loyaltyCards)).append("\n");
299336
sb.append(" responseContent: ").append(toIndentedString(responseContent)).append("\n");
300337
sb.append("}");
301338
return sb.toString();

0 commit comments

Comments
 (0)