diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index 0ada4747..982c4b30 100644
--- a/.speakeasy/gen.lock
+++ b/.speakeasy/gen.lock
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: 5bbaa3a9-baa0-471b-ba6a-13fd88e8c119
management:
- docChecksum: 756b84d427fd9eaffb049af812fb1aee
+ docChecksum: 22b7ff0fa9bb75151957bb53021346e0
docVersion: 1.0.0
speakeasyVersion: 1.791.1
generationVersion: 2.926.2
- releaseVersion: 2.18.2
- configChecksum: 866303668d507d1e1efbbe758ddc4780
+ releaseVersion: 2.18.3
+ configChecksum: dc98b6fa07caadeb0cd7bca3a49f6cfa
repoURL: https://github.com/gr4vy/gr4vy-java.git
installationURL: https://github.com/gr4vy/gr4vy-java
published: true
persistentEdits:
- generation_id: 08c6fbcb-bbeb-485c-8941-7ae54bb303ac
- pristine_commit_hash: c3e731c9a521f675604207cf5b716f4d03becd79
- pristine_tree_hash: e20605c0a0b417a7050b961aba657bcdd5157dca
+ generation_id: 43dbc119-97ba-4c9a-8169-2bdd13a2ae89
+ pristine_commit_hash: b738a362ebc3b537a6f0c986b89f34d6a44d82c7
+ pristine_tree_hash: 243ba88a2e84542c8aaec7cb0d25729e0d0d5fed
features:
java:
additionalDependencies: 0.1.0
@@ -1463,8 +1463,8 @@ trackedFiles:
pristine_git_object: ce01164765781161afc5da5ac9f8e74761506636
docs/models/components/Transaction.md:
id: 860f2214deb0
- last_write_checksum: sha1:2ed89640125f8de4f6add5150e1ce63c34ad897f
- pristine_git_object: bce1078b9a41a9aa3a690a0b4b7794e2fc038030
+ last_write_checksum: sha1:a8dcd7f150e0d802c082a2c87379fb81f42988da
+ pristine_git_object: c28f669b55797fdec5847d975f3972049a7d5c9b
docs/models/components/TransactionAction.md:
id: 7cf2857d2f07
last_write_checksum: sha1:e9d0306a43f9865d511a66ee72ac9dc57fe1b79e
@@ -1555,8 +1555,8 @@ trackedFiles:
pristine_git_object: 278f5e7a4ca95b1b749795433f8267b713a9bf66
docs/models/components/TransactionSummary.md:
id: 95d437d847b0
- last_write_checksum: sha1:082354b2f36d455b2d6350e4d6be6d71b2d1dccb
- pristine_git_object: bb6812ad1b9c9484b2473388f32357e79409e49d
+ last_write_checksum: sha1:e46eebac7e01610160d076e899c1530a9e22d3ed
+ pristine_git_object: 969a5496619e499b0baf65fd53483373c6f42b18
docs/models/components/TransactionThreeDSecureSummary.md:
id: 5b36b4b54f8b
last_write_checksum: sha1:bcc220f4ce3c4f5fc59bd5ec28c673c8b3a953c6
@@ -2819,8 +2819,8 @@ trackedFiles:
pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b
gradle.properties:
id: 2afbb999f001
- last_write_checksum: sha1:333b3fbd0c2643a0f8ae38e07245ef54a6b0cd24
- pristine_git_object: 03d6df13f7a5b56bf8d205d1e5a4a2d32d06ae33
+ last_write_checksum: sha1:fbc56c996304300bbb32721fec12fdb60c30cfe3
+ pristine_git_object: 6f8426451c24189b1841bcfd9bd7740ae59e23dd
gradle/wrapper/gradle-wrapper.jar:
id: ec27dae6e852
last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611
@@ -3155,8 +3155,8 @@ trackedFiles:
pristine_git_object: 502a7312d3dc82c102dbaf7ed5e952d0c793e26f
src/main/java/com/gr4vy/sdk/SDKConfiguration.java:
id: 73a7edeaca45
- last_write_checksum: sha1:e7b5b6caf047ced43dfd9d931cd16aef27f26d18
- pristine_git_object: a64b18df9c43f4231336e6d8c26567f6a2d3a8fc
+ last_write_checksum: sha1:344d0d7cd96e82352e67f4bc8b5c80dff02599cd
+ pristine_git_object: 010258c1e0ec4b4075163d026cec947dd910349b
src/main/java/com/gr4vy/sdk/SecuritySource.java:
id: 1b6add6b9b50
last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd
@@ -4607,8 +4607,8 @@ trackedFiles:
pristine_git_object: bb01652754c22faae31a1012053c577c8d9720c2
src/main/java/com/gr4vy/sdk/models/components/Transaction.java:
id: 3a6b6cb3c604
- last_write_checksum: sha1:89a5e3f2ecf515ff6a36ab41546064c09f34fda8
- pristine_git_object: 279ff38335243b80e73179127a6849ffca6011bf
+ last_write_checksum: sha1:d2197e3676d22d928d9f25eec74e1405cf15c04b
+ pristine_git_object: d9f49a7df101764690b75a7905c8d0301c014f35
src/main/java/com/gr4vy/sdk/models/components/TransactionAction.java:
id: 562a10c022e6
last_write_checksum: sha1:bcfb0848257538b71da9082394bad798d626c99d
@@ -4699,8 +4699,8 @@ trackedFiles:
pristine_git_object: 98f93bc0b8e554e727e2d144d80a0715e91e5c3c
src/main/java/com/gr4vy/sdk/models/components/TransactionSummary.java:
id: fb03c8723ee2
- last_write_checksum: sha1:ecc85f2250235c25952f8e663678855fd47824e3
- pristine_git_object: a8976ab29452628237f51387cac3aafcba54578b
+ last_write_checksum: sha1:f835cde3fc7a8f38ca20346ebd77f2a6f3405951
+ pristine_git_object: 4f9fdf66ff38e4ea80a141277da7dfa97f0e86cd
src/main/java/com/gr4vy/sdk/models/components/TransactionThreeDSecureSummary.java:
id: 3f46e2031d9e
last_write_checksum: sha1:1b5ba5bf2f92f9b23d1bfc5171f87c1025a8a1df
@@ -12252,7 +12252,16 @@ 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.transactions.create()`: \n * `request.transactionCreate.connectionOptions.dlocalCard` **Added**\n* `gr4vy.transactions.update()`: \n * `request.transactionUpdate.connectionOptions.dlocalCard` **Added**\n* `gr4vy.paymentLinks.create()`: \n * `request.paymentLinkCreate.connectionOptions.dlocalCard` **Added**\n"
+releaseNotes: |
+ ## Java SDK Changes:
+ * `gr4vy.transactions.list()`: `response.items[].reauthorizedFromTransactionId` **Added**
+ * `gr4vy.transactions.create()`: `response.reauthorizedFromTransactionId` **Added**
+ * `gr4vy.transactions.get()`: `response.reauthorizedFromTransactionId` **Added**
+ * `gr4vy.transactions.update()`: `response.reauthorizedFromTransactionId` **Added**
+ * `gr4vy.transactions.capture()`: `response.union(Transaction).reauthorizedFromTransactionId` **Added**
+ * `gr4vy.transactions.void()`: `response.union(Transaction).reauthorizedFromTransactionId` **Added**
+ * `gr4vy.transactions.cancel()`: `response.transaction.reauthorizedFromTransactionId` **Added**
+ * `gr4vy.transactions.sync()`: `response.reauthorizedFromTransactionId` **Added**
generatedFiles:
- .gitattributes
- USAGE.md
diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml
index c33ef192..08093f56 100644
--- a/.speakeasy/gen.yaml
+++ b/.speakeasy/gen.yaml
@@ -30,7 +30,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
java:
- version: 2.18.2
+ version: 2.18.3
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 61ea50c6..3d9f6a74 100644
--- a/.speakeasy/workflow.lock
+++ b/.speakeasy/workflow.lock
@@ -9,8 +9,8 @@ sources:
- 1.0.0
openapi:
sourceNamespace: openapi
- sourceRevisionDigest: sha256:078cb8bbc9efdc597cfeb218076c4d9ed7874533950b7398eedc1658a0b4f883
- sourceBlobDigest: sha256:44c632d9e0732f3c23416d2431012f37e5dec8eaf3fba54f0090b8be06004369
+ sourceRevisionDigest: sha256:3c8ee2e5f4fd292b22c73ec8578b58b8295deb4de41d91346af0848c979d6b27
+ sourceBlobDigest: sha256:c3e7584bfcad484ecb56ef55e7b1491815bca9ab0907de9ae1ae8bbab13758e4
tags:
- latest
- 1.0.0
@@ -25,10 +25,10 @@ targets:
java:
source: openapi
sourceNamespace: openapi
- sourceRevisionDigest: sha256:078cb8bbc9efdc597cfeb218076c4d9ed7874533950b7398eedc1658a0b4f883
- sourceBlobDigest: sha256:44c632d9e0732f3c23416d2431012f37e5dec8eaf3fba54f0090b8be06004369
+ sourceRevisionDigest: sha256:3c8ee2e5f4fd292b22c73ec8578b58b8295deb4de41d91346af0848c979d6b27
+ sourceBlobDigest: sha256:c3e7584bfcad484ecb56ef55e7b1491815bca9ab0907de9ae1ae8bbab13758e4
codeSamplesNamespace: openapi-java-code-samples
- codeSamplesRevisionDigest: sha256:69ddc01fc2942774a36fa1c1460b76362f265db128f5aeadd20fe91e0dd74d0d
+ codeSamplesRevisionDigest: sha256:d49a1708cb47f0f845c6cf49505abb6e84cf7b19123347f983ba63614759593b
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
diff --git a/README.md b/README.md
index a4dffe27..a2aa4ab1 100644
--- a/README.md
+++ b/README.md
@@ -59,7 +59,7 @@ The samples below show how a published SDK artifact is used:
Gradle:
```groovy
-implementation 'com.gr4vy:sdk:2.18.2'
+implementation 'com.gr4vy:sdk:2.18.3'
```
Maven:
@@ -67,7 +67,7 @@ Maven:
com.gr4vy
sdk
- 2.18.2
+ 2.18.3
```
diff --git a/RELEASES.md b/RELEASES.md
index 4fdfba05..c6864aae 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -2048,4 +2048,14 @@ Based on:
### Generated
- [java v2.18.2] .
### Releases
-- [Maven Central v2.18.2] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.18.2 - .
\ No newline at end of file
+- [Maven Central v2.18.2] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.18.2 - .
+
+## 2026-08-03 15:10:57
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.791.1 (2.926.2) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [java v2.18.3] .
+### Releases
+- [Maven Central v2.18.3] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.18.3 - .
\ No newline at end of file
diff --git a/docs/models/components/Transaction.md b/docs/models/components/Transaction.md
index bce1078b..c28f669b 100644
--- a/docs/models/components/Transaction.md
+++ b/docs/models/components/Transaction.md
@@ -39,6 +39,7 @@ A full transaction resource.
| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date and time when the transaction was created, in ISO 8601 format. | 2013-07-16T19:23:00.000+00:00 |
| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date and time when the transaction was last updated, in ISO 8601 format. | 2013-07-16T19:23:00.000+00:00 |
| `disputed` | *boolean* | :heavy_check_mark: | Indicates whether this transaction has been disputed. | true |
+| `reauthorizedFromTransactionId` | *JsonNullable\* | :heavy_minus_sign: | The identifier of the transaction from which this transaction was reauthorized. | 4137b1cf-39ac-42a8-bad6-1c680d5dab6b |
| `airline` | [JsonNullable\](../../models/components/Airline.md) | :heavy_minus_sign: | Contains information about an airline travel, if applicable. | |
| `authResponseCode` | *JsonNullable\* | :heavy_minus_sign: | This is the response description received from the processor. | 00 |
| `avsResponseCode` | [JsonNullable\](../../models/components/AVSResponseCode.md) | :heavy_minus_sign: | The response code received from the payment service for the Address Verification Check (AVS). This code is mapped to a standardized Gr4vy AVS response code. | match |
diff --git a/docs/models/components/TransactionSummary.md b/docs/models/components/TransactionSummary.md
index bb6812ad..969a5496 100644
--- a/docs/models/components/TransactionSummary.md
+++ b/docs/models/components/TransactionSummary.md
@@ -38,4 +38,5 @@ A transaction, summarised
| `giftCardService` | [JsonNullable\](../../models/components/GiftCardService.md) | :heavy_minus_sign: | The gift card service used for this transaction. | |
| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date and time when the transaction was created, in ISO 8601 format. | 2013-07-16T19:23:00.000+00:00 |
| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date and time when the transaction was last updated, in ISO 8601 format. | 2013-07-16T19:23:00.000+00:00 |
-| `disputed` | *boolean* | :heavy_check_mark: | Indicates whether this transaction has been disputed. | true |
\ No newline at end of file
+| `disputed` | *boolean* | :heavy_check_mark: | Indicates whether this transaction has been disputed. | true |
+| `reauthorizedFromTransactionId` | *JsonNullable\* | :heavy_minus_sign: | The identifier of the transaction from which this transaction was reauthorized. | 4137b1cf-39ac-42a8-bad6-1c680d5dab6b |
\ No newline at end of file
diff --git a/gradle.properties b/gradle.properties
index 03d6df13..6f842645 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,4 +1,4 @@
groupId=com.gr4vy
artifactId=sdk
-version=2.18.2
+version=2.18.3
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 a64b18df..010258c1 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.18.2";
+ public static final String SDK_VERSION = "2.18.3";
public static final String GEN_VERSION = "2.926.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/Transaction.java b/src/main/java/com/gr4vy/sdk/models/components/Transaction.java
index 279ff383..d9f49a7d 100644
--- a/src/main/java/com/gr4vy/sdk/models/components/Transaction.java
+++ b/src/main/java/com/gr4vy/sdk/models/components/Transaction.java
@@ -243,6 +243,13 @@ public class Transaction {
@JsonProperty("disputed")
private boolean disputed;
+ /**
+ * The identifier of the transaction from which this transaction was reauthorized.
+ */
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("reauthorized_from_transaction_id")
+ private JsonNullable reauthorizedFromTransactionId;
+
/**
* Contains information about an airline travel, if applicable.
*/
@@ -544,6 +551,7 @@ public Transaction(
@JsonProperty("created_at") OffsetDateTime createdAt,
@JsonProperty("updated_at") OffsetDateTime updatedAt,
@JsonProperty("disputed") boolean disputed,
+ @JsonProperty("reauthorized_from_transaction_id") JsonNullable reauthorizedFromTransactionId,
@JsonProperty("airline") JsonNullable extends Airline> airline,
@JsonProperty("auth_response_code") JsonNullable authResponseCode,
@JsonProperty("avs_response_code") JsonNullable extends AVSResponseCode> avsResponseCode,
@@ -613,6 +621,7 @@ public Transaction(
Utils.checkNotNull(createdAt, "createdAt");
Utils.checkNotNull(updatedAt, "updatedAt");
Utils.checkNotNull(disputed, "disputed");
+ Utils.checkNotNull(reauthorizedFromTransactionId, "reauthorizedFromTransactionId");
Utils.checkNotNull(airline, "airline");
Utils.checkNotNull(authResponseCode, "authResponseCode");
Utils.checkNotNull(avsResponseCode, "avsResponseCode");
@@ -683,6 +692,7 @@ public Transaction(
this.createdAt = createdAt;
this.updatedAt = updatedAt;
this.disputed = disputed;
+ this.reauthorizedFromTransactionId = reauthorizedFromTransactionId;
this.airline = airline;
this.authResponseCode = authResponseCode;
this.avsResponseCode = avsResponseCode;
@@ -758,17 +768,18 @@ public Transaction(
JsonNullable.undefined(), createdAt, updatedAt,
disputed, JsonNullable.undefined(), JsonNullable.undefined(),
JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
- paymentSource, merchantInitiated, isSubsequentPayment,
+ JsonNullable.undefined(), paymentSource, merchantInitiated,
+ isSubsequentPayment, JsonNullable.undefined(), JsonNullable.undefined(),
JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
+ JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined(),
JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
- Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined(),
JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
- JsonNullable.undefined(), JsonNullable.undefined(), intentOutcome,
- multiTender, accountFundingTransaction, JsonNullable.undefined(),
+ intentOutcome, multiTender, accountFundingTransaction,
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(), JsonNullable.undefined(),
+ JsonNullable.undefined());
}
/**
@@ -1039,6 +1050,14 @@ public boolean disputed() {
return disputed;
}
+ /**
+ * The identifier of the transaction from which this transaction was reauthorized.
+ */
+ @JsonIgnore
+ public JsonNullable reauthorizedFromTransactionId() {
+ return reauthorizedFromTransactionId;
+ }
+
/**
* Contains information about an airline travel, if applicable.
*/
@@ -1788,6 +1807,24 @@ public Transaction withDisputed(boolean disputed) {
return this;
}
+ /**
+ * The identifier of the transaction from which this transaction was reauthorized.
+ */
+ public Transaction withReauthorizedFromTransactionId(String reauthorizedFromTransactionId) {
+ Utils.checkNotNull(reauthorizedFromTransactionId, "reauthorizedFromTransactionId");
+ this.reauthorizedFromTransactionId = JsonNullable.of(reauthorizedFromTransactionId);
+ return this;
+ }
+
+ /**
+ * The identifier of the transaction from which this transaction was reauthorized.
+ */
+ public Transaction withReauthorizedFromTransactionId(JsonNullable reauthorizedFromTransactionId) {
+ Utils.checkNotNull(reauthorizedFromTransactionId, "reauthorizedFromTransactionId");
+ this.reauthorizedFromTransactionId = reauthorizedFromTransactionId;
+ return this;
+ }
+
/**
* Contains information about an airline travel, if applicable.
*/
@@ -2475,6 +2512,7 @@ public boolean equals(java.lang.Object o) {
Utils.enhancedDeepEquals(this.createdAt, other.createdAt) &&
Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt) &&
Utils.enhancedDeepEquals(this.disputed, other.disputed) &&
+ Utils.enhancedDeepEquals(this.reauthorizedFromTransactionId, other.reauthorizedFromTransactionId) &&
Utils.enhancedDeepEquals(this.airline, other.airline) &&
Utils.enhancedDeepEquals(this.authResponseCode, other.authResponseCode) &&
Utils.enhancedDeepEquals(this.avsResponseCode, other.avsResponseCode) &&
@@ -2528,20 +2566,20 @@ public int hashCode() {
pendingReview, buyer, rawResponseCode,
rawResponseDescription, shippingDetails, checkoutSessionId,
giftCardRedemptions, giftCardService, createdAt,
- updatedAt, disputed, airline,
- authResponseCode, avsResponseCode, cvvResponseCode,
- antiFraudDecision, paymentSource, merchantInitiated,
- isSubsequentPayment, cartItems, statementDescriptor,
- schemeTransactionId, transactionLinkId, threeDSecure,
- paymentServiceTransactionId, additionalIdentifiers, metadata,
- authorizedAt, capturedAt, voidedAt,
- canceledAt, approvalExpiresAt, buyerApprovalTimedoutAt,
- intentOutcome, multiTender, accountFundingTransaction,
- recipient, merchantAdviceCode, installmentCount,
- sessionToken, taxAmount, merchantTaxId,
- purchaseOrderNumber, customerReferenceNumber, amountIncludesTax,
- supplierOrderNumber, dutyAmount, shippingAmount,
- isoResponseCode);
+ updatedAt, disputed, reauthorizedFromTransactionId,
+ airline, authResponseCode, avsResponseCode,
+ cvvResponseCode, antiFraudDecision, paymentSource,
+ merchantInitiated, isSubsequentPayment, cartItems,
+ statementDescriptor, schemeTransactionId, transactionLinkId,
+ threeDSecure, paymentServiceTransactionId, additionalIdentifiers,
+ metadata, authorizedAt, capturedAt,
+ voidedAt, canceledAt, approvalExpiresAt,
+ buyerApprovalTimedoutAt, intentOutcome, multiTender,
+ accountFundingTransaction, recipient, merchantAdviceCode,
+ installmentCount, sessionToken, taxAmount,
+ merchantTaxId, purchaseOrderNumber, customerReferenceNumber,
+ amountIncludesTax, supplierOrderNumber, dutyAmount,
+ shippingAmount, isoResponseCode);
}
@Override
@@ -2579,6 +2617,7 @@ public String toString() {
"createdAt", createdAt,
"updatedAt", updatedAt,
"disputed", disputed,
+ "reauthorizedFromTransactionId", reauthorizedFromTransactionId,
"airline", airline,
"authResponseCode", authResponseCode,
"avsResponseCode", avsResponseCode,
@@ -2684,6 +2723,8 @@ public final static class Builder {
private Boolean disputed;
+ private JsonNullable reauthorizedFromTransactionId = JsonNullable.undefined();
+
private JsonNullable extends Airline> airline = JsonNullable.undefined();
private JsonNullable authResponseCode = JsonNullable.undefined();
@@ -3218,6 +3259,25 @@ public Builder disputed(boolean disputed) {
}
+ /**
+ * The identifier of the transaction from which this transaction was reauthorized.
+ */
+ public Builder reauthorizedFromTransactionId(String reauthorizedFromTransactionId) {
+ Utils.checkNotNull(reauthorizedFromTransactionId, "reauthorizedFromTransactionId");
+ this.reauthorizedFromTransactionId = JsonNullable.of(reauthorizedFromTransactionId);
+ return this;
+ }
+
+ /**
+ * The identifier of the transaction from which this transaction was reauthorized.
+ */
+ public Builder reauthorizedFromTransactionId(JsonNullable reauthorizedFromTransactionId) {
+ Utils.checkNotNull(reauthorizedFromTransactionId, "reauthorizedFromTransactionId");
+ this.reauthorizedFromTransactionId = reauthorizedFromTransactionId;
+ return this;
+ }
+
+
/**
* Contains information about an airline travel, if applicable.
*/
@@ -3915,19 +3975,20 @@ public Transaction build() {
buyer, rawResponseCode, rawResponseDescription,
shippingDetails, checkoutSessionId, giftCardRedemptions,
giftCardService, createdAt, updatedAt,
- disputed, airline, authResponseCode,
- avsResponseCode, cvvResponseCode, antiFraudDecision,
- paymentSource, merchantInitiated, isSubsequentPayment,
- cartItems, statementDescriptor, schemeTransactionId,
- transactionLinkId, threeDSecure, paymentServiceTransactionId,
- additionalIdentifiers, metadata, authorizedAt,
- capturedAt, voidedAt, canceledAt,
- approvalExpiresAt, buyerApprovalTimedoutAt, intentOutcome,
- multiTender, accountFundingTransaction, recipient,
- merchantAdviceCode, installmentCount, sessionToken,
- taxAmount, merchantTaxId, purchaseOrderNumber,
- customerReferenceNumber, amountIncludesTax, supplierOrderNumber,
- dutyAmount, shippingAmount, isoResponseCode);
+ disputed, reauthorizedFromTransactionId, airline,
+ authResponseCode, avsResponseCode, cvvResponseCode,
+ antiFraudDecision, paymentSource, merchantInitiated,
+ isSubsequentPayment, cartItems, statementDescriptor,
+ schemeTransactionId, transactionLinkId, threeDSecure,
+ paymentServiceTransactionId, additionalIdentifiers, metadata,
+ authorizedAt, capturedAt, voidedAt,
+ canceledAt, approvalExpiresAt, buyerApprovalTimedoutAt,
+ intentOutcome, multiTender, accountFundingTransaction,
+ recipient, merchantAdviceCode, installmentCount,
+ sessionToken, taxAmount, merchantTaxId,
+ purchaseOrderNumber, customerReferenceNumber, amountIncludesTax,
+ supplierOrderNumber, dutyAmount, shippingAmount,
+ isoResponseCode);
}
diff --git a/src/main/java/com/gr4vy/sdk/models/components/TransactionSummary.java b/src/main/java/com/gr4vy/sdk/models/components/TransactionSummary.java
index a8976ab2..4f9fdf66 100644
--- a/src/main/java/com/gr4vy/sdk/models/components/TransactionSummary.java
+++ b/src/main/java/com/gr4vy/sdk/models/components/TransactionSummary.java
@@ -242,6 +242,13 @@ public class TransactionSummary {
@JsonProperty("disputed")
private boolean disputed;
+ /**
+ * The identifier of the transaction from which this transaction was reauthorized.
+ */
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("reauthorized_from_transaction_id")
+ private JsonNullable reauthorizedFromTransactionId;
+
@JsonCreator
public TransactionSummary(
@JsonProperty("id") String id,
@@ -274,7 +281,8 @@ public TransactionSummary(
@JsonProperty("gift_card_service") JsonNullable extends GiftCardService> giftCardService,
@JsonProperty("created_at") OffsetDateTime createdAt,
@JsonProperty("updated_at") OffsetDateTime updatedAt,
- @JsonProperty("disputed") boolean disputed) {
+ @JsonProperty("disputed") boolean disputed,
+ @JsonProperty("reauthorized_from_transaction_id") JsonNullable reauthorizedFromTransactionId) {
Utils.checkNotNull(id, "id");
Utils.checkNotNull(reconciliationId, "reconciliationId");
Utils.checkNotNull(merchantAccountId, "merchantAccountId");
@@ -306,6 +314,7 @@ public TransactionSummary(
Utils.checkNotNull(createdAt, "createdAt");
Utils.checkNotNull(updatedAt, "updatedAt");
Utils.checkNotNull(disputed, "disputed");
+ Utils.checkNotNull(reauthorizedFromTransactionId, "reauthorizedFromTransactionId");
this.type = Builder._SINGLETON_VALUE_Type.value();
this.id = id;
this.reconciliationId = reconciliationId;
@@ -338,6 +347,7 @@ public TransactionSummary(
this.createdAt = createdAt;
this.updatedAt = updatedAt;
this.disputed = disputed;
+ this.reauthorizedFromTransactionId = reauthorizedFromTransactionId;
}
public TransactionSummary(
@@ -367,7 +377,7 @@ public TransactionSummary(
JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
JsonNullable.undefined(), JsonNullable.undefined(), giftCardRedemptions,
JsonNullable.undefined(), createdAt, updatedAt,
- disputed);
+ disputed, JsonNullable.undefined());
}
/**
@@ -638,6 +648,14 @@ public boolean disputed() {
return disputed;
}
+ /**
+ * The identifier of the transaction from which this transaction was reauthorized.
+ */
+ @JsonIgnore
+ public JsonNullable reauthorizedFromTransactionId() {
+ return reauthorizedFromTransactionId;
+ }
+
public static Builder builder() {
return new Builder();
}
@@ -1066,6 +1084,24 @@ public TransactionSummary withDisputed(boolean disputed) {
return this;
}
+ /**
+ * The identifier of the transaction from which this transaction was reauthorized.
+ */
+ public TransactionSummary withReauthorizedFromTransactionId(String reauthorizedFromTransactionId) {
+ Utils.checkNotNull(reauthorizedFromTransactionId, "reauthorizedFromTransactionId");
+ this.reauthorizedFromTransactionId = JsonNullable.of(reauthorizedFromTransactionId);
+ return this;
+ }
+
+ /**
+ * The identifier of the transaction from which this transaction was reauthorized.
+ */
+ public TransactionSummary withReauthorizedFromTransactionId(JsonNullable reauthorizedFromTransactionId) {
+ Utils.checkNotNull(reauthorizedFromTransactionId, "reauthorizedFromTransactionId");
+ this.reauthorizedFromTransactionId = reauthorizedFromTransactionId;
+ return this;
+ }
+
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
@@ -1107,7 +1143,8 @@ public boolean equals(java.lang.Object o) {
Utils.enhancedDeepEquals(this.giftCardService, other.giftCardService) &&
Utils.enhancedDeepEquals(this.createdAt, other.createdAt) &&
Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt) &&
- Utils.enhancedDeepEquals(this.disputed, other.disputed);
+ Utils.enhancedDeepEquals(this.disputed, other.disputed) &&
+ Utils.enhancedDeepEquals(this.reauthorizedFromTransactionId, other.reauthorizedFromTransactionId);
}
@Override
@@ -1123,7 +1160,7 @@ public int hashCode() {
pendingReview, buyer, rawResponseCode,
rawResponseDescription, shippingDetails, checkoutSessionId,
giftCardRedemptions, giftCardService, createdAt,
- updatedAt, disputed);
+ updatedAt, disputed, reauthorizedFromTransactionId);
}
@Override
@@ -1160,7 +1197,8 @@ public String toString() {
"giftCardService", giftCardService,
"createdAt", createdAt,
"updatedAt", updatedAt,
- "disputed", disputed);
+ "disputed", disputed,
+ "reauthorizedFromTransactionId", reauthorizedFromTransactionId);
}
@SuppressWarnings("UnusedReturnValue")
@@ -1228,6 +1266,8 @@ public final static class Builder {
private Boolean disputed;
+ private JsonNullable reauthorizedFromTransactionId = JsonNullable.undefined();
+
private Builder() {
// force use of static builder() method
}
@@ -1685,6 +1725,25 @@ public Builder disputed(boolean disputed) {
return this;
}
+
+ /**
+ * The identifier of the transaction from which this transaction was reauthorized.
+ */
+ public Builder reauthorizedFromTransactionId(String reauthorizedFromTransactionId) {
+ Utils.checkNotNull(reauthorizedFromTransactionId, "reauthorizedFromTransactionId");
+ this.reauthorizedFromTransactionId = JsonNullable.of(reauthorizedFromTransactionId);
+ return this;
+ }
+
+ /**
+ * The identifier of the transaction from which this transaction was reauthorized.
+ */
+ public Builder reauthorizedFromTransactionId(JsonNullable reauthorizedFromTransactionId) {
+ Utils.checkNotNull(reauthorizedFromTransactionId, "reauthorizedFromTransactionId");
+ this.reauthorizedFromTransactionId = reauthorizedFromTransactionId;
+ return this;
+ }
+
public TransactionSummary build() {
if (pendingReview == null) {
pendingReview = _SINGLETON_VALUE_PendingReview.value();
@@ -1701,7 +1760,7 @@ public TransactionSummary build() {
buyer, rawResponseCode, rawResponseDescription,
shippingDetails, checkoutSessionId, giftCardRedemptions,
giftCardService, createdAt, updatedAt,
- disputed);
+ disputed, reauthorizedFromTransactionId);
}