From 448b39e4149011838ce30428600056715240b4d7 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 13 May 2026 08:37:58 +0000 Subject: [PATCH 1/2] ## Java SDK Changes: * `gr4vy.transactions.capture()`: `response.union(TransactionCapture)` **Changed** --- .speakeasy/gen.lock | 32 +++-- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 10 +- README.md | 4 +- RELEASES.md | 12 +- docs/models/components/TransactionCapture.md | 4 +- gradle.properties | 2 +- .../java/com/gr4vy/sdk/SDKConfiguration.java | 2 +- .../models/components/TransactionCapture.java | 134 +++++++++++++++++- 9 files changed, 169 insertions(+), 33 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index c8e8c37a..dfb3b1e8 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: 10c7c940e00ffecb8b1a1119b00e26a3 + docChecksum: da9dc1e921e3643e6633e6315aaef2f7 docVersion: 1.0.0 speakeasyVersion: 1.762.0 generationVersion: 2.882.0 - releaseVersion: 2.16.62 - configChecksum: dc257f68b3adac2cccdcd4bb046c428d + releaseVersion: 2.16.63 + configChecksum: 4d336141f245f51d349efa908713a475 repoURL: https://github.com/gr4vy/gr4vy-java.git installationURL: https://github.com/gr4vy/gr4vy-java published: true persistentEdits: - generation_id: 52ce0c1f-bfd3-40bd-8555-be25006a8bb4 - pristine_commit_hash: f34dd5a1027db860ba7d6b7f4ee812d382325819 - pristine_tree_hash: 124fdd0f82e4259b39015ad8c08ac3ffd4ff9c95 + generation_id: dfd6917a-eea6-4094-8584-ba73a0304f7e + pristine_commit_hash: 2da9146caf6cfb2b812ae8fd160b1bf454a62eaa + pristine_tree_hash: 0b270cb5b0d700386b36b8a8dc971c9b757e01bc features: java: additionalDependencies: 0.1.0 @@ -1242,8 +1242,8 @@ trackedFiles: pristine_git_object: 5afce2a8c2f41bfcd16d9ed8127ae5941aeebaad docs/models/components/TransactionCapture.md: id: d1b2e22cc0fd - last_write_checksum: sha1:c498b7ad3e26ae83afaa4e3a024f14abce22b1af - pristine_git_object: d21b68e89b37af92ab0138fefafc5c8df7c9aa52 + last_write_checksum: sha1:a1120775e27966b147aa9b52faeabfc7136c2d9c + pristine_git_object: dda43d8da701696ff04c3e0ee7e373a1e11c4c45 docs/models/components/TransactionCaptureCreate.md: id: fa6f6819cb5d last_write_checksum: sha1:9aea7a4c7bd1d7fc6b46edfa09d33600c820360d @@ -2430,8 +2430,8 @@ trackedFiles: pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:525d13e43313ff30b6fc7a485e0308b8a491381b - pristine_git_object: 3664f760ba4438d5b26eedd3d073469fe3392b5f + last_write_checksum: sha1:897e5f203cc2aea1ed3ebb8978d2ccd3c7b81298 + pristine_git_object: b23ade75218b7840389cfcb6eaf7a0a508f859db gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -2754,8 +2754,8 @@ trackedFiles: pristine_git_object: 502a7312d3dc82c102dbaf7ed5e952d0c793e26f src/main/java/com/gr4vy/sdk/SDKConfiguration.java: id: 73a7edeaca45 - last_write_checksum: sha1:fa5d23d27199823257ca7698f8ceb7f92998960a - pristine_git_object: c75f60044fc01d9a3389b4f5e55b2de4f404fd7a + last_write_checksum: sha1:e3d6fd8a226734f0a1c7edd2ad0fd31018c35f30 + pristine_git_object: ac86ee819adcd7d8a4a21ca2e7bd41737546a8e6 src/main/java/com/gr4vy/sdk/SecuritySource.java: id: 1b6add6b9b50 last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd @@ -3986,8 +3986,8 @@ trackedFiles: pristine_git_object: c4e2e7ef83de294b37ff47fdcf3f8f326b871351 src/main/java/com/gr4vy/sdk/models/components/TransactionCapture.java: id: 9cd3562a3fa1 - last_write_checksum: sha1:59204e0b3ca0fe9cb718c01cf4b4f2670db2b821 - pristine_git_object: 1e1b48109218c27bee55238959c60ea509da2979 + last_write_checksum: sha1:6ed000ee39f081a1caf88d498190f8619e441e77 + pristine_git_object: 5fbcc39259d3b53e2d47ef6aed754846ef5b4e51 src/main/java/com/gr4vy/sdk/models/components/TransactionCaptureCreate.java: id: ed5d05b51a07 last_write_checksum: sha1:2bb6aec5c13f4a59be87924f79de26d58e00e4a3 @@ -10768,7 +10768,9 @@ 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.buyers.paymentMethods.list()`: `response.items[].method.enum(ach)` **Added**\n* `gr4vy.paymentMethods.list()`: `response.items[].method.enum(ach)` **Added**\n* `gr4vy.paymentMethods.create()`: \n * `requestBody.union(RedirectPaymentMethodCreate).method.enum(ach)` **Added**\n * `response.method.enum(ach)` **Added**\n* `gr4vy.paymentMethods.get()`: `response.method.enum(ach)` **Added**\n* `gr4vy.paymentMethods.update()`: `response.method.enum(ach)` **Added**\n* `gr4vy.transactions.list()`: \n * `request.method` **Changed**\n * `response.items[].paymentMethod.method.enum(ach)` **Added**\n* `gr4vy.transactions.create()`: \n * `request.transactionCreate.paymentMethod.union(RedirectPaymentMethodCreate).method.enum(ach)` **Added**\n * `response.paymentMethod.method.enum(ach)` **Added**\n* `gr4vy.transactions.get()`: `response.paymentMethod.method.enum(ach)` **Added**\n* `gr4vy.transactions.update()`: `response.paymentMethod.method.enum(ach)` **Added**\n* `gr4vy.transactions.capture()`: `response.union(Transaction).paymentMethod.method.enum(ach)` **Added**\n* `gr4vy.transactions.void()`: `response.union(TransactionVoid).transaction.paymentMethod.method.enum(ach)` **Added**\n* `gr4vy.transactions.cancel()`: `response.transaction.paymentMethod.method.enum(ach)` **Added**\n* `gr4vy.transactions.sync()`: `response.paymentMethod.method.enum(ach)` **Added**\n* `gr4vy.paymentServiceDefinitions.list()`: `response.items[].method.enum(ach)` **Added**\n* `gr4vy.paymentServiceDefinitions.get()`: `response.method.enum(ach)` **Added**\n* `gr4vy.paymentServices.list()`: \n * `request.method` **Changed**\n * `response.items[].method.enum(ach)` **Added**\n* `gr4vy.paymentServices.create()`: `response.method.enum(ach)` **Added**\n* `gr4vy.paymentServices.get()`: `response.method.enum(ach)` **Added**\n* `gr4vy.paymentServices.update()`: `response.method.enum(ach)` **Added**\n* `gr4vy.payouts.list()`: `response.items[].paymentMethod.method.enum(ach)` **Added**\n* `gr4vy.payouts.create()`: `response.paymentMethod.method.enum(ach)` **Added**\n* `gr4vy.payouts.get()`: `response.paymentMethod.method.enum(ach)` **Added**\n" +releaseNotes: | + ## Java SDK Changes: + * `gr4vy.transactions.capture()`: `response.union(TransactionCapture)` **Changed** generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 37685547..750dc2a5 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -30,7 +30,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 2.16.62 + version: 2.16.63 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 bf3373c4..7e951a2b 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -9,8 +9,8 @@ sources: - 1.0.0 openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:381ee6b1acbbade5d7464c75953609b78169aeb95e15adf6b1513ef1f82ec34d - sourceBlobDigest: sha256:33340e0bedaaaf3b8035445ad89f859ae734dc987d3d33b836fd050525ee4d65 + sourceRevisionDigest: sha256:91be9640af98400fe89f1283b79519ab8a5b8a00dabc07064c4a616b8a4d9593 + sourceBlobDigest: sha256:f5d5f3d4d10f7272474cdfb2493989ba6c1492c786121b13e1d27129bf01abb7 tags: - latest - 1.0.0 @@ -25,10 +25,10 @@ targets: java: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:381ee6b1acbbade5d7464c75953609b78169aeb95e15adf6b1513ef1f82ec34d - sourceBlobDigest: sha256:33340e0bedaaaf3b8035445ad89f859ae734dc987d3d33b836fd050525ee4d65 + sourceRevisionDigest: sha256:91be9640af98400fe89f1283b79519ab8a5b8a00dabc07064c4a616b8a4d9593 + sourceBlobDigest: sha256:f5d5f3d4d10f7272474cdfb2493989ba6c1492c786121b13e1d27129bf01abb7 codeSamplesNamespace: openapi-java-code-samples - codeSamplesRevisionDigest: sha256:818f14a3ca0ae9a744854fbf20fa8704d0c114b4cfda676d6ad72f3b46e844d6 + codeSamplesRevisionDigest: sha256:5b3c567ca2124d6bf81f8c709a0fd4d9d778e77c5a747f20fa331e063039c5fb workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 89dbcde2..c7971abf 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.16.62' +implementation 'com.gr4vy:sdk:2.16.63' ``` Maven: @@ -67,7 +67,7 @@ Maven: com.gr4vy sdk - 2.16.62 + 2.16.63 ``` diff --git a/RELEASES.md b/RELEASES.md index 2026f162..60f523af 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1458,4 +1458,14 @@ Based on: ### Generated - [java v2.16.62] . ### Releases -- [Maven Central v2.16.62] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.62 - . \ No newline at end of file +- [Maven Central v2.16.62] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.62 - . + +## 2026-05-13 08:36:19 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.762.0 (2.882.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v2.16.63] . +### Releases +- [Maven Central v2.16.63] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.63 - . \ No newline at end of file diff --git a/docs/models/components/TransactionCapture.md b/docs/models/components/TransactionCapture.md index d21b68e8..dda43d8d 100644 --- a/docs/models/components/TransactionCapture.md +++ b/docs/models/components/TransactionCapture.md @@ -10,4 +10,6 @@ | `code` | *Optional\* | :heavy_check_mark: | The standardized error code set by Gr4vy. | service_error | | `rawResponseCode` | *Optional\* | :heavy_check_mark: | This is the response code received from the payment service. This can be set to any value and is not standardized across different payment services. | E104 | | `rawResponseDescription` | *Optional\* | :heavy_check_mark: | This is the response description received from the payment service. This can be set to any value and is not standardized across different payment services. | Internal error | -| `transaction` | [Transaction](../../models/components/Transaction.md) | :heavy_check_mark: | A full transaction resource. | | \ No newline at end of file +| `transaction` | [Transaction](../../models/components/Transaction.md) | :heavy_check_mark: | A full transaction resource. | | +| `captureId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the capture resource created for this capture. | 77a76f7e-d2de-4bbc-ada9-d6a0015e6bd5 | +| `paymentServiceCaptureId` | *JsonNullable\* | :heavy_minus_sign: | The payment service's unique ID for the capture. | capture-12345 | \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 3664f760..b23ade75 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.gr4vy artifactId=sdk -version=2.16.62 +version=2.16.63 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 c75f6004..ac86ee81 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.62"; + public static final String SDK_VERSION = "2.16.63"; public static final String GEN_VERSION = "2.882.0"; 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/TransactionCapture.java b/src/main/java/com/gr4vy/sdk/models/components/TransactionCapture.java index 1e1b4810..5fbcc392 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/TransactionCapture.java +++ b/src/main/java/com/gr4vy/sdk/models/components/TransactionCapture.java @@ -14,6 +14,7 @@ import java.lang.Override; import java.lang.String; import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; public class TransactionCapture { @@ -57,31 +58,52 @@ public class TransactionCapture { @JsonProperty("transaction") private Transaction transaction; + /** + * The ID of the capture resource created for this capture. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("capture_id") + private JsonNullable captureId; + + /** + * The payment service's unique ID for the capture. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("payment_service_capture_id") + private JsonNullable paymentServiceCaptureId; + @JsonCreator public TransactionCapture( @JsonProperty("status") CaptureStatus status, @JsonProperty("code") Optional code, @JsonProperty("raw_response_code") Optional rawResponseCode, @JsonProperty("raw_response_description") Optional rawResponseDescription, - @JsonProperty("transaction") Transaction transaction) { + @JsonProperty("transaction") Transaction transaction, + @JsonProperty("capture_id") JsonNullable captureId, + @JsonProperty("payment_service_capture_id") JsonNullable paymentServiceCaptureId) { Utils.checkNotNull(status, "status"); Utils.checkNotNull(code, "code"); Utils.checkNotNull(rawResponseCode, "rawResponseCode"); Utils.checkNotNull(rawResponseDescription, "rawResponseDescription"); Utils.checkNotNull(transaction, "transaction"); + Utils.checkNotNull(captureId, "captureId"); + Utils.checkNotNull(paymentServiceCaptureId, "paymentServiceCaptureId"); this.type = Builder._SINGLETON_VALUE_Type.value(); this.status = status; this.code = code; this.rawResponseCode = rawResponseCode; this.rawResponseDescription = rawResponseDescription; this.transaction = transaction; + this.captureId = captureId; + this.paymentServiceCaptureId = paymentServiceCaptureId; } public TransactionCapture( CaptureStatus status, Transaction transaction) { this(status, Optional.empty(), Optional.empty(), - Optional.empty(), transaction); + Optional.empty(), transaction, JsonNullable.undefined(), + JsonNullable.undefined()); } /** @@ -131,6 +153,22 @@ public Transaction transaction() { return transaction; } + /** + * The ID of the capture resource created for this capture. + */ + @JsonIgnore + public JsonNullable captureId() { + return captureId; + } + + /** + * The payment service's unique ID for the capture. + */ + @JsonIgnore + public JsonNullable paymentServiceCaptureId() { + return paymentServiceCaptureId; + } + public static Builder builder() { return new Builder(); } @@ -212,6 +250,42 @@ public TransactionCapture withTransaction(Transaction transaction) { return this; } + /** + * The ID of the capture resource created for this capture. + */ + public TransactionCapture withCaptureId(String captureId) { + Utils.checkNotNull(captureId, "captureId"); + this.captureId = JsonNullable.of(captureId); + return this; + } + + /** + * The ID of the capture resource created for this capture. + */ + public TransactionCapture withCaptureId(JsonNullable captureId) { + Utils.checkNotNull(captureId, "captureId"); + this.captureId = captureId; + return this; + } + + /** + * The payment service's unique ID for the capture. + */ + public TransactionCapture withPaymentServiceCaptureId(String paymentServiceCaptureId) { + Utils.checkNotNull(paymentServiceCaptureId, "paymentServiceCaptureId"); + this.paymentServiceCaptureId = JsonNullable.of(paymentServiceCaptureId); + return this; + } + + /** + * The payment service's unique ID for the capture. + */ + public TransactionCapture withPaymentServiceCaptureId(JsonNullable paymentServiceCaptureId) { + Utils.checkNotNull(paymentServiceCaptureId, "paymentServiceCaptureId"); + this.paymentServiceCaptureId = paymentServiceCaptureId; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -227,14 +301,17 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.code, other.code) && Utils.enhancedDeepEquals(this.rawResponseCode, other.rawResponseCode) && Utils.enhancedDeepEquals(this.rawResponseDescription, other.rawResponseDescription) && - Utils.enhancedDeepEquals(this.transaction, other.transaction); + Utils.enhancedDeepEquals(this.transaction, other.transaction) && + Utils.enhancedDeepEquals(this.captureId, other.captureId) && + Utils.enhancedDeepEquals(this.paymentServiceCaptureId, other.paymentServiceCaptureId); } @Override public int hashCode() { return Utils.enhancedHash( type, status, code, - rawResponseCode, rawResponseDescription, transaction); + rawResponseCode, rawResponseDescription, transaction, + captureId, paymentServiceCaptureId); } @Override @@ -245,7 +322,9 @@ public String toString() { "code", code, "rawResponseCode", rawResponseCode, "rawResponseDescription", rawResponseDescription, - "transaction", transaction); + "transaction", transaction, + "captureId", captureId, + "paymentServiceCaptureId", paymentServiceCaptureId); } @SuppressWarnings("UnusedReturnValue") @@ -261,6 +340,10 @@ public final static class Builder { private Transaction transaction; + private JsonNullable captureId = JsonNullable.undefined(); + + private JsonNullable paymentServiceCaptureId = JsonNullable.undefined(); + private Builder() { // force use of static builder() method } @@ -343,11 +426,50 @@ public Builder transaction(Transaction transaction) { return this; } + + /** + * The ID of the capture resource created for this capture. + */ + public Builder captureId(String captureId) { + Utils.checkNotNull(captureId, "captureId"); + this.captureId = JsonNullable.of(captureId); + return this; + } + + /** + * The ID of the capture resource created for this capture. + */ + public Builder captureId(JsonNullable captureId) { + Utils.checkNotNull(captureId, "captureId"); + this.captureId = captureId; + return this; + } + + + /** + * The payment service's unique ID for the capture. + */ + public Builder paymentServiceCaptureId(String paymentServiceCaptureId) { + Utils.checkNotNull(paymentServiceCaptureId, "paymentServiceCaptureId"); + this.paymentServiceCaptureId = JsonNullable.of(paymentServiceCaptureId); + return this; + } + + /** + * The payment service's unique ID for the capture. + */ + public Builder paymentServiceCaptureId(JsonNullable paymentServiceCaptureId) { + Utils.checkNotNull(paymentServiceCaptureId, "paymentServiceCaptureId"); + this.paymentServiceCaptureId = paymentServiceCaptureId; + return this; + } + public TransactionCapture build() { return new TransactionCapture( status, code, rawResponseCode, - rawResponseDescription, transaction); + rawResponseDescription, transaction, captureId, + paymentServiceCaptureId); } From c867d54aecdbbce2e99d329b1cf23081ff3db3f1 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Wed, 13 May 2026 08:38:13 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow