From 8bd83622e998c74d7d4803afbe6b7b9e18298dda Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 14 Jan 2026 14:28:46 +0000 Subject: [PATCH 1/2] ## Java SDK Changes: * `gr4vy.transactions.create()`: `response.iso_response_code` **Added** * `gr4vy.transactions.get()`: `response.iso_response_code` **Added** * `gr4vy.transactions.update()`: `response.iso_response_code` **Added** * `gr4vy.transactions.capture()`: `response.[transaction].isoResponseCode` **Added** * `gr4vy.transactions.void()`: `response.[transaction].isoResponseCode` **Added** * `gr4vy.transactions.cancel()`: `response.transaction.isoResponseCode` **Added** * `gr4vy.transactions.sync()`: `response.iso_response_code` **Added** --- .speakeasy/gen.lock | 38 ++++++---- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 12 ++-- README.md | 4 +- RELEASES.md | 12 +++- docs/models/components/Transaction.md | 3 +- gradle.properties | 2 +- .../java/com/gr4vy/sdk/SDKConfiguration.java | 2 +- .../sdk/models/components/Transaction.java | 71 +++++++++++++++++-- 9 files changed, 112 insertions(+), 34 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index ce0fdddd..51a3461b 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: 842c840940cd903936d40e01ca3d1d78 + docChecksum: 46e5957d126b174e3d31878b259369ab docVersion: 1.0.0 speakeasyVersion: 1.685.0 generationVersion: 2.794.1 - releaseVersion: 2.16.11 - configChecksum: d1b32924970babb70956548ebfece3d7 + releaseVersion: 2.16.12 + configChecksum: 905153001b9d84ae0da477b2bc4fc48e repoURL: https://github.com/gr4vy/gr4vy-java.git published: true persistentEdits: - generation_id: 92c48d97-f003-4f3a-8b0f-f4a7f999a305 - pristine_commit_hash: 83abc0efa8683fa5ffbff76b07a60e36626901c4 - pristine_tree_hash: d59d636f179989182df51c8a3d778bd85f2b7db0 + generation_id: 60959e29-08e6-4d6d-bf0c-1b0c636e09e7 + pristine_commit_hash: 516e5f8eeed8e3a4da8289c1c31f95538f66c87e + pristine_tree_hash: 23f11408fc4c14d78d821e5df3ff9ba9e21e8206 features: java: additionalDependencies: 0.1.0 @@ -1061,8 +1061,8 @@ trackedFiles: pristine_git_object: 5c5875124cf7e2039db41ffdf4f5ce65c18b22ba docs/models/components/Transaction.md: id: 860f2214deb0 - last_write_checksum: sha1:26049ea7dc3b4939ef40a92b40f5340cd2bf8a42 - pristine_git_object: 66d262afba4818ca4bcb15358caea08e1c595668 + last_write_checksum: sha1:5f0b212eb6cb091b7a6b71452e836c68e8094a1a + pristine_git_object: 3e58aadb3c8d30151cd033962b519686fe1a4cff docs/models/components/TransactionAction.md: id: 7cf2857d2f07 last_write_checksum: sha1:e9d0306a43f9865d511a66ee72ac9dc57fe1b79e @@ -2177,8 +2177,8 @@ trackedFiles: pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:5b6bd952c11849a1b717e20969967d98fbd44ea8 - pristine_git_object: 89105342f23688df79b17a73c6dc182bd1e7354f + last_write_checksum: sha1:2f5c46988788872051fbc763bf649a02ba2d117f + pristine_git_object: 0ce551d0b5b39df453f1b94246d6b2bb22d4f0cb gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -2493,8 +2493,8 @@ trackedFiles: pristine_git_object: 502a7312d3dc82c102dbaf7ed5e952d0c793e26f src/main/java/com/gr4vy/sdk/SDKConfiguration.java: id: 73a7edeaca45 - last_write_checksum: sha1:df16a90f6e8f440cf35cf9392bd2c7e0d6a79d67 - pristine_git_object: 68180ff385035a2f49cc518ce4c5c842f94d8c02 + last_write_checksum: sha1:d6e876f6b5fdc69b8d5f631a13d70b920317567a + pristine_git_object: 834a7d3a927310eaad3245b41235237fcc30cafa src/main/java/com/gr4vy/sdk/SecuritySource.java: id: 1b6add6b9b50 last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd @@ -3537,8 +3537,8 @@ trackedFiles: pristine_git_object: bb01652754c22faae31a1012053c577c8d9720c2 src/main/java/com/gr4vy/sdk/models/components/Transaction.java: id: 3a6b6cb3c604 - last_write_checksum: sha1:a3458f1ccd5743cf61f5a43042135ddf38aa40fb - pristine_git_object: c49dc4d32634602c72b4c7a493cd4af4cc485dba + last_write_checksum: sha1:a5341a1e452afd92613f521fcd87203c27eac067 + pristine_git_object: b5d433150c3963cb3fdd4812610620657acf0051 src/main/java/com/gr4vy/sdk/models/components/TransactionAction.java: id: 562a10c022e6 last_write_checksum: sha1:bcfb0848257538b71da9082394bad798d626c99d @@ -9803,7 +9803,15 @@ 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.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" +releaseNotes: | + ## Java SDK Changes: + * `gr4vy.transactions.create()`: `response.iso_response_code` **Added** + * `gr4vy.transactions.get()`: `response.iso_response_code` **Added** + * `gr4vy.transactions.update()`: `response.iso_response_code` **Added** + * `gr4vy.transactions.capture()`: `response.[transaction].isoResponseCode` **Added** + * `gr4vy.transactions.void()`: `response.[transaction].isoResponseCode` **Added** + * `gr4vy.transactions.cancel()`: `response.transaction.isoResponseCode` **Added** + * `gr4vy.transactions.sync()`: `response.iso_response_code` **Added** generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 623621a7..72349f39 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -27,7 +27,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 2.16.11 + version: 2.16.12 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 23ef91c9..a31bc984 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -9,11 +9,11 @@ sources: - 1.0.0 openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:67371163803b0d0c2514d85fdbbdf944844c38a4f8ad0ff2b895ddf210b56f25 - sourceBlobDigest: sha256:81eafd406c0d0c8363a7a18b7c434a8daf8e1a996d9efdcf3f2b04e1e102dcc7 + sourceRevisionDigest: sha256:45cb8de6ee215d73b390eb2e6d3e9419cd568d8b07124dbbcb687dfd45bafb7d + sourceBlobDigest: sha256:6d6b801f2e022bd47b5d6e4143daff808a63ff37e5a95fabce11b0c784645e6a tags: - latest - - speakeasy-sdk-regen-1768309143 + - speakeasy-sdk-regen-1768400814 - 1.0.0 targets: gr-4-vy: @@ -26,10 +26,10 @@ targets: java: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:67371163803b0d0c2514d85fdbbdf944844c38a4f8ad0ff2b895ddf210b56f25 - sourceBlobDigest: sha256:81eafd406c0d0c8363a7a18b7c434a8daf8e1a996d9efdcf3f2b04e1e102dcc7 + sourceRevisionDigest: sha256:45cb8de6ee215d73b390eb2e6d3e9419cd568d8b07124dbbcb687dfd45bafb7d + sourceBlobDigest: sha256:6d6b801f2e022bd47b5d6e4143daff808a63ff37e5a95fabce11b0c784645e6a codeSamplesNamespace: openapi-java-code-samples - codeSamplesRevisionDigest: sha256:b012441d0541a682bed890870baa7134c051b906eefdc6a89c403cb255e5da5d + codeSamplesRevisionDigest: sha256:63f331fc270dcfd139a505d9feedda72caa9563b8ecf426f3d54cdfae390a199 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index e7419061..e8baec65 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.11' +implementation 'com.gr4vy:sdk:2.16.12' ``` Maven: @@ -66,7 +66,7 @@ Maven: com.gr4vy sdk - 2.16.11 + 2.16.12 ``` diff --git a/RELEASES.md b/RELEASES.md index 693f78f5..65ec7eef 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -948,4 +948,14 @@ Based on: ### 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 +- [Maven Central v2.16.11] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.11 - . + +## 2026-01-14 14:26:34 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.685.0 (2.794.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v2.16.12] . +### Releases +- [Maven Central v2.16.12] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.12 - . \ No newline at end of file diff --git a/docs/models/components/Transaction.md b/docs/models/components/Transaction.md index 66d262af..3e58aadb 100644 --- a/docs/models/components/Transaction.md +++ b/docs/models/components/Transaction.md @@ -74,4 +74,5 @@ A full transaction resource. | `amountIncludesTax` | *JsonNullable\* | :heavy_minus_sign: | Whether the tax is included in the amount. | false | | `supplierOrderNumber` | *JsonNullable\* | :heavy_minus_sign: | The merchant's unique identifier for the sales order or invoice. | | | `dutyAmount` | *JsonNullable\* | :heavy_minus_sign: | Total charges for import/export duties. | 1299 | -| `shippingAmount` | *JsonNullable\* | :heavy_minus_sign: | Total shipping amount. | 1299 | \ No newline at end of file +| `shippingAmount` | *JsonNullable\* | :heavy_minus_sign: | Total shipping amount. | 1299 | +| `isoResponseCode` | *JsonNullable\* | :heavy_minus_sign: | This is the ISO8583 response code code received from the payment service. | 0110 | \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 89105342..0ce551d0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.gr4vy artifactId=sdk -version=2.16.11 +version=2.16.12 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 68180ff3..834a7d3a 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.11"; + public static final String SDK_VERSION = "2.16.12"; 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/Transaction.java b/src/main/java/com/gr4vy/sdk/models/components/Transaction.java index c49dc4d3..b5d43315 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/Transaction.java +++ b/src/main/java/com/gr4vy/sdk/models/components/Transaction.java @@ -497,6 +497,13 @@ public class Transaction { @JsonProperty("shipping_amount") private JsonNullable shippingAmount; + /** + * This is the ISO8583 response code code received from the payment service. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("iso_response_code") + private JsonNullable isoResponseCode; + @JsonCreator public Transaction( @JsonProperty("id") String id, @@ -565,7 +572,8 @@ public Transaction( @JsonProperty("amount_includes_tax") JsonNullable amountIncludesTax, @JsonProperty("supplier_order_number") JsonNullable supplierOrderNumber, @JsonProperty("duty_amount") JsonNullable dutyAmount, - @JsonProperty("shipping_amount") JsonNullable shippingAmount) { + @JsonProperty("shipping_amount") JsonNullable shippingAmount, + @JsonProperty("iso_response_code") JsonNullable isoResponseCode) { Utils.checkNotNull(id, "id"); Utils.checkNotNull(reconciliationId, "reconciliationId"); Utils.checkNotNull(merchantAccountId, "merchantAccountId"); @@ -633,6 +641,7 @@ public Transaction( Utils.checkNotNull(supplierOrderNumber, "supplierOrderNumber"); Utils.checkNotNull(dutyAmount, "dutyAmount"); Utils.checkNotNull(shippingAmount, "shippingAmount"); + Utils.checkNotNull(isoResponseCode, "isoResponseCode"); this.type = Builder._SINGLETON_VALUE_Type.value(); this.id = id; this.reconciliationId = reconciliationId; @@ -701,6 +710,7 @@ public Transaction( this.supplierOrderNumber = supplierOrderNumber; this.dutyAmount = dutyAmount; this.shippingAmount = shippingAmount; + this.isoResponseCode = isoResponseCode; } public Transaction( @@ -748,7 +758,7 @@ public Transaction( JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined()); + JsonNullable.undefined(), JsonNullable.undefined()); } /** @@ -1324,6 +1334,14 @@ public JsonNullable shippingAmount() { return shippingAmount; } + /** + * This is the ISO8583 response code code received from the payment service. + */ + @JsonIgnore + public JsonNullable isoResponseCode() { + return isoResponseCode; + } + public static Builder builder() { return new Builder(); } @@ -2361,6 +2379,24 @@ public Transaction withShippingAmount(JsonNullable shippingAmount) { return this; } + /** + * This is the ISO8583 response code code received from the payment service. + */ + public Transaction withIsoResponseCode(String isoResponseCode) { + Utils.checkNotNull(isoResponseCode, "isoResponseCode"); + this.isoResponseCode = JsonNullable.of(isoResponseCode); + return this; + } + + /** + * This is the ISO8583 response code code received from the payment service. + */ + public Transaction withIsoResponseCode(JsonNullable isoResponseCode) { + Utils.checkNotNull(isoResponseCode, "isoResponseCode"); + this.isoResponseCode = isoResponseCode; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -2438,7 +2474,8 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.amountIncludesTax, other.amountIncludesTax) && Utils.enhancedDeepEquals(this.supplierOrderNumber, other.supplierOrderNumber) && Utils.enhancedDeepEquals(this.dutyAmount, other.dutyAmount) && - Utils.enhancedDeepEquals(this.shippingAmount, other.shippingAmount); + Utils.enhancedDeepEquals(this.shippingAmount, other.shippingAmount) && + Utils.enhancedDeepEquals(this.isoResponseCode, other.isoResponseCode); } @Override @@ -2466,7 +2503,7 @@ public int hashCode() { merchantAdviceCode, installmentCount, sessionToken, taxAmount, merchantTaxId, purchaseOrderNumber, customerReferenceNumber, amountIncludesTax, supplierOrderNumber, - dutyAmount, shippingAmount); + dutyAmount, shippingAmount, isoResponseCode); } @Override @@ -2539,7 +2576,8 @@ public String toString() { "amountIncludesTax", amountIncludesTax, "supplierOrderNumber", supplierOrderNumber, "dutyAmount", dutyAmount, - "shippingAmount", shippingAmount); + "shippingAmount", shippingAmount, + "isoResponseCode", isoResponseCode); } @SuppressWarnings("UnusedReturnValue") @@ -2679,6 +2717,8 @@ public final static class Builder { private JsonNullable shippingAmount = JsonNullable.undefined(); + private JsonNullable isoResponseCode = JsonNullable.undefined(); + private Builder() { // force use of static builder() method } @@ -3780,6 +3820,25 @@ public Builder shippingAmount(JsonNullable shippingAmount) { return this; } + + /** + * This is the ISO8583 response code code received from the payment service. + */ + public Builder isoResponseCode(String isoResponseCode) { + Utils.checkNotNull(isoResponseCode, "isoResponseCode"); + this.isoResponseCode = JsonNullable.of(isoResponseCode); + return this; + } + + /** + * This is the ISO8583 response code code received from the payment service. + */ + public Builder isoResponseCode(JsonNullable isoResponseCode) { + Utils.checkNotNull(isoResponseCode, "isoResponseCode"); + this.isoResponseCode = isoResponseCode; + return this; + } + public Transaction build() { if (pendingReview == null) { pendingReview = _SINGLETON_VALUE_PendingReview.value(); @@ -3808,7 +3867,7 @@ public Transaction build() { installmentCount, sessionToken, taxAmount, merchantTaxId, purchaseOrderNumber, customerReferenceNumber, amountIncludesTax, supplierOrderNumber, dutyAmount, - shippingAmount); + shippingAmount, isoResponseCode); } From 1c6a87a23e3665f75a6d8660c82237c360db5b3b Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Wed, 14 Jan 2026 14:28:58 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow