diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index b9cf5d93..ce0fdddd 100644
--- a/.speakeasy/gen.lock
+++ b/.speakeasy/gen.lock
@@ -1,18 +1,18 @@
lockVersion: 2.0.0
id: 5bbaa3a9-baa0-471b-ba6a-13fd88e8c119
management:
- docChecksum: 733faddd8b412a7f73bbeb5877d5cd3e
+ docChecksum: 842c840940cd903936d40e01ca3d1d78
docVersion: 1.0.0
speakeasyVersion: 1.685.0
generationVersion: 2.794.1
- releaseVersion: 2.16.10
- configChecksum: d8b13e64ab13699905fe50a72ff733ce
+ releaseVersion: 2.16.11
+ configChecksum: d1b32924970babb70956548ebfece3d7
repoURL: https://github.com/gr4vy/gr4vy-java.git
published: true
persistentEdits:
- generation_id: 09277a46-8aba-4341-a475-546e1b335832
- pristine_commit_hash: 7669970d3aab31fcf13afe17397d3325658d90b8
- pristine_tree_hash: e3aa740b599491e46dc1b13a48ba8592dd3ecd64
+ generation_id: 92c48d97-f003-4f3a-8b0f-f4a7f999a305
+ pristine_commit_hash: 83abc0efa8683fa5ffbff76b07a60e36626901c4
+ pristine_tree_hash: d59d636f179989182df51c8a3d778bd85f2b7db0
features:
java:
additionalDependencies: 0.1.0
@@ -1015,6 +1015,10 @@ trackedFiles:
id: 59d3f4d22e02
last_write_checksum: sha1:9fefe564caf2fd669587331917d34024fb9e7f2f
pristine_git_object: 48e63fc01f63c98dd4b17ccb7b0c8a0fda7ce83f
+ docs/models/components/ThreeDSecure.md:
+ id: 58160703521e
+ last_write_checksum: sha1:44dad476a1ceffeb4418de8718ed8f88ae7102fe
+ pristine_git_object: 1e03b0a861ef0f7d54924787bdd10eee7f4cbf2d
docs/models/components/ThreeDSecureData.md:
id: 346357f919b5
last_write_checksum: sha1:c3bf5fe11076a0bb4337e5323096abec2163b933
@@ -1089,8 +1093,8 @@ trackedFiles:
pristine_git_object: 2b8883e86c476138f87182825a0044ae24413598
docs/models/components/TransactionCreate.md:
id: 0af6b811ca1f
- last_write_checksum: sha1:678ecaec5ac928293585343b5aa64b48ea296766
- pristine_git_object: 0dbd91b9537a2ebfb2a600f753aaf2981643b7a5
+ last_write_checksum: sha1:3e09689034328ac57623d720a2ca8560aca5f8e4
+ pristine_git_object: 7a33352d4abf318c77841a21ed96b97b37463563
docs/models/components/TransactionCreatePaymentMethod.md:
id: d01bc2723cd5
last_write_checksum: sha1:4ac7c25162f999d9c8ee377251c459379e684445
@@ -1153,8 +1157,8 @@ trackedFiles:
pristine_git_object: abe1427c44eb62b25cbb81db142d6f55afe29816
docs/models/components/TransactionThreeDSecureSummary.md:
id: 5b36b4b54f8b
- last_write_checksum: sha1:1467d5bc104405ee6577df256e001da0e46b6e8f
- pristine_git_object: 4ff3a938d7f8583347b3c7dcdc1850c88f9b6a2d
+ last_write_checksum: sha1:bcc220f4ce3c4f5fc59bd5ec28c673c8b3a953c6
+ pristine_git_object: d95d2869283fafd60270d74b063f38f4a83d7a3f
docs/models/components/TransactionUpdate.md:
id: 9a4222232d00
last_write_checksum: sha1:5576f0719570a88546e96dd4d75b69930af82518
@@ -2173,8 +2177,8 @@ trackedFiles:
pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b
gradle.properties:
id: 2afbb999f001
- last_write_checksum: sha1:e5f65cc8c2552f023f23fa728b62f8372aa526d2
- pristine_git_object: 381475305b4c7fb264c1ac280af8af08a4d4adcc
+ last_write_checksum: sha1:5b6bd952c11849a1b717e20969967d98fbd44ea8
+ pristine_git_object: 89105342f23688df79b17a73c6dc182bd1e7354f
gradle/wrapper/gradle-wrapper.jar:
id: ec27dae6e852
last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611
@@ -2489,8 +2493,8 @@ trackedFiles:
pristine_git_object: 502a7312d3dc82c102dbaf7ed5e952d0c793e26f
src/main/java/com/gr4vy/sdk/SDKConfiguration.java:
id: 73a7edeaca45
- last_write_checksum: sha1:dcb79e7e72e157d7670d75fc99561e51a78ee43d
- pristine_git_object: cbb783d9716390305b4dfda96eb1a1c5993cb8c5
+ last_write_checksum: sha1:df16a90f6e8f440cf35cf9392bd2c7e0d6a79d67
+ pristine_git_object: 68180ff385035a2f49cc518ce4c5c842f94d8c02
src/main/java/com/gr4vy/sdk/SecuritySource.java:
id: 1b6add6b9b50
last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd
@@ -3487,6 +3491,10 @@ trackedFiles:
id: 8ee0703851a2
last_write_checksum: sha1:e6f581aed0be28e95f9b2b8641d2747e71b4a80b
pristine_git_object: 7ac2735f5dcc1ebc1fe57d67121ac07da9bfa074
+ src/main/java/com/gr4vy/sdk/models/components/ThreeDSecure.java:
+ id: eaf43877819c
+ last_write_checksum: sha1:1499c45924762ebf996a5446d4affc4af62d1f5b
+ pristine_git_object: 40c09fdeaade83797a171cefc47dfc989cb79905
src/main/java/com/gr4vy/sdk/models/components/ThreeDSecureData.java:
id: ed73f95ee5c2
last_write_checksum: sha1:bf6e8e97261b2f64ff792f70aadfb1a379a2c9d1
@@ -3561,8 +3569,8 @@ trackedFiles:
pristine_git_object: 1202736e97429fc2d498d2c03ab22d6a0188818c
src/main/java/com/gr4vy/sdk/models/components/TransactionCreate.java:
id: 85da9dd45d8a
- last_write_checksum: sha1:ac98066fa6e29484ad2b49b2765f51efb6a899e0
- pristine_git_object: 65b1580dd572ec47d45494c078f86c84f9693bf4
+ last_write_checksum: sha1:09f92bca972295f8156fc778049a61baea617409
+ pristine_git_object: 4df299785f5d777f5fd43a1972d13e19f04efc70
src/main/java/com/gr4vy/sdk/models/components/TransactionCreatePaymentMethod.java:
id: 1e1a35522446
last_write_checksum: sha1:ba9588c21e7fd94c1f1ccbe53330f721aa79404e
@@ -3625,8 +3633,8 @@ trackedFiles:
pristine_git_object: a8976ab29452628237f51387cac3aafcba54578b
src/main/java/com/gr4vy/sdk/models/components/TransactionThreeDSecureSummary.java:
id: 3f46e2031d9e
- last_write_checksum: sha1:5a2a63674d28802cd35f010aa5a96708b6a3fb8d
- pristine_git_object: 140859303fd1548eac9b0f7b7c932ec0bda3f6da
+ last_write_checksum: sha1:1b5ba5bf2f92f9b23d1bfc5171f87c1025a8a1df
+ pristine_git_object: 04d6e38fb61a56d5738a83d5e75e5c84959fd527
src/main/java/com/gr4vy/sdk/models/components/TransactionUpdate.java:
id: e22e11594cfe
last_write_checksum: sha1:aabc05150680f997b3a7ce6a52529edf473c8722
@@ -9795,7 +9803,7 @@ examples:
application/json: {"type": "error", "code": "gateway_timeout", "status": 504, "message": "Request could not be processed"}
examplesVersion: 1.0.2
generatedTests: {}
-releaseNotes: "## Java SDK Changes:\n* `gr4vy.paymentLinks.list()`: `response.items.[].installmentCount` **Added**\n* `gr4vy.paymentLinks.create()`: \n * `request.paymentlinkcreate.installmentCount` **Added**\n * `response.installment_count` **Added**\n* `gr4vy.paymentLinks.get()`: `response.installment_count` **Added**\n"
+releaseNotes: "## Java SDK Changes:\n* `gr4vy.transactions.create()`: \n * `request.transactioncreate.threeDSecure` **Added**\n * `response.three_d_secure.amount` **Added**\n* `gr4vy.transactions.get()`: `response.three_d_secure.amount` **Added**\n* `gr4vy.transactions.update()`: `response.three_d_secure.amount` **Added**\n* `gr4vy.transactions.capture()`: `response.[transaction].threeDSecure.amount` **Added**\n* `gr4vy.transactions.void()`: `response.[transactionvoid].transaction.threeDSecure.amount` **Added**\n* `gr4vy.transactions.cancel()`: `response.transaction.threeDSecure.amount` **Added**\n* `gr4vy.transactions.sync()`: `response.three_d_secure.amount` **Added**\n"
generatedFiles:
- .gitattributes
- USAGE.md
diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml
index 423cf1be..623621a7 100644
--- a/.speakeasy/gen.yaml
+++ b/.speakeasy/gen.yaml
@@ -27,7 +27,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
java:
- version: 2.16.10
+ version: 2.16.11
additionalDependencies:
- testImplementation:org.junit.jupiter:junit-jupiter:5.10.0
- implementation:com.auth0:java-jwt:4.5.0
diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock
index 8ba9aaed..23ef91c9 100644
--- a/.speakeasy/workflow.lock
+++ b/.speakeasy/workflow.lock
@@ -9,11 +9,11 @@ sources:
- 1.0.0
openapi:
sourceNamespace: openapi
- sourceRevisionDigest: sha256:ddedc9fb785d2533932ac9046f3704756c8de3ecae8ec5ea6d20649126e0ab2c
- sourceBlobDigest: sha256:e527365740eddcaa7c5dda9dba11438640fbaa4c2cccbd92a54b9231b708e897
+ sourceRevisionDigest: sha256:67371163803b0d0c2514d85fdbbdf944844c38a4f8ad0ff2b895ddf210b56f25
+ sourceBlobDigest: sha256:81eafd406c0d0c8363a7a18b7c434a8daf8e1a996d9efdcf3f2b04e1e102dcc7
tags:
- latest
- - speakeasy-sdk-regen-1768292735
+ - speakeasy-sdk-regen-1768309143
- 1.0.0
targets:
gr-4-vy:
@@ -26,10 +26,10 @@ targets:
java:
source: openapi
sourceNamespace: openapi
- sourceRevisionDigest: sha256:ddedc9fb785d2533932ac9046f3704756c8de3ecae8ec5ea6d20649126e0ab2c
- sourceBlobDigest: sha256:e527365740eddcaa7c5dda9dba11438640fbaa4c2cccbd92a54b9231b708e897
+ sourceRevisionDigest: sha256:67371163803b0d0c2514d85fdbbdf944844c38a4f8ad0ff2b895ddf210b56f25
+ sourceBlobDigest: sha256:81eafd406c0d0c8363a7a18b7c434a8daf8e1a996d9efdcf3f2b04e1e102dcc7
codeSamplesNamespace: openapi-java-code-samples
- codeSamplesRevisionDigest: sha256:b6691efe178f287d60a5623ad1ce08b2f0211a9de37e560bce7cbb7677438e85
+ codeSamplesRevisionDigest: sha256:b012441d0541a682bed890870baa7134c051b906eefdc6a89c403cb255e5da5d
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
diff --git a/README.md b/README.md
index f3a42693..e7419061 100644
--- a/README.md
+++ b/README.md
@@ -58,7 +58,7 @@ The samples below show how a published SDK artifact is used:
Gradle:
```groovy
-implementation 'com.gr4vy:sdk:2.16.10'
+implementation 'com.gr4vy:sdk:2.16.11'
```
Maven:
@@ -66,7 +66,7 @@ Maven:
com.gr4vy
sdk
- 2.16.10
+ 2.16.11
```
diff --git a/RELEASES.md b/RELEASES.md
index cc62b308..693f78f5 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -938,4 +938,14 @@ Based on:
### Generated
- [java v2.16.10] .
### Releases
-- [Maven Central v2.16.10] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.10 - .
\ No newline at end of file
+- [Maven Central v2.16.10] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.10 - .
+
+## 2026-01-13 12:58:40
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.685.0 (2.794.1) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [java v2.16.11] .
+### Releases
+- [Maven Central v2.16.11] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.11 - .
\ No newline at end of file
diff --git a/docs/models/components/ThreeDSecure.md b/docs/models/components/ThreeDSecure.md
new file mode 100644
index 00000000..1e03b0a8
--- /dev/null
+++ b/docs/models/components/ThreeDSecure.md
@@ -0,0 +1,8 @@
+# ThreeDSecure
+
+
+## Fields
+
+| Field | Type | Required | Description |
+| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
+| `amount` | *JsonNullable\* | :heavy_minus_sign: | The amount to be used for 3DS authentication. Optionally set this value to authenticate a greater amount than the transaction amount. |
\ No newline at end of file
diff --git a/docs/models/components/TransactionCreate.md b/docs/models/components/TransactionCreate.md
index 0dbd91b9..7a33352d 100644
--- a/docs/models/components/TransactionCreate.md
+++ b/docs/models/components/TransactionCreate.md
@@ -17,6 +17,7 @@
| `intent` | [Optional\](../../models/components/TransactionIntent.md) | :heavy_minus_sign: | N/A | |
| `store` | *Optional\* | :heavy_minus_sign: | Whether or not to also try and store the payment method with us so that it can be used again for future use. This is only supported for payment methods that support this feature. There are also a few restrictions on how the flag may be set:
* The flag has to be set to `true` when the `payment_source` is set to `recurring` or `installment`, and `merchant_initiated` is set to `false`.
* The flag has to be set to `false` (or not set) when using a previously vaulted payment method. | true |
| `threeDSecureData` | [JsonNullable\](../../models/components/ThreeDSecureData.md) | :heavy_minus_sign: | Pass through 3-D Secure data to support external 3-D Secure authorisation. If using an external 3-D Secure provider, you should not pass a `redirect_url` in the `payment_method` object for a transaction. | |
+| `threeDSecure` | [JsonNullable\](../../models/components/ThreeDSecure.md) | :heavy_minus_sign: | Optional 3-D Secure values to use during the authentication flow. | |
| `metadata` | Map\ | :heavy_minus_sign: | Any additional information about the transaction that you would like to store as key-value pairs. This data is passed to payment service providers that support it. | {
"cohort": "cohort-12345",
"order": "order-12345"
} |
| `isSubsequentPayment` | *Optional\* | :heavy_minus_sign: | Indicates whether the transaction represents a subsequent payment coming from a setup recurring payment. Please note there are some restrictions on how this flag may be used.
The flag can only be `false` (or not set) when the transaction meets one of the following criteria:
* It is not `merchant_initiated`.
* `payment_source` is set to `card_on_file`.
The flag can only be set to `true` when the transaction meets one of the following criteria:
* It is not `merchant_initiated`.
* `payment_source` is set to `recurring` or `installment` and `merchant_initiated` is set to `true`.
* `payment_source` is set to `card_on_file`. | true |
| `merchantInitiated` | *Optional\* | :heavy_minus_sign: | Indicates whether the transaction was initiated by the merchant (true) or customer (false). | true |
diff --git a/docs/models/components/TransactionThreeDSecureSummary.md b/docs/models/components/TransactionThreeDSecureSummary.md
index 4ff3a938..d95d2869 100644
--- a/docs/models/components/TransactionThreeDSecureSummary.md
+++ b/docs/models/components/TransactionThreeDSecureSummary.md
@@ -9,4 +9,5 @@
| `status` | [JsonNullable\](../../models/components/ThreeDSecureStatus.md) | :heavy_minus_sign: | The status of the 3DS challenge for this transaction. | complete |
| `method` | [JsonNullable\](../../models/components/ThreeDSecureMethod.md) | :heavy_minus_sign: | The method used for 3DS authentication for this transaction. | challenge |
| `responseData` | [JsonNullable\](../../models/components/ResponseData.md) | :heavy_minus_sign: | The 3DS data sent to the payment service for this transaction. This will only be populated if external 3DS data was passed in directly as part of the transaction API call, or if our 3DS server returned a status code of `Y` or `A`. In case of a failure to authenticate (status `N`, `R`, or `U`) this field will not be populated. To see full details about the 3DS calls please use our transaction events API. | |
-| `errorData` | [JsonNullable\](../../models/components/ThreeDSecureError.md) | :heavy_minus_sign: | The error data received from our 3DS server. This will not be populated if the customer failed the authentication with a status code of `N`, `R`, or `U`. To see full details about the 3DS calls in those situations please use our transaction events API. | |
\ No newline at end of file
+| `errorData` | [JsonNullable\](../../models/components/ThreeDSecureError.md) | :heavy_minus_sign: | The error data received from our 3DS server. This will not be populated if the customer failed the authentication with a status code of `N`, `R`, or `U`. To see full details about the 3DS calls in those situations please use our transaction events API. | |
+| `amount` | *JsonNullable\* | :heavy_minus_sign: | The amount used for 3DS authentication. | |
\ No newline at end of file
diff --git a/gradle.properties b/gradle.properties
index 38147530..89105342 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,4 +1,4 @@
groupId=com.gr4vy
artifactId=sdk
-version=2.16.10
+version=2.16.11
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 cbb783d9..68180ff3 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.10";
+ public static final String SDK_VERSION = "2.16.11";
public static final String GEN_VERSION = "2.794.1";
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/ThreeDSecure.java b/src/main/java/com/gr4vy/sdk/models/components/ThreeDSecure.java
new file mode 100644
index 00000000..40c09fde
--- /dev/null
+++ b/src/main/java/com/gr4vy/sdk/models/components/ThreeDSecure.java
@@ -0,0 +1,134 @@
+/*
+ * 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.Long;
+import java.lang.Override;
+import java.lang.String;
+import org.openapitools.jackson.nullable.JsonNullable;
+
+
+public class ThreeDSecure {
+ /**
+ * The amount to be used for 3DS authentication. Optionally set this value to authenticate a greater
+ * amount than the transaction amount.
+ */
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("amount")
+ private JsonNullable amount;
+
+ @JsonCreator
+ public ThreeDSecure(
+ @JsonProperty("amount") JsonNullable amount) {
+ Utils.checkNotNull(amount, "amount");
+ this.amount = amount;
+ }
+
+ public ThreeDSecure() {
+ this(JsonNullable.undefined());
+ }
+
+ /**
+ * The amount to be used for 3DS authentication. Optionally set this value to authenticate a greater
+ * amount than the transaction amount.
+ */
+ @JsonIgnore
+ public JsonNullable amount() {
+ return amount;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+
+ /**
+ * The amount to be used for 3DS authentication. Optionally set this value to authenticate a greater
+ * amount than the transaction amount.
+ */
+ public ThreeDSecure withAmount(long amount) {
+ Utils.checkNotNull(amount, "amount");
+ this.amount = JsonNullable.of(amount);
+ return this;
+ }
+
+ /**
+ * The amount to be used for 3DS authentication. Optionally set this value to authenticate a greater
+ * amount than the transaction amount.
+ */
+ public ThreeDSecure withAmount(JsonNullable amount) {
+ Utils.checkNotNull(amount, "amount");
+ this.amount = amount;
+ return this;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ThreeDSecure other = (ThreeDSecure) o;
+ return
+ Utils.enhancedDeepEquals(this.amount, other.amount);
+ }
+
+ @Override
+ public int hashCode() {
+ return Utils.enhancedHash(
+ amount);
+ }
+
+ @Override
+ public String toString() {
+ return Utils.toString(ThreeDSecure.class,
+ "amount", amount);
+ }
+
+ @SuppressWarnings("UnusedReturnValue")
+ public final static class Builder {
+
+ private JsonNullable amount = JsonNullable.undefined();
+
+ private Builder() {
+ // force use of static builder() method
+ }
+
+
+ /**
+ * The amount to be used for 3DS authentication. Optionally set this value to authenticate a greater
+ * amount than the transaction amount.
+ */
+ public Builder amount(long amount) {
+ Utils.checkNotNull(amount, "amount");
+ this.amount = JsonNullable.of(amount);
+ return this;
+ }
+
+ /**
+ * The amount to be used for 3DS authentication. Optionally set this value to authenticate a greater
+ * amount than the transaction amount.
+ */
+ public Builder amount(JsonNullable amount) {
+ Utils.checkNotNull(amount, "amount");
+ this.amount = amount;
+ return this;
+ }
+
+ public ThreeDSecure build() {
+
+ return new ThreeDSecure(
+ amount);
+ }
+
+ }
+}
diff --git a/src/main/java/com/gr4vy/sdk/models/components/TransactionCreate.java b/src/main/java/com/gr4vy/sdk/models/components/TransactionCreate.java
index 65b1580d..4df29978 100644
--- a/src/main/java/com/gr4vy/sdk/models/components/TransactionCreate.java
+++ b/src/main/java/com/gr4vy/sdk/models/components/TransactionCreate.java
@@ -130,6 +130,13 @@ public class TransactionCreate {
@JsonProperty("three_d_secure_data")
private JsonNullable extends ThreeDSecureData> threeDSecureData;
+ /**
+ * Optional 3-D Secure values to use during the authentication flow.
+ */
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("three_d_secure")
+ private JsonNullable extends ThreeDSecure> threeDSecure;
+
/**
* Any additional information about the transaction that you would like to store as key-value pairs.
* This data is passed to payment service providers that support it.
@@ -367,6 +374,7 @@ public TransactionCreate(
@JsonProperty("intent") Optional extends TransactionIntent> intent,
@JsonProperty("store") Optional store,
@JsonProperty("three_d_secure_data") JsonNullable extends ThreeDSecureData> threeDSecureData,
+ @JsonProperty("three_d_secure") JsonNullable extends ThreeDSecure> threeDSecure,
@JsonProperty("metadata") JsonNullable extends Map> metadata,
@JsonProperty("is_subsequent_payment") Optional isSubsequentPayment,
@JsonProperty("merchant_initiated") Optional merchantInitiated,
@@ -406,6 +414,7 @@ public TransactionCreate(
Utils.checkNotNull(intent, "intent");
Utils.checkNotNull(store, "store");
Utils.checkNotNull(threeDSecureData, "threeDSecureData");
+ Utils.checkNotNull(threeDSecure, "threeDSecure");
Utils.checkNotNull(metadata, "metadata");
Utils.checkNotNull(isSubsequentPayment, "isSubsequentPayment");
Utils.checkNotNull(merchantInitiated, "merchantInitiated");
@@ -445,6 +454,7 @@ public TransactionCreate(
this.intent = intent;
this.store = store;
this.threeDSecureData = threeDSecureData;
+ this.threeDSecure = threeDSecure;
this.metadata = metadata;
this.isSubsequentPayment = isSubsequentPayment;
this.merchantInitiated = merchantInitiated;
@@ -481,15 +491,16 @@ public TransactionCreate(
JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
Optional.empty(), Optional.empty(), JsonNullable.undefined(),
- JsonNullable.undefined(), Optional.empty(), Optional.empty(),
- Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(),
- JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
- JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(),
JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(),
+ Optional.empty(), Optional.empty(), JsonNullable.undefined(),
+ JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
+ JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(),
+ Optional.empty(), Optional.empty(), 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());
}
/**
@@ -617,6 +628,15 @@ public JsonNullable threeDSecureData() {
return (JsonNullable) threeDSecureData;
}
+ /**
+ * Optional 3-D Secure values to use during the authentication flow.
+ */
+ @SuppressWarnings("unchecked")
+ @JsonIgnore
+ public JsonNullable threeDSecure() {
+ return (JsonNullable) threeDSecure;
+ }
+
/**
* Any additional information about the transaction that you would like to store as key-value pairs.
* This data is passed to payment service providers that support it.
@@ -1125,6 +1145,24 @@ public TransactionCreate withThreeDSecureData(JsonNullable extends ThreeDSecur
return this;
}
+ /**
+ * Optional 3-D Secure values to use during the authentication flow.
+ */
+ public TransactionCreate withThreeDSecure(ThreeDSecure threeDSecure) {
+ Utils.checkNotNull(threeDSecure, "threeDSecure");
+ this.threeDSecure = JsonNullable.of(threeDSecure);
+ return this;
+ }
+
+ /**
+ * Optional 3-D Secure values to use during the authentication flow.
+ */
+ public TransactionCreate withThreeDSecure(JsonNullable extends ThreeDSecure> threeDSecure) {
+ Utils.checkNotNull(threeDSecure, "threeDSecure");
+ this.threeDSecure = threeDSecure;
+ return this;
+ }
+
/**
* Any additional information about the transaction that you would like to store as key-value pairs.
* This data is passed to payment service providers that support it.
@@ -1707,6 +1745,7 @@ public boolean equals(java.lang.Object o) {
Utils.enhancedDeepEquals(this.intent, other.intent) &&
Utils.enhancedDeepEquals(this.store, other.store) &&
Utils.enhancedDeepEquals(this.threeDSecureData, other.threeDSecureData) &&
+ Utils.enhancedDeepEquals(this.threeDSecure, other.threeDSecure) &&
Utils.enhancedDeepEquals(this.metadata, other.metadata) &&
Utils.enhancedDeepEquals(this.isSubsequentPayment, other.isSubsequentPayment) &&
Utils.enhancedDeepEquals(this.merchantInitiated, other.merchantInitiated) &&
@@ -1743,15 +1782,16 @@ public int hashCode() {
paymentMethod, buyer, buyerId,
buyerExternalIdentifier, giftCards, externalIdentifier,
intent, store, threeDSecureData,
- metadata, isSubsequentPayment, merchantInitiated,
- paymentSource, airline, cartItems,
- statementDescriptor, previousSchemeTransactionId, browserInfo,
- shippingDetailsId, connectionOptions, asyncCapture,
- antiFraudFingerprint, paymentServiceId, accountFundingTransaction,
- allowPartialAuthorization, recipient, installmentCount,
- taxAmount, merchantTaxId, purchaseOrderNumber,
- customerReferenceNumber, amountIncludesTax, supplierOrderNumber,
- dutyAmount, shippingAmount, integrationClient);
+ threeDSecure, metadata, isSubsequentPayment,
+ merchantInitiated, paymentSource, airline,
+ cartItems, statementDescriptor, previousSchemeTransactionId,
+ browserInfo, shippingDetailsId, connectionOptions,
+ asyncCapture, antiFraudFingerprint, paymentServiceId,
+ accountFundingTransaction, allowPartialAuthorization, recipient,
+ installmentCount, taxAmount, merchantTaxId,
+ purchaseOrderNumber, customerReferenceNumber, amountIncludesTax,
+ supplierOrderNumber, dutyAmount, shippingAmount,
+ integrationClient);
}
@Override
@@ -1769,6 +1809,7 @@ public String toString() {
"intent", intent,
"store", store,
"threeDSecureData", threeDSecureData,
+ "threeDSecure", threeDSecure,
"metadata", metadata,
"isSubsequentPayment", isSubsequentPayment,
"merchantInitiated", merchantInitiated,
@@ -1825,6 +1866,8 @@ public final static class Builder {
private JsonNullable extends ThreeDSecureData> threeDSecureData = JsonNullable.undefined();
+ private JsonNullable extends ThreeDSecure> threeDSecure = JsonNullable.undefined();
+
private JsonNullable extends Map> metadata = JsonNullable.undefined();
private Optional isSubsequentPayment;
@@ -2138,6 +2181,25 @@ public Builder threeDSecureData(JsonNullable extends ThreeDSecureData> threeDS
}
+ /**
+ * Optional 3-D Secure values to use during the authentication flow.
+ */
+ public Builder threeDSecure(ThreeDSecure threeDSecure) {
+ Utils.checkNotNull(threeDSecure, "threeDSecure");
+ this.threeDSecure = JsonNullable.of(threeDSecure);
+ return this;
+ }
+
+ /**
+ * Optional 3-D Secure values to use during the authentication flow.
+ */
+ public Builder threeDSecure(JsonNullable extends ThreeDSecure> threeDSecure) {
+ Utils.checkNotNull(threeDSecure, "threeDSecure");
+ this.threeDSecure = threeDSecure;
+ return this;
+ }
+
+
/**
* Any additional information about the transaction that you would like to store as key-value pairs.
* This data is passed to payment service providers that support it.
@@ -2743,15 +2805,16 @@ public TransactionCreate build() {
paymentMethod, buyer, buyerId,
buyerExternalIdentifier, giftCards, externalIdentifier,
intent, store, threeDSecureData,
- metadata, isSubsequentPayment, merchantInitiated,
- paymentSource, airline, cartItems,
- statementDescriptor, previousSchemeTransactionId, browserInfo,
- shippingDetailsId, connectionOptions, asyncCapture,
- antiFraudFingerprint, paymentServiceId, accountFundingTransaction,
- allowPartialAuthorization, recipient, installmentCount,
- taxAmount, merchantTaxId, purchaseOrderNumber,
- customerReferenceNumber, amountIncludesTax, supplierOrderNumber,
- dutyAmount, shippingAmount, integrationClient);
+ threeDSecure, metadata, isSubsequentPayment,
+ merchantInitiated, paymentSource, airline,
+ cartItems, statementDescriptor, previousSchemeTransactionId,
+ browserInfo, shippingDetailsId, connectionOptions,
+ asyncCapture, antiFraudFingerprint, paymentServiceId,
+ accountFundingTransaction, allowPartialAuthorization, recipient,
+ installmentCount, taxAmount, merchantTaxId,
+ purchaseOrderNumber, customerReferenceNumber, amountIncludesTax,
+ supplierOrderNumber, dutyAmount, shippingAmount,
+ integrationClient);
}
diff --git a/src/main/java/com/gr4vy/sdk/models/components/TransactionThreeDSecureSummary.java b/src/main/java/com/gr4vy/sdk/models/components/TransactionThreeDSecureSummary.java
index 14085930..04d6e38f 100644
--- a/src/main/java/com/gr4vy/sdk/models/components/TransactionThreeDSecureSummary.java
+++ b/src/main/java/com/gr4vy/sdk/models/components/TransactionThreeDSecureSummary.java
@@ -9,6 +9,7 @@
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.gr4vy.sdk.utils.Utils;
+import java.lang.Long;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
@@ -58,28 +59,38 @@ public class TransactionThreeDSecureSummary {
@JsonProperty("error_data")
private JsonNullable extends ThreeDSecureError> errorData;
+ /**
+ * The amount used for 3DS authentication.
+ */
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("amount")
+ private JsonNullable amount;
+
@JsonCreator
public TransactionThreeDSecureSummary(
@JsonProperty("version") JsonNullable version,
@JsonProperty("status") JsonNullable extends ThreeDSecureStatus> status,
@JsonProperty("method") JsonNullable extends ThreeDSecureMethod> method,
@JsonProperty("response_data") JsonNullable extends ResponseData> responseData,
- @JsonProperty("error_data") JsonNullable extends ThreeDSecureError> errorData) {
+ @JsonProperty("error_data") JsonNullable extends ThreeDSecureError> errorData,
+ @JsonProperty("amount") JsonNullable amount) {
Utils.checkNotNull(version, "version");
Utils.checkNotNull(status, "status");
Utils.checkNotNull(method, "method");
Utils.checkNotNull(responseData, "responseData");
Utils.checkNotNull(errorData, "errorData");
+ Utils.checkNotNull(amount, "amount");
this.version = version;
this.status = status;
this.method = method;
this.responseData = responseData;
this.errorData = errorData;
+ this.amount = amount;
}
public TransactionThreeDSecureSummary() {
this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
- JsonNullable.undefined(), JsonNullable.undefined());
+ JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined());
}
/**
@@ -133,6 +144,14 @@ public JsonNullable errorData() {
return (JsonNullable) errorData;
}
+ /**
+ * The amount used for 3DS authentication.
+ */
+ @JsonIgnore
+ public JsonNullable amount() {
+ return amount;
+ }
+
public static Builder builder() {
return new Builder();
}
@@ -242,6 +261,24 @@ public TransactionThreeDSecureSummary withErrorData(JsonNullable extends Three
return this;
}
+ /**
+ * The amount used for 3DS authentication.
+ */
+ public TransactionThreeDSecureSummary withAmount(long amount) {
+ Utils.checkNotNull(amount, "amount");
+ this.amount = JsonNullable.of(amount);
+ return this;
+ }
+
+ /**
+ * The amount used for 3DS authentication.
+ */
+ public TransactionThreeDSecureSummary withAmount(JsonNullable amount) {
+ Utils.checkNotNull(amount, "amount");
+ this.amount = amount;
+ return this;
+ }
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -256,14 +293,15 @@ public boolean equals(java.lang.Object o) {
Utils.enhancedDeepEquals(this.status, other.status) &&
Utils.enhancedDeepEquals(this.method, other.method) &&
Utils.enhancedDeepEquals(this.responseData, other.responseData) &&
- Utils.enhancedDeepEquals(this.errorData, other.errorData);
+ Utils.enhancedDeepEquals(this.errorData, other.errorData) &&
+ Utils.enhancedDeepEquals(this.amount, other.amount);
}
@Override
public int hashCode() {
return Utils.enhancedHash(
version, status, method,
- responseData, errorData);
+ responseData, errorData, amount);
}
@Override
@@ -273,7 +311,8 @@ public String toString() {
"status", status,
"method", method,
"responseData", responseData,
- "errorData", errorData);
+ "errorData", errorData,
+ "amount", amount);
}
@SuppressWarnings("UnusedReturnValue")
@@ -289,6 +328,8 @@ public final static class Builder {
private JsonNullable extends ThreeDSecureError> errorData = JsonNullable.undefined();
+ private JsonNullable amount = JsonNullable.undefined();
+
private Builder() {
// force use of static builder() method
}
@@ -402,11 +443,30 @@ public Builder errorData(JsonNullable extends ThreeDSecureError> errorData) {
return this;
}
+
+ /**
+ * The amount used for 3DS authentication.
+ */
+ public Builder amount(long amount) {
+ Utils.checkNotNull(amount, "amount");
+ this.amount = JsonNullable.of(amount);
+ return this;
+ }
+
+ /**
+ * The amount used for 3DS authentication.
+ */
+ public Builder amount(JsonNullable amount) {
+ Utils.checkNotNull(amount, "amount");
+ this.amount = amount;
+ return this;
+ }
+
public TransactionThreeDSecureSummary build() {
return new TransactionThreeDSecureSummary(
version, status, method,
- responseData, errorData);
+ responseData, errorData, amount);
}
}