From d6bc5291e83075bc843e3ff0fb80388515ae3dd4 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 7 Jul 2026 14:42:29 +0000 Subject: [PATCH 1/2] ## Java SDK Changes: * `gr4vy.transactions.capture()`: `response.union(TransactionCapture)` **Changed** --- .speakeasy/gen.lock | 36 ++--- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 12 +- README.md | 4 +- RELEASES.md | 12 +- docs/models/components/TransactionCapture.md | 4 +- gradle.properties | 2 +- .../java/com/gr4vy/sdk/SDKConfiguration.java | 4 +- .../models/components/TransactionCapture.java | 136 +++++++++++++++++- 9 files changed, 175 insertions(+), 37 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 7810e57b..14957b70 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: 0e0b183f1efd906b734066b8b01042fe + docChecksum: 3a79f04042680a6a2a2812613f5bb27a docVersion: 1.0.0 - speakeasyVersion: 1.788.1 - generationVersion: 2.915.1 - releaseVersion: 2.16.103 - configChecksum: cab0d12e72dd1afa83446d33cda94836 + speakeasyVersion: 1.789.0 + generationVersion: 2.916.2 + releaseVersion: 2.16.104 + configChecksum: ae2a60a36befddc16479d9b33857f43b repoURL: https://github.com/gr4vy/gr4vy-java.git installationURL: https://github.com/gr4vy/gr4vy-java published: true persistentEdits: - generation_id: 868c4249-15be-479d-94cc-257617e10b61 - pristine_commit_hash: 059f9954ef0685303b00be1f3a957cea542d0ed1 - pristine_tree_hash: b9971ccbb1ad8bcd031733b3c274ec9665100d4b + generation_id: 28503989-acbc-446a-9143-031c505bbffd + pristine_commit_hash: af2ec15cad3ac4112c8d85713fd67ea508f0f8a6 + pristine_tree_hash: 040dee98d138b3bfa62d84d40950c499b86d073a features: java: additionalDependencies: 0.1.0 @@ -1450,8 +1450,8 @@ trackedFiles: pristine_git_object: 5afce2a8c2f41bfcd16d9ed8127ae5941aeebaad docs/models/components/TransactionCapture.md: id: d1b2e22cc0fd - last_write_checksum: sha1:9ccd7655a43fb52f781c9560ee2d34756b483b02 - pristine_git_object: cd404ec57eefedfdf687e86ce73018f4ab6aac65 + last_write_checksum: sha1:773a8e3af18a24ad4266096eb8b57c9a8bb03368 + pristine_git_object: 103165f9ab976350b28b45b43d928114ace6ce40 docs/models/components/TransactionCaptureCreate.md: id: fa6f6819cb5d last_write_checksum: sha1:6832a9759c81e711160a359d6fa0507efaf18f75 @@ -2734,8 +2734,8 @@ trackedFiles: pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:4c01924f8e4ecfee28aef0d3869ab18d8f34e65f - pristine_git_object: f197e39a083cf64898e3e09ee4cbbc5c135e04eb + last_write_checksum: sha1:b786bb4ed4818d02b18a44a9abf2443b60117bd0 + pristine_git_object: 3abec229b781b6d1f13bf0352c8b98328dccc9e0 gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -3046,8 +3046,8 @@ trackedFiles: pristine_git_object: 502a7312d3dc82c102dbaf7ed5e952d0c793e26f src/main/java/com/gr4vy/sdk/SDKConfiguration.java: id: 73a7edeaca45 - last_write_checksum: sha1:9018a1388dd8ae212c2b9eeeb550b3cd8d002470 - pristine_git_object: cd0f1783b99e931275ca57fd54537afda1adbb60 + last_write_checksum: sha1:5102ffe1242bbee09e715000aef8b8c59c58d7e4 + pristine_git_object: f871906220db2c35d257f1783eb2bd59924994ab src/main/java/com/gr4vy/sdk/SecuritySource.java: id: 1b6add6b9b50 last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd @@ -4486,8 +4486,8 @@ trackedFiles: pristine_git_object: c4e2e7ef83de294b37ff47fdcf3f8f326b871351 src/main/java/com/gr4vy/sdk/models/components/TransactionCapture.java: id: 9cd3562a3fa1 - last_write_checksum: sha1:dd851735a47e86a235a9a7dc439ed2a625d479e1 - pristine_git_object: 31272b3ded6534eec2925fdb8e87baabc8cbb57f + last_write_checksum: sha1:bf4a7ac2edbe3f240c7d3022d74bf21d0b9f5fa5 + pristine_git_object: 1199d52513a1e9b1a5acee53d35535f81d4590d6 src/main/java/com/gr4vy/sdk/models/components/TransactionCaptureCreate.java: id: ed5d05b51a07 last_write_checksum: sha1:4c2e1904cd86ff9afef4c007dd4d8a5dc91091fa @@ -11880,7 +11880,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.transactions.capture()`: \n * `request.transactionCaptureCreate.reauthorizeIfAuthorizationExpired` **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 c291a79a..c36c081e 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -30,7 +30,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 2.16.103 + version: 2.16.104 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 b48034b8..b5404356 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.788.1 +speakeasyVersion: 1.789.0 sources: Gr4vy: sourceNamespace: openapi @@ -9,8 +9,8 @@ sources: - 1.0.0 openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:76f04926682264ec529f527288bfa0a0b908e640c6da5524bf3ba2f164f22568 - sourceBlobDigest: sha256:2eb73547472115527d1ae464dc8bf23adf4057a86b796839751f8dbfe8626ab6 + sourceRevisionDigest: sha256:10b761b86fdda36a81e7acfd3124893c1bdd8f49654f1155a896533eee1e5f4a + sourceBlobDigest: sha256:97ebd5e2fb9fe6c130c901e2beaad3406a50d73b518ef244b2043668e4078ec4 tags: - latest - 1.0.0 @@ -25,10 +25,10 @@ targets: java: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:76f04926682264ec529f527288bfa0a0b908e640c6da5524bf3ba2f164f22568 - sourceBlobDigest: sha256:2eb73547472115527d1ae464dc8bf23adf4057a86b796839751f8dbfe8626ab6 + sourceRevisionDigest: sha256:10b761b86fdda36a81e7acfd3124893c1bdd8f49654f1155a896533eee1e5f4a + sourceBlobDigest: sha256:97ebd5e2fb9fe6c130c901e2beaad3406a50d73b518ef244b2043668e4078ec4 codeSamplesNamespace: openapi-java-code-samples - codeSamplesRevisionDigest: sha256:b5b1f1b4b86ef49a7f0f6cfaa455188953e45ea8c88cfdef4a82045333b2d49c + codeSamplesRevisionDigest: sha256:756164812f8299005bf6e48535e51abd7f7c281e6a7dded70618e5a6f70d2255 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 7c980f8c..fe8c6b45 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.103' +implementation 'com.gr4vy:sdk:2.16.104' ``` Maven: @@ -67,7 +67,7 @@ Maven: com.gr4vy sdk - 2.16.103 + 2.16.104 ``` diff --git a/RELEASES.md b/RELEASES.md index 2357925b..daf5dcd2 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1868,4 +1868,14 @@ Based on: ### Generated - [java v2.16.103] . ### Releases -- [Maven Central v2.16.103] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.103 - . \ No newline at end of file +- [Maven Central v2.16.103] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.103 - . + +## 2026-07-07 14:40:31 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.789.0 (2.916.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v2.16.104] . +### Releases +- [Maven Central v2.16.104] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.104 - . \ No newline at end of file diff --git a/docs/models/components/TransactionCapture.md b/docs/models/components/TransactionCapture.md index cd404ec5..103165f9 100644 --- a/docs/models/components/TransactionCapture.md +++ b/docs/models/components/TransactionCapture.md @@ -13,4 +13,6 @@ | `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 | -| `externalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The external identifier for the capture. | capture-12345 | \ No newline at end of file +| `externalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The external identifier for the capture. | capture-12345 | +| `billingDetails` | [JsonNullable\](../../models/components/BillingDetails.md) | :heavy_minus_sign: | The billing details associated with the capture. | | +| `shippingDetails` | [JsonNullable\](../../models/components/ShippingDetails.md) | :heavy_minus_sign: | The shipping details associated with the catpure. | | \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index f197e39a..3abec229 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.gr4vy artifactId=sdk -version=2.16.103 +version=2.16.104 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 cd0f1783..f8719062 100644 --- a/src/main/java/com/gr4vy/sdk/SDKConfiguration.java +++ b/src/main/java/com/gr4vy/sdk/SDKConfiguration.java @@ -22,8 +22,8 @@ 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.103"; - public static final String GEN_VERSION = "2.915.1"; + public static final String SDK_VERSION = "2.16.104"; + public static final String GEN_VERSION = "2.916.2"; private static final String BASE_PACKAGE = "com.gr4vy.sdk"; public static final String USER_AGENT = String.format("speakeasy-sdk/%s %s %s %s %s", 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 31272b3d..1199d525 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/TransactionCapture.java +++ b/src/main/java/com/gr4vy/sdk/models/components/TransactionCapture.java @@ -13,6 +13,7 @@ import com.gr4vy.sdk.utils.Utils; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; @@ -79,6 +80,20 @@ public class TransactionCapture { @JsonProperty("external_identifier") private JsonNullable externalIdentifier; + /** + * The billing details associated with the capture. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("billing_details") + private JsonNullable billingDetails; + + /** + * The shipping details associated with the catpure. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("shipping_details") + private JsonNullable shippingDetails; + @JsonCreator public TransactionCapture( @JsonProperty("status") CaptureStatus status, @@ -88,7 +103,9 @@ public TransactionCapture( @JsonProperty("transaction") Transaction transaction, @JsonProperty("capture_id") JsonNullable captureId, @JsonProperty("payment_service_capture_id") JsonNullable paymentServiceCaptureId, - @JsonProperty("external_identifier") JsonNullable externalIdentifier) { + @JsonProperty("external_identifier") JsonNullable externalIdentifier, + @JsonProperty("billing_details") JsonNullable billingDetails, + @JsonProperty("shipping_details") JsonNullable shippingDetails) { Utils.checkNotNull(status, "status"); Utils.checkNotNull(code, "code"); Utils.checkNotNull(rawResponseCode, "rawResponseCode"); @@ -97,6 +114,8 @@ public TransactionCapture( Utils.checkNotNull(captureId, "captureId"); Utils.checkNotNull(paymentServiceCaptureId, "paymentServiceCaptureId"); Utils.checkNotNull(externalIdentifier, "externalIdentifier"); + Utils.checkNotNull(billingDetails, "billingDetails"); + Utils.checkNotNull(shippingDetails, "shippingDetails"); this.type = Builder._SINGLETON_VALUE_Type.value(); this.status = status; this.code = code; @@ -106,6 +125,8 @@ public TransactionCapture( this.captureId = captureId; this.paymentServiceCaptureId = paymentServiceCaptureId; this.externalIdentifier = externalIdentifier; + this.billingDetails = billingDetails; + this.shippingDetails = shippingDetails; } public TransactionCapture( @@ -113,7 +134,8 @@ public TransactionCapture( Transaction transaction) { this(status, Optional.empty(), Optional.empty(), Optional.empty(), transaction, JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined()); + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined()); } /** @@ -187,6 +209,24 @@ public JsonNullable externalIdentifier() { return externalIdentifier; } + /** + * The billing details associated with the capture. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable billingDetails() { + return (JsonNullable) billingDetails; + } + + /** + * The shipping details associated with the catpure. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable shippingDetails() { + return (JsonNullable) shippingDetails; + } + public static Builder builder() { return new Builder(); } @@ -322,6 +362,42 @@ public TransactionCapture withExternalIdentifier(JsonNullable externalId return this; } + /** + * The billing details associated with the capture. + */ + public TransactionCapture withBillingDetails(BillingDetails billingDetails) { + Utils.checkNotNull(billingDetails, "billingDetails"); + this.billingDetails = JsonNullable.of(billingDetails); + return this; + } + + /** + * The billing details associated with the capture. + */ + public TransactionCapture withBillingDetails(JsonNullable billingDetails) { + Utils.checkNotNull(billingDetails, "billingDetails"); + this.billingDetails = billingDetails; + return this; + } + + /** + * The shipping details associated with the catpure. + */ + public TransactionCapture withShippingDetails(ShippingDetails shippingDetails) { + Utils.checkNotNull(shippingDetails, "shippingDetails"); + this.shippingDetails = JsonNullable.of(shippingDetails); + return this; + } + + /** + * The shipping details associated with the catpure. + */ + public TransactionCapture withShippingDetails(JsonNullable shippingDetails) { + Utils.checkNotNull(shippingDetails, "shippingDetails"); + this.shippingDetails = shippingDetails; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -340,7 +416,9 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.transaction, other.transaction) && Utils.enhancedDeepEquals(this.captureId, other.captureId) && Utils.enhancedDeepEquals(this.paymentServiceCaptureId, other.paymentServiceCaptureId) && - Utils.enhancedDeepEquals(this.externalIdentifier, other.externalIdentifier); + Utils.enhancedDeepEquals(this.externalIdentifier, other.externalIdentifier) && + Utils.enhancedDeepEquals(this.billingDetails, other.billingDetails) && + Utils.enhancedDeepEquals(this.shippingDetails, other.shippingDetails); } @Override @@ -348,7 +426,8 @@ public int hashCode() { return Utils.enhancedHash( type, status, code, rawResponseCode, rawResponseDescription, transaction, - captureId, paymentServiceCaptureId, externalIdentifier); + captureId, paymentServiceCaptureId, externalIdentifier, + billingDetails, shippingDetails); } @Override @@ -362,7 +441,9 @@ public String toString() { "transaction", transaction, "captureId", captureId, "paymentServiceCaptureId", paymentServiceCaptureId, - "externalIdentifier", externalIdentifier); + "externalIdentifier", externalIdentifier, + "billingDetails", billingDetails, + "shippingDetails", shippingDetails); } @SuppressWarnings("UnusedReturnValue") @@ -384,6 +465,10 @@ public final static class Builder { private JsonNullable externalIdentifier = JsonNullable.undefined(); + private JsonNullable billingDetails = JsonNullable.undefined(); + + private JsonNullable shippingDetails = JsonNullable.undefined(); + private Builder() { // force use of static builder() method } @@ -523,12 +608,51 @@ public Builder externalIdentifier(JsonNullable externalIdentifier) { return this; } + + /** + * The billing details associated with the capture. + */ + public Builder billingDetails(BillingDetails billingDetails) { + Utils.checkNotNull(billingDetails, "billingDetails"); + this.billingDetails = JsonNullable.of(billingDetails); + return this; + } + + /** + * The billing details associated with the capture. + */ + public Builder billingDetails(JsonNullable billingDetails) { + Utils.checkNotNull(billingDetails, "billingDetails"); + this.billingDetails = billingDetails; + return this; + } + + + /** + * The shipping details associated with the catpure. + */ + public Builder shippingDetails(ShippingDetails shippingDetails) { + Utils.checkNotNull(shippingDetails, "shippingDetails"); + this.shippingDetails = JsonNullable.of(shippingDetails); + return this; + } + + /** + * The shipping details associated with the catpure. + */ + public Builder shippingDetails(JsonNullable shippingDetails) { + Utils.checkNotNull(shippingDetails, "shippingDetails"); + this.shippingDetails = shippingDetails; + return this; + } + public TransactionCapture build() { return new TransactionCapture( status, code, rawResponseCode, rawResponseDescription, transaction, captureId, - paymentServiceCaptureId, externalIdentifier); + paymentServiceCaptureId, externalIdentifier, billingDetails, + shippingDetails); } From 5028d6df923f134fa6c1ef2ded947695ee822690 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Tue, 7 Jul 2026 14:42:50 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow