](../../models/components/LatitudeOptions.md) | :heavy_minus_sign: | Custom options to be passed to the `gem-gem` connector. |
diff --git a/gradle.properties b/gradle.properties
index f31390d6..8fb0fcdc 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,4 +1,4 @@
groupId=com.gr4vy
artifactId=sdk
-version=2.16.105
+version=2.16.106
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g
diff --git a/src/main/java/com/gr4vy/sdk/SDKConfiguration.java b/src/main/java/com/gr4vy/sdk/SDKConfiguration.java
index 110ff68c..2c33d495 100644
--- a/src/main/java/com/gr4vy/sdk/SDKConfiguration.java
+++ b/src/main/java/com/gr4vy/sdk/SDKConfiguration.java
@@ -22,7 +22,7 @@ public class SDKConfiguration {
private static final String LANGUAGE = "java";
public static final String OPENAPI_DOC_VERSION = "1.0.0";
- public static final String SDK_VERSION = "2.16.105";
+ public static final String SDK_VERSION = "2.16.106";
public static final String GEN_VERSION = "2.916.2";
private static final String BASE_PACKAGE = "com.gr4vy.sdk";
public static final String USER_AGENT =
diff --git a/src/main/java/com/gr4vy/sdk/models/components/Interval.java b/src/main/java/com/gr4vy/sdk/models/components/Interval.java
new file mode 100644
index 00000000..a3c41e3f
--- /dev/null
+++ b/src/main/java/com/gr4vy/sdk/models/components/Interval.java
@@ -0,0 +1,140 @@
+/*
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
+ */
+package com.gr4vy.sdk.models.components;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import java.lang.Override;
+import java.lang.String;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.Objects;
+import java.util.Optional;
+
+/**
+ * Wrapper for an "open" enum that can handle unknown values from API responses
+ * without runtime errors. Instances are immutable singletons with reference equality.
+ * Use {@code asEnum()} for switch expressions.
+ */
+/**
+ * Interval
+ *
+ * The cadence unit for the subscription plan.
+ */
+public class Interval {
+
+ public static final Interval DAY = new Interval("DAY");
+ public static final Interval WEEK = new Interval("WEEK");
+ public static final Interval MONTH = new Interval("MONTH");
+ public static final Interval YEAR = new Interval("YEAR");
+
+ // This map will grow whenever a Color gets created with a new
+ // unrecognized value (a potential memory leak if the user is not
+ // careful). Keep this field lower case to avoid clashing with
+ // generated member names which will always be upper cased (Java
+ // convention)
+ private static final Map values = createValuesMap();
+ private static final Map enums = createEnumsMap();
+
+ private final String value;
+
+ private Interval(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Returns a Interval with the given value. For a specific value the
+ * returned object will always be a singleton so reference equality
+ * is satisfied when the values are the same.
+ *
+ * @param value value to be wrapped as Interval
+ */
+ @JsonCreator
+ public static Interval of(String value) {
+ synchronized (Interval.class) {
+ return values.computeIfAbsent(value, v -> new Interval(v));
+ }
+ }
+
+ @JsonValue
+ public String value() {
+ return value;
+ }
+
+ public Optional asEnum() {
+ return Optional.ofNullable(enums.getOrDefault(value, null));
+ }
+
+ public boolean isKnown() {
+ return asEnum().isPresent();
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(value);
+ }
+
+ @Override
+ public boolean equals(java.lang.Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ Interval other = (Interval) obj;
+ return Objects.equals(value, other.value);
+ }
+
+ @Override
+ public String toString() {
+ return "Interval [value=" + value + "]";
+ }
+
+ // return an array just like an enum
+ public static Interval[] values() {
+ synchronized (Interval.class) {
+ return values.values().toArray(new Interval[] {});
+ }
+ }
+
+ private static final Map createValuesMap() {
+ Map map = new LinkedHashMap<>();
+ map.put("DAY", DAY);
+ map.put("WEEK", WEEK);
+ map.put("MONTH", MONTH);
+ map.put("YEAR", YEAR);
+ return map;
+ }
+
+ private static final Map createEnumsMap() {
+ Map map = new HashMap<>();
+ map.put("DAY", IntervalEnum.DAY);
+ map.put("WEEK", IntervalEnum.WEEK);
+ map.put("MONTH", IntervalEnum.MONTH);
+ map.put("YEAR", IntervalEnum.YEAR);
+ return map;
+ }
+
+
+ public enum IntervalEnum {
+
+ DAY("DAY"),
+ WEEK("WEEK"),
+ MONTH("MONTH"),
+ YEAR("YEAR"),;
+
+ private final String value;
+
+ private IntervalEnum(String value) {
+ this.value = value;
+ }
+
+ public String value() {
+ return value;
+ }
+ }
+}
+
diff --git a/src/main/java/com/gr4vy/sdk/models/components/KlarnaOptions.java b/src/main/java/com/gr4vy/sdk/models/components/KlarnaOptions.java
new file mode 100644
index 00000000..8703b21e
--- /dev/null
+++ b/src/main/java/com/gr4vy/sdk/models/components/KlarnaOptions.java
@@ -0,0 +1,278 @@
+/*
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
+ */
+package com.gr4vy.sdk.models.components;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.gr4vy.sdk.utils.Utils;
+import java.lang.Boolean;
+import java.lang.Override;
+import java.lang.String;
+import java.lang.SuppressWarnings;
+import org.openapitools.jackson.nullable.JsonNullable;
+
+
+public class KlarnaOptions {
+ /**
+ * Provides subscription information to Klarna.
+ */
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("subscription")
+ private JsonNullable extends KlarnaSubscriptionOptions> subscription;
+
+ /**
+ * When set to `true`, this will authorize the transaction with Klarna for the purposes of tokenizing
+ * the payment method with the transaction details. No funds will be captured and the authorization
+ * will be automatically voided. This is useful for up-sell scenarios where you want to tokenize a
+ * Klarna payment method for future use.
+ */
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("token_only_mode")
+ private JsonNullable tokenOnlyMode;
+
+ /**
+ * An authorization token returned by the Klarna Express Checkout JS SDK after the buyer completes
+ * payment in the embedded widget. When provided, the connector skips the HPP redirect and places the
+ * Klarna order directly using this token.
+ */
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("authorization_token")
+ private JsonNullable authorizationToken;
+
+ @JsonCreator
+ public KlarnaOptions(
+ @JsonProperty("subscription") JsonNullable extends KlarnaSubscriptionOptions> subscription,
+ @JsonProperty("token_only_mode") JsonNullable tokenOnlyMode,
+ @JsonProperty("authorization_token") JsonNullable authorizationToken) {
+ Utils.checkNotNull(subscription, "subscription");
+ Utils.checkNotNull(tokenOnlyMode, "tokenOnlyMode");
+ Utils.checkNotNull(authorizationToken, "authorizationToken");
+ this.subscription = subscription;
+ this.tokenOnlyMode = tokenOnlyMode;
+ this.authorizationToken = authorizationToken;
+ }
+
+ public KlarnaOptions() {
+ this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined());
+ }
+
+ /**
+ * Provides subscription information to Klarna.
+ */
+ @SuppressWarnings("unchecked")
+ @JsonIgnore
+ public JsonNullable subscription() {
+ return (JsonNullable) subscription;
+ }
+
+ /**
+ * When set to `true`, this will authorize the transaction with Klarna for the purposes of tokenizing
+ * the payment method with the transaction details. No funds will be captured and the authorization
+ * will be automatically voided. This is useful for up-sell scenarios where you want to tokenize a
+ * Klarna payment method for future use.
+ */
+ @JsonIgnore
+ public JsonNullable tokenOnlyMode() {
+ return tokenOnlyMode;
+ }
+
+ /**
+ * An authorization token returned by the Klarna Express Checkout JS SDK after the buyer completes
+ * payment in the embedded widget. When provided, the connector skips the HPP redirect and places the
+ * Klarna order directly using this token.
+ */
+ @JsonIgnore
+ public JsonNullable authorizationToken() {
+ return authorizationToken;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+
+ /**
+ * Provides subscription information to Klarna.
+ */
+ public KlarnaOptions withSubscription(KlarnaSubscriptionOptions subscription) {
+ Utils.checkNotNull(subscription, "subscription");
+ this.subscription = JsonNullable.of(subscription);
+ return this;
+ }
+
+ /**
+ * Provides subscription information to Klarna.
+ */
+ public KlarnaOptions withSubscription(JsonNullable extends KlarnaSubscriptionOptions> subscription) {
+ Utils.checkNotNull(subscription, "subscription");
+ this.subscription = subscription;
+ return this;
+ }
+
+ /**
+ * When set to `true`, this will authorize the transaction with Klarna for the purposes of tokenizing
+ * the payment method with the transaction details. No funds will be captured and the authorization
+ * will be automatically voided. This is useful for up-sell scenarios where you want to tokenize a
+ * Klarna payment method for future use.
+ */
+ public KlarnaOptions withTokenOnlyMode(boolean tokenOnlyMode) {
+ Utils.checkNotNull(tokenOnlyMode, "tokenOnlyMode");
+ this.tokenOnlyMode = JsonNullable.of(tokenOnlyMode);
+ return this;
+ }
+
+ /**
+ * When set to `true`, this will authorize the transaction with Klarna for the purposes of tokenizing
+ * the payment method with the transaction details. No funds will be captured and the authorization
+ * will be automatically voided. This is useful for up-sell scenarios where you want to tokenize a
+ * Klarna payment method for future use.
+ */
+ public KlarnaOptions withTokenOnlyMode(JsonNullable tokenOnlyMode) {
+ Utils.checkNotNull(tokenOnlyMode, "tokenOnlyMode");
+ this.tokenOnlyMode = tokenOnlyMode;
+ return this;
+ }
+
+ /**
+ * An authorization token returned by the Klarna Express Checkout JS SDK after the buyer completes
+ * payment in the embedded widget. When provided, the connector skips the HPP redirect and places the
+ * Klarna order directly using this token.
+ */
+ public KlarnaOptions withAuthorizationToken(String authorizationToken) {
+ Utils.checkNotNull(authorizationToken, "authorizationToken");
+ this.authorizationToken = JsonNullable.of(authorizationToken);
+ return this;
+ }
+
+ /**
+ * An authorization token returned by the Klarna Express Checkout JS SDK after the buyer completes
+ * payment in the embedded widget. When provided, the connector skips the HPP redirect and places the
+ * Klarna order directly using this token.
+ */
+ public KlarnaOptions withAuthorizationToken(JsonNullable authorizationToken) {
+ Utils.checkNotNull(authorizationToken, "authorizationToken");
+ this.authorizationToken = authorizationToken;
+ return this;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ KlarnaOptions other = (KlarnaOptions) o;
+ return
+ Utils.enhancedDeepEquals(this.subscription, other.subscription) &&
+ Utils.enhancedDeepEquals(this.tokenOnlyMode, other.tokenOnlyMode) &&
+ Utils.enhancedDeepEquals(this.authorizationToken, other.authorizationToken);
+ }
+
+ @Override
+ public int hashCode() {
+ return Utils.enhancedHash(
+ subscription, tokenOnlyMode, authorizationToken);
+ }
+
+ @Override
+ public String toString() {
+ return Utils.toString(KlarnaOptions.class,
+ "subscription", subscription,
+ "tokenOnlyMode", tokenOnlyMode,
+ "authorizationToken", authorizationToken);
+ }
+
+ @SuppressWarnings("UnusedReturnValue")
+ public final static class Builder {
+
+ private JsonNullable extends KlarnaSubscriptionOptions> subscription = JsonNullable.undefined();
+
+ private JsonNullable tokenOnlyMode = JsonNullable.undefined();
+
+ private JsonNullable authorizationToken = JsonNullable.undefined();
+
+ private Builder() {
+ // force use of static builder() method
+ }
+
+
+ /**
+ * Provides subscription information to Klarna.
+ */
+ public Builder subscription(KlarnaSubscriptionOptions subscription) {
+ Utils.checkNotNull(subscription, "subscription");
+ this.subscription = JsonNullable.of(subscription);
+ return this;
+ }
+
+ /**
+ * Provides subscription information to Klarna.
+ */
+ public Builder subscription(JsonNullable extends KlarnaSubscriptionOptions> subscription) {
+ Utils.checkNotNull(subscription, "subscription");
+ this.subscription = subscription;
+ return this;
+ }
+
+
+ /**
+ * When set to `true`, this will authorize the transaction with Klarna for the purposes of tokenizing
+ * the payment method with the transaction details. No funds will be captured and the authorization
+ * will be automatically voided. This is useful for up-sell scenarios where you want to tokenize a
+ * Klarna payment method for future use.
+ */
+ public Builder tokenOnlyMode(boolean tokenOnlyMode) {
+ Utils.checkNotNull(tokenOnlyMode, "tokenOnlyMode");
+ this.tokenOnlyMode = JsonNullable.of(tokenOnlyMode);
+ return this;
+ }
+
+ /**
+ * When set to `true`, this will authorize the transaction with Klarna for the purposes of tokenizing
+ * the payment method with the transaction details. No funds will be captured and the authorization
+ * will be automatically voided. This is useful for up-sell scenarios where you want to tokenize a
+ * Klarna payment method for future use.
+ */
+ public Builder tokenOnlyMode(JsonNullable tokenOnlyMode) {
+ Utils.checkNotNull(tokenOnlyMode, "tokenOnlyMode");
+ this.tokenOnlyMode = tokenOnlyMode;
+ return this;
+ }
+
+
+ /**
+ * An authorization token returned by the Klarna Express Checkout JS SDK after the buyer completes
+ * payment in the embedded widget. When provided, the connector skips the HPP redirect and places the
+ * Klarna order directly using this token.
+ */
+ public Builder authorizationToken(String authorizationToken) {
+ Utils.checkNotNull(authorizationToken, "authorizationToken");
+ this.authorizationToken = JsonNullable.of(authorizationToken);
+ return this;
+ }
+
+ /**
+ * An authorization token returned by the Klarna Express Checkout JS SDK after the buyer completes
+ * payment in the embedded widget. When provided, the connector skips the HPP redirect and places the
+ * Klarna order directly using this token.
+ */
+ public Builder authorizationToken(JsonNullable authorizationToken) {
+ Utils.checkNotNull(authorizationToken, "authorizationToken");
+ this.authorizationToken = authorizationToken;
+ return this;
+ }
+
+ public KlarnaOptions build() {
+
+ return new KlarnaOptions(
+ subscription, tokenOnlyMode, authorizationToken);
+ }
+
+ }
+}
diff --git a/src/main/java/com/gr4vy/sdk/models/components/KlarnaSubscriptionOptions.java b/src/main/java/com/gr4vy/sdk/models/components/KlarnaSubscriptionOptions.java
new file mode 100644
index 00000000..fa859133
--- /dev/null
+++ b/src/main/java/com/gr4vy/sdk/models/components/KlarnaSubscriptionOptions.java
@@ -0,0 +1,228 @@
+/*
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
+ */
+package com.gr4vy.sdk.models.components;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.gr4vy.sdk.utils.Utils;
+import java.lang.Long;
+import java.lang.Override;
+import java.lang.String;
+
+
+public class KlarnaSubscriptionOptions {
+ /**
+ * The name of the subscription product. The recommended format includes a subscription id and double
+ * curly brackets.
+ */
+ @JsonProperty("name")
+ private String name;
+
+ /**
+ * The cadence unit for the subscription plan.
+ */
+ @JsonProperty("interval")
+ private Interval interval;
+
+ /**
+ * The number corresponding to the interval unit.
+ */
+ @JsonProperty("interval_count")
+ private long intervalCount;
+
+ /**
+ * Reference to a SKU in the transaction's cart items to link subscription to.
+ */
+ @JsonProperty("reference")
+ private String reference;
+
+ @JsonCreator
+ public KlarnaSubscriptionOptions(
+ @JsonProperty("name") String name,
+ @JsonProperty("interval") Interval interval,
+ @JsonProperty("interval_count") long intervalCount,
+ @JsonProperty("reference") String reference) {
+ Utils.checkNotNull(name, "name");
+ Utils.checkNotNull(interval, "interval");
+ Utils.checkNotNull(intervalCount, "intervalCount");
+ Utils.checkNotNull(reference, "reference");
+ this.name = name;
+ this.interval = interval;
+ this.intervalCount = intervalCount;
+ this.reference = reference;
+ }
+
+ /**
+ * The name of the subscription product. The recommended format includes a subscription id and double
+ * curly brackets.
+ */
+ @JsonIgnore
+ public String name() {
+ return name;
+ }
+
+ /**
+ * The cadence unit for the subscription plan.
+ */
+ @JsonIgnore
+ public Interval interval() {
+ return interval;
+ }
+
+ /**
+ * The number corresponding to the interval unit.
+ */
+ @JsonIgnore
+ public long intervalCount() {
+ return intervalCount;
+ }
+
+ /**
+ * Reference to a SKU in the transaction's cart items to link subscription to.
+ */
+ @JsonIgnore
+ public String reference() {
+ return reference;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+
+ /**
+ * The name of the subscription product. The recommended format includes a subscription id and double
+ * curly brackets.
+ */
+ public KlarnaSubscriptionOptions withName(String name) {
+ Utils.checkNotNull(name, "name");
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * The cadence unit for the subscription plan.
+ */
+ public KlarnaSubscriptionOptions withInterval(Interval interval) {
+ Utils.checkNotNull(interval, "interval");
+ this.interval = interval;
+ return this;
+ }
+
+ /**
+ * The number corresponding to the interval unit.
+ */
+ public KlarnaSubscriptionOptions withIntervalCount(long intervalCount) {
+ Utils.checkNotNull(intervalCount, "intervalCount");
+ this.intervalCount = intervalCount;
+ return this;
+ }
+
+ /**
+ * Reference to a SKU in the transaction's cart items to link subscription to.
+ */
+ public KlarnaSubscriptionOptions withReference(String reference) {
+ Utils.checkNotNull(reference, "reference");
+ this.reference = reference;
+ return this;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ KlarnaSubscriptionOptions other = (KlarnaSubscriptionOptions) o;
+ return
+ Utils.enhancedDeepEquals(this.name, other.name) &&
+ Utils.enhancedDeepEquals(this.interval, other.interval) &&
+ Utils.enhancedDeepEquals(this.intervalCount, other.intervalCount) &&
+ Utils.enhancedDeepEquals(this.reference, other.reference);
+ }
+
+ @Override
+ public int hashCode() {
+ return Utils.enhancedHash(
+ name, interval, intervalCount,
+ reference);
+ }
+
+ @Override
+ public String toString() {
+ return Utils.toString(KlarnaSubscriptionOptions.class,
+ "name", name,
+ "interval", interval,
+ "intervalCount", intervalCount,
+ "reference", reference);
+ }
+
+ @SuppressWarnings("UnusedReturnValue")
+ public final static class Builder {
+
+ private String name;
+
+ private Interval interval;
+
+ private Long intervalCount;
+
+ private String reference;
+
+ private Builder() {
+ // force use of static builder() method
+ }
+
+
+ /**
+ * The name of the subscription product. The recommended format includes a subscription id and double
+ * curly brackets.
+ */
+ public Builder name(String name) {
+ Utils.checkNotNull(name, "name");
+ this.name = name;
+ return this;
+ }
+
+
+ /**
+ * The cadence unit for the subscription plan.
+ */
+ public Builder interval(Interval interval) {
+ Utils.checkNotNull(interval, "interval");
+ this.interval = interval;
+ return this;
+ }
+
+
+ /**
+ * The number corresponding to the interval unit.
+ */
+ public Builder intervalCount(long intervalCount) {
+ Utils.checkNotNull(intervalCount, "intervalCount");
+ this.intervalCount = intervalCount;
+ return this;
+ }
+
+
+ /**
+ * Reference to a SKU in the transaction's cart items to link subscription to.
+ */
+ public Builder reference(String reference) {
+ Utils.checkNotNull(reference, "reference");
+ this.reference = reference;
+ return this;
+ }
+
+ public KlarnaSubscriptionOptions build() {
+
+ return new KlarnaSubscriptionOptions(
+ name, interval, intervalCount,
+ reference);
+ }
+
+ }
+}
diff --git a/src/main/java/com/gr4vy/sdk/models/components/TransactionConnectionOptions.java b/src/main/java/com/gr4vy/sdk/models/components/TransactionConnectionOptions.java
index d82b298c..0af3991a 100644
--- a/src/main/java/com/gr4vy/sdk/models/components/TransactionConnectionOptions.java
+++ b/src/main/java/com/gr4vy/sdk/models/components/TransactionConnectionOptions.java
@@ -234,6 +234,13 @@ public class TransactionConnectionOptions {
@JsonProperty("ecommpay-card")
private JsonNullable extends EcommpayOptions> ecommpayCard;
+ /**
+ * Custom options to be passed to the `klarna-klarna` connector.
+ */
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("klarna-klarna")
+ private JsonNullable extends KlarnaOptions> klarnaKlarna;
+
/**
* Custom options to be passed to the `fiserv-card` connector.
*/
@@ -484,6 +491,7 @@ public TransactionConnectionOptions(
@JsonProperty("dlocal-pix") JsonNullable extends DlocalPIXOptions> dlocalPix,
@JsonProperty("dlocal-gcash") JsonNullable extends DlocalOptions> dlocalGcash,
@JsonProperty("ecommpay-card") JsonNullable extends EcommpayOptions> ecommpayCard,
+ @JsonProperty("klarna-klarna") JsonNullable extends KlarnaOptions> klarnaKlarna,
@JsonProperty("fiserv-card") JsonNullable extends FiservOptions> fiservCard,
@JsonProperty("forter-anti-fraud") JsonNullable extends ForterAntiFraudOptions> forterAntiFraud,
@JsonProperty("gem-gem") JsonNullable extends LatitudeOptions> gemGem,
@@ -546,6 +554,7 @@ public TransactionConnectionOptions(
Utils.checkNotNull(dlocalPix, "dlocalPix");
Utils.checkNotNull(dlocalGcash, "dlocalGcash");
Utils.checkNotNull(ecommpayCard, "ecommpayCard");
+ Utils.checkNotNull(klarnaKlarna, "klarnaKlarna");
Utils.checkNotNull(fiservCard, "fiservCard");
Utils.checkNotNull(forterAntiFraud, "forterAntiFraud");
Utils.checkNotNull(gemGem, "gemGem");
@@ -608,6 +617,7 @@ public TransactionConnectionOptions(
this.dlocalPix = dlocalPix;
this.dlocalGcash = dlocalGcash;
this.ecommpayCard = ecommpayCard;
+ this.klarnaKlarna = klarnaKlarna;
this.fiservCard = fiservCard;
this.forterAntiFraud = forterAntiFraud;
this.gemGem = gemGem;
@@ -662,7 +672,7 @@ public TransactionConnectionOptions() {
JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
- JsonNullable.undefined(), JsonNullable.undefined());
+ JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined());
}
/**
@@ -945,6 +955,15 @@ public JsonNullable ecommpayCard() {
return (JsonNullable) ecommpayCard;
}
+ /**
+ * Custom options to be passed to the `klarna-klarna` connector.
+ */
+ @SuppressWarnings("unchecked")
+ @JsonIgnore
+ public JsonNullable klarnaKlarna() {
+ return (JsonNullable) klarnaKlarna;
+ }
+
/**
* Custom options to be passed to the `fiserv-card` connector.
*/
@@ -1789,6 +1808,24 @@ public TransactionConnectionOptions withEcommpayCard(JsonNullable extends Ecom
return this;
}
+ /**
+ * Custom options to be passed to the `klarna-klarna` connector.
+ */
+ public TransactionConnectionOptions withKlarnaKlarna(KlarnaOptions klarnaKlarna) {
+ Utils.checkNotNull(klarnaKlarna, "klarnaKlarna");
+ this.klarnaKlarna = JsonNullable.of(klarnaKlarna);
+ return this;
+ }
+
+ /**
+ * Custom options to be passed to the `klarna-klarna` connector.
+ */
+ public TransactionConnectionOptions withKlarnaKlarna(JsonNullable extends KlarnaOptions> klarnaKlarna) {
+ Utils.checkNotNull(klarnaKlarna, "klarnaKlarna");
+ this.klarnaKlarna = klarnaKlarna;
+ return this;
+ }
+
/**
* Custom options to be passed to the `fiserv-card` connector.
*/
@@ -2388,6 +2425,7 @@ public boolean equals(java.lang.Object o) {
Utils.enhancedDeepEquals(this.dlocalPix, other.dlocalPix) &&
Utils.enhancedDeepEquals(this.dlocalGcash, other.dlocalGcash) &&
Utils.enhancedDeepEquals(this.ecommpayCard, other.ecommpayCard) &&
+ Utils.enhancedDeepEquals(this.klarnaKlarna, other.klarnaKlarna) &&
Utils.enhancedDeepEquals(this.fiservCard, other.fiservCard) &&
Utils.enhancedDeepEquals(this.forterAntiFraud, other.forterAntiFraud) &&
Utils.enhancedDeepEquals(this.gemGem, other.gemGem) &&
@@ -2434,17 +2472,17 @@ public int hashCode() {
chaseorbitalCard, cybersourceAntiFraud, cybersourceCard,
cybersourceIdeal, cybersourceKcp, dlocalNequi,
dlocalUpi, dlocalPix, dlocalGcash,
- ecommpayCard, fiservCard, forterAntiFraud,
- gemGem, gemGemds, givingblockGivingblock,
- gocardlessGocardless, latitudeLatitude, latitudeLatitudeds,
- mattildaTapi, mattildaTapifintechs, monatoSpei,
- mockCard, mockdsCard, nuveiCard,
- nuveiIdeal, nuveiKlarna, nuveiPse,
- oxxoOxxo, paypalPaypal, paypalPaypalpaylater,
- powertranzCard, riskifiedAntiFraud, stripeAffirm,
- stripeCard, stripeKlarna, stripeOnelink,
- stripeStripe, travelhubCard, trustlyTrustly,
- wpayEverydaypay, wpayPayto);
+ ecommpayCard, klarnaKlarna, fiservCard,
+ forterAntiFraud, gemGem, gemGemds,
+ givingblockGivingblock, gocardlessGocardless, latitudeLatitude,
+ latitudeLatitudeds, mattildaTapi, mattildaTapifintechs,
+ monatoSpei, mockCard, mockdsCard,
+ nuveiCard, nuveiIdeal, nuveiKlarna,
+ nuveiPse, oxxoOxxo, paypalPaypal,
+ paypalPaypalpaylater, powertranzCard, riskifiedAntiFraud,
+ stripeAffirm, stripeCard, stripeKlarna,
+ stripeOnelink, stripeStripe, travelhubCard,
+ trustlyTrustly, wpayEverydaypay, wpayPayto);
}
@Override
@@ -2481,6 +2519,7 @@ public String toString() {
"dlocalPix", dlocalPix,
"dlocalGcash", dlocalGcash,
"ecommpayCard", ecommpayCard,
+ "klarnaKlarna", klarnaKlarna,
"fiservCard", fiservCard,
"forterAntiFraud", forterAntiFraud,
"gemGem", gemGem,
@@ -2579,6 +2618,8 @@ public final static class Builder {
private JsonNullable extends EcommpayOptions> ecommpayCard = JsonNullable.undefined();
+ private JsonNullable extends KlarnaOptions> klarnaKlarna = JsonNullable.undefined();
+
private JsonNullable extends FiservOptions> fiservCard = JsonNullable.undefined();
private JsonNullable extends ForterAntiFraudOptions> forterAntiFraud = JsonNullable.undefined();
@@ -3237,6 +3278,25 @@ public Builder ecommpayCard(JsonNullable extends EcommpayOptions> ecommpayCard
}
+ /**
+ * Custom options to be passed to the `klarna-klarna` connector.
+ */
+ public Builder klarnaKlarna(KlarnaOptions klarnaKlarna) {
+ Utils.checkNotNull(klarnaKlarna, "klarnaKlarna");
+ this.klarnaKlarna = JsonNullable.of(klarnaKlarna);
+ return this;
+ }
+
+ /**
+ * Custom options to be passed to the `klarna-klarna` connector.
+ */
+ public Builder klarnaKlarna(JsonNullable extends KlarnaOptions> klarnaKlarna) {
+ Utils.checkNotNull(klarnaKlarna, "klarnaKlarna");
+ this.klarnaKlarna = klarnaKlarna;
+ return this;
+ }
+
+
/**
* Custom options to be passed to the `fiserv-card` connector.
*/
@@ -3838,17 +3898,17 @@ public TransactionConnectionOptions build() {
chaseorbitalCard, cybersourceAntiFraud, cybersourceCard,
cybersourceIdeal, cybersourceKcp, dlocalNequi,
dlocalUpi, dlocalPix, dlocalGcash,
- ecommpayCard, fiservCard, forterAntiFraud,
- gemGem, gemGemds, givingblockGivingblock,
- gocardlessGocardless, latitudeLatitude, latitudeLatitudeds,
- mattildaTapi, mattildaTapifintechs, monatoSpei,
- mockCard, mockdsCard, nuveiCard,
- nuveiIdeal, nuveiKlarna, nuveiPse,
- oxxoOxxo, paypalPaypal, paypalPaypalpaylater,
- powertranzCard, riskifiedAntiFraud, stripeAffirm,
- stripeCard, stripeKlarna, stripeOnelink,
- stripeStripe, travelhubCard, trustlyTrustly,
- wpayEverydaypay, wpayPayto);
+ ecommpayCard, klarnaKlarna, fiservCard,
+ forterAntiFraud, gemGem, gemGemds,
+ givingblockGivingblock, gocardlessGocardless, latitudeLatitude,
+ latitudeLatitudeds, mattildaTapi, mattildaTapifintechs,
+ monatoSpei, mockCard, mockdsCard,
+ nuveiCard, nuveiIdeal, nuveiKlarna,
+ nuveiPse, oxxoOxxo, paypalPaypal,
+ paypalPaypalpaylater, powertranzCard, riskifiedAntiFraud,
+ stripeAffirm, stripeCard, stripeKlarna,
+ stripeOnelink, stripeStripe, travelhubCard,
+ trustlyTrustly, wpayEverydaypay, wpayPayto);
}
}