diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 238b9846..e787373e 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,24 +1,24 @@ lockVersion: 2.0.0 id: 5bbaa3a9-baa0-471b-ba6a-13fd88e8c119 management: - docChecksum: b7a0f0553c4c46d64c91ae79803c15ab + docChecksum: 186d8b719323871ab63c6e07a56afd35 docVersion: 1.0.0 - speakeasyVersion: 1.766.0 - generationVersion: 2.887.0 - releaseVersion: 2.16.74 - configChecksum: f39465f67ff44f8a5320fd841326262c + speakeasyVersion: 1.767.0 + generationVersion: 2.888.0 + releaseVersion: 2.16.75 + configChecksum: 976b243fc56791447ae2f1370c0d22b1 repoURL: https://github.com/gr4vy/gr4vy-java.git installationURL: https://github.com/gr4vy/gr4vy-java published: true persistentEdits: - generation_id: b25407f9-aa97-46f9-ac2d-1e62aa901dc5 - pristine_commit_hash: 6a2cccd38b52dfa92c827460ca0e0ae61783ac07 - pristine_tree_hash: fccba13c55217a0217bd52b35116890d551d69e4 + generation_id: c565e3d2-40e5-400f-bce8-a495d423fd33 + pristine_commit_hash: a0aa41dd8388ec3592554e2c2bb1809f660b572b + pristine_tree_hash: dc4e977a6352bbf4f7d87a877683a1aa3d2e2dae features: java: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.3 - core: 3.55.25 + core: 3.55.26 flattening: 2.81.1 globalSecurity: 2.83.4 globalSecurityCallbacks: 0.1.0 @@ -1350,8 +1350,8 @@ trackedFiles: pristine_git_object: cd404ec57eefedfdf687e86ce73018f4ab6aac65 docs/models/components/TransactionCaptureCreate.md: id: fa6f6819cb5d - last_write_checksum: sha1:9aea7a4c7bd1d7fc6b46edfa09d33600c820360d - pristine_git_object: fc532f806750ff9aed723b9b4d74efde86ed8b22 + last_write_checksum: sha1:781321e4d3a7fb54cd6777068643a34e750cf106 + pristine_git_object: 53e174210676b6d2565f53635ed828c93697162f docs/models/components/TransactionConnectionOptions.md: id: 2a90ee52a662 last_write_checksum: sha1:681a6757c645aa845172ff4a73747e462d2628a2 @@ -2566,8 +2566,8 @@ trackedFiles: pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:da630be8ae0c14fd9bb7c877a24251b6bfeb1f1d - pristine_git_object: b9b123f2f3d86705361302315db053628ff60547 + last_write_checksum: sha1:5686324fc2a25f3fb37f622c19dfabe4c67c0892 + pristine_git_object: 7f38131aa96ee8de12ed9d0f7c4a64b86d343346 gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -2890,8 +2890,8 @@ trackedFiles: pristine_git_object: 502a7312d3dc82c102dbaf7ed5e952d0c793e26f src/main/java/com/gr4vy/sdk/SDKConfiguration.java: id: 73a7edeaca45 - last_write_checksum: sha1:0db5e090625ea502b9a887c699ddf18c01d5438a - pristine_git_object: 9df82a3944dd4adcae9928467c0c39cd2a6c5d26 + last_write_checksum: sha1:ca09626b5c8e9e23d7e34f012170de162f665a87 + pristine_git_object: 3d816ef1a60a131892a70899c536660b4b70e17b src/main/java/com/gr4vy/sdk/SecuritySource.java: id: 1b6add6b9b50 last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd @@ -4230,8 +4230,8 @@ trackedFiles: pristine_git_object: 31272b3ded6534eec2925fdb8e87baabc8cbb57f src/main/java/com/gr4vy/sdk/models/components/TransactionCaptureCreate.java: id: ed5d05b51a07 - last_write_checksum: sha1:2bb6aec5c13f4a59be87924f79de26d58e00e4a3 - pristine_git_object: 0a47fad3846506a7cbb30ea1f85895f6403e322d + last_write_checksum: sha1:76a43af8546446dd6170198102af818d89345c26 + pristine_git_object: f268e13db673bb17f1f1fc036de50011e1e2814e src/main/java/com/gr4vy/sdk/models/components/TransactionConnectionOptions.java: id: 31501e4506f3 last_write_checksum: sha1:9970c0eaa78ca617ca62570a35512471a390bde2 @@ -11181,10 +11181,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: - * `gr4vy.paymentServiceDefinitions.list()`: `response.items[].fields[].verifiable` **Added** - * `gr4vy.paymentServiceDefinitions.get()`: `response.fields[].verifiable` **Added** +releaseNotes: "## Java SDK Changes:\n* `gr4vy.transactions.capture()`: \n * `request.transactionCaptureCreate.cartItems` **Added**\n" generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 618c7d96..4dd53193 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -30,7 +30,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 2.16.74 + version: 2.16.75 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 816a25ec..b13e09e3 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.766.0 +speakeasyVersion: 1.767.0 sources: Gr4vy: sourceNamespace: openapi @@ -9,8 +9,8 @@ sources: - 1.0.0 openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:be6d2b452887b5ff2849eb18a7c47c9cad9a4258b4c487c637e8ad16b997476a - sourceBlobDigest: sha256:5c6233fee6eb76d5f76598c0be23d39fee8c1e52ee287bc3a77c69fc8600af2a + sourceRevisionDigest: sha256:7952d8588c6630c50b1e9aa81050b94e6a798352c69817b0c5d36c0dd74ff034 + sourceBlobDigest: sha256:c1fe2d70e1c34f1617b2eb3b8763d57e0150a8283fe78e0a91660148fbdca180 tags: - latest - 1.0.0 @@ -25,10 +25,10 @@ targets: java: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:be6d2b452887b5ff2849eb18a7c47c9cad9a4258b4c487c637e8ad16b997476a - sourceBlobDigest: sha256:5c6233fee6eb76d5f76598c0be23d39fee8c1e52ee287bc3a77c69fc8600af2a + sourceRevisionDigest: sha256:7952d8588c6630c50b1e9aa81050b94e6a798352c69817b0c5d36c0dd74ff034 + sourceBlobDigest: sha256:c1fe2d70e1c34f1617b2eb3b8763d57e0150a8283fe78e0a91660148fbdca180 codeSamplesNamespace: openapi-java-code-samples - codeSamplesRevisionDigest: sha256:05a4c3153f8e3ac90169a4512f07d68f2cd0c697b73b00aa02bed1c3856691f7 + codeSamplesRevisionDigest: sha256:b033f38e4887eb482ac0c3670461d0bb4a25c1a876ab25e6553c41a3b4b60a2a workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 376226c9..ae405900 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.74' +implementation 'com.gr4vy:sdk:2.16.75' ``` Maven: @@ -67,7 +67,7 @@ Maven: com.gr4vy sdk - 2.16.74 + 2.16.75 ``` diff --git a/RELEASES.md b/RELEASES.md index 06847b99..a3e2bdd1 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1578,4 +1578,14 @@ Based on: ### Generated - [java v2.16.74] . ### Releases -- [Maven Central v2.16.74] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.74 - . \ No newline at end of file +- [Maven Central v2.16.74] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.74 - . + +## 2026-05-27 09:16:14 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.767.0 (2.888.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v2.16.75] . +### Releases +- [Maven Central v2.16.75] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.75 - . \ No newline at end of file diff --git a/docs/models/components/TransactionCaptureCreate.md b/docs/models/components/TransactionCaptureCreate.md index fc532f80..53e17421 100644 --- a/docs/models/components/TransactionCaptureCreate.md +++ b/docs/models/components/TransactionCaptureCreate.md @@ -8,4 +8,5 @@ Request body for capturing an authorized transaction. | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `amount` | *JsonNullable\* | :heavy_minus_sign: | The amount to capture, in the smallest currency unit (e.g., cents). This must be less than or equal to the authorized amount, unless over-capture is available. | 1299 | -| `airline` | [JsonNullable\](../../models/components/Airline.md) | :heavy_minus_sign: | The airline data to submit to the payment service during the capture call. | | \ No newline at end of file +| `airline` | [JsonNullable\](../../models/components/Airline.md) | :heavy_minus_sign: | The airline data to submit to the payment service during the capture call. | | +| `cartItems` | List\<[CartItem](../../models/components/CartItem.md)> | :heavy_minus_sign: | An array of cart items that represents the line items of this capture. | | \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index b9b123f2..7f38131a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.gr4vy artifactId=sdk -version=2.16.74 +version=2.16.75 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 9df82a39..3d816ef1 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.74"; - public static final String GEN_VERSION = "2.887.0"; + public static final String SDK_VERSION = "2.16.75"; + public static final String GEN_VERSION = "2.888.0"; 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/TransactionCaptureCreate.java b/src/main/java/com/gr4vy/sdk/models/components/TransactionCaptureCreate.java index 0a47fad3..f268e13d 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/TransactionCaptureCreate.java +++ b/src/main/java/com/gr4vy/sdk/models/components/TransactionCaptureCreate.java @@ -13,6 +13,7 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; +import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; /** @@ -36,18 +37,28 @@ public class TransactionCaptureCreate { @JsonProperty("airline") private JsonNullable airline; + /** + * An array of cart items that represents the line items of this capture. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("cart_items") + private JsonNullable> cartItems; + @JsonCreator public TransactionCaptureCreate( @JsonProperty("amount") JsonNullable amount, - @JsonProperty("airline") JsonNullable airline) { + @JsonProperty("airline") JsonNullable airline, + @JsonProperty("cart_items") JsonNullable> cartItems) { Utils.checkNotNull(amount, "amount"); Utils.checkNotNull(airline, "airline"); + Utils.checkNotNull(cartItems, "cartItems"); this.amount = amount; this.airline = airline; + this.cartItems = cartItems; } public TransactionCaptureCreate() { - this(JsonNullable.undefined(), JsonNullable.undefined()); + this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined()); } /** @@ -68,6 +79,15 @@ public JsonNullable airline() { return (JsonNullable) airline; } + /** + * An array of cart items that represents the line items of this capture. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> cartItems() { + return (JsonNullable>) cartItems; + } + public static Builder builder() { return new Builder(); } @@ -111,6 +131,24 @@ public TransactionCaptureCreate withAirline(JsonNullable airl return this; } + /** + * An array of cart items that represents the line items of this capture. + */ + public TransactionCaptureCreate withCartItems(List cartItems) { + Utils.checkNotNull(cartItems, "cartItems"); + this.cartItems = JsonNullable.of(cartItems); + return this; + } + + /** + * An array of cart items that represents the line items of this capture. + */ + public TransactionCaptureCreate withCartItems(JsonNullable> cartItems) { + Utils.checkNotNull(cartItems, "cartItems"); + this.cartItems = cartItems; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -122,20 +160,22 @@ public boolean equals(java.lang.Object o) { TransactionCaptureCreate other = (TransactionCaptureCreate) o; return Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.airline, other.airline); + Utils.enhancedDeepEquals(this.airline, other.airline) && + Utils.enhancedDeepEquals(this.cartItems, other.cartItems); } @Override public int hashCode() { return Utils.enhancedHash( - amount, airline); + amount, airline, cartItems); } @Override public String toString() { return Utils.toString(TransactionCaptureCreate.class, "amount", amount, - "airline", airline); + "airline", airline, + "cartItems", cartItems); } @SuppressWarnings("UnusedReturnValue") @@ -145,6 +185,8 @@ public final static class Builder { private JsonNullable airline = JsonNullable.undefined(); + private JsonNullable> cartItems = JsonNullable.undefined(); + private Builder() { // force use of static builder() method } @@ -189,10 +231,29 @@ public Builder airline(JsonNullable airline) { return this; } + + /** + * An array of cart items that represents the line items of this capture. + */ + public Builder cartItems(List cartItems) { + Utils.checkNotNull(cartItems, "cartItems"); + this.cartItems = JsonNullable.of(cartItems); + return this; + } + + /** + * An array of cart items that represents the line items of this capture. + */ + public Builder cartItems(JsonNullable> cartItems) { + Utils.checkNotNull(cartItems, "cartItems"); + this.cartItems = cartItems; + return this; + } + public TransactionCaptureCreate build() { return new TransactionCaptureCreate( - amount, airline); + amount, airline, cartItems); } }