diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f50a3611..7810e57b 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: 4eed672eb0ed6a08675378b8442fca4d + docChecksum: 0e0b183f1efd906b734066b8b01042fe docVersion: 1.0.0 speakeasyVersion: 1.788.1 generationVersion: 2.915.1 - releaseVersion: 2.16.102 - configChecksum: 9cd03907f36f92b02b1078383f5e6aae + releaseVersion: 2.16.103 + configChecksum: cab0d12e72dd1afa83446d33cda94836 repoURL: https://github.com/gr4vy/gr4vy-java.git installationURL: https://github.com/gr4vy/gr4vy-java published: true persistentEdits: - generation_id: ea1f096c-71fc-4bf7-8c4b-18e29733b42e - pristine_commit_hash: 64dfc3d12662b3b05f6e75b9642e650ba83af4ec - pristine_tree_hash: 8aedccee9699f1b78d4ac1169e03f8e2560dc4d6 + generation_id: 868c4249-15be-479d-94cc-257617e10b61 + pristine_commit_hash: 059f9954ef0685303b00be1f3a957cea542d0ed1 + pristine_tree_hash: b9971ccbb1ad8bcd031733b3c274ec9665100d4b features: java: additionalDependencies: 0.1.0 @@ -1454,8 +1454,8 @@ trackedFiles: pristine_git_object: cd404ec57eefedfdf687e86ce73018f4ab6aac65 docs/models/components/TransactionCaptureCreate.md: id: fa6f6819cb5d - last_write_checksum: sha1:d8f3faae5dc8fc9b30e55b2c1b1f4de5e1313da8 - pristine_git_object: 88c18168afe094c99f53b85d5b2b1200c95c8b6c + last_write_checksum: sha1:6832a9759c81e711160a359d6fa0507efaf18f75 + pristine_git_object: c388405d035a7a75986010ab970090ff6aab2600 docs/models/components/TransactionConnectionOptions.md: id: 2a90ee52a662 last_write_checksum: sha1:d15378cf9c4f0db3545bc16bfbf97d1f928c90d9 @@ -2734,8 +2734,8 @@ trackedFiles: pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:500a3a959ccc352cdd7e882a089aa0d7bbabd73b - pristine_git_object: 29be94aae7367fb5f09a83294fd0de8c76bc7fb4 + last_write_checksum: sha1:4c01924f8e4ecfee28aef0d3869ab18d8f34e65f + pristine_git_object: f197e39a083cf64898e3e09ee4cbbc5c135e04eb 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:816b192a7774200656a848228aa5434c3ba71547 - pristine_git_object: 86ad435c622913d693831308d86e32bf2532aa76 + last_write_checksum: sha1:9018a1388dd8ae212c2b9eeeb550b3cd8d002470 + pristine_git_object: cd0f1783b99e931275ca57fd54537afda1adbb60 src/main/java/com/gr4vy/sdk/SecuritySource.java: id: 1b6add6b9b50 last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd @@ -4490,8 +4490,8 @@ trackedFiles: pristine_git_object: 31272b3ded6534eec2925fdb8e87baabc8cbb57f src/main/java/com/gr4vy/sdk/models/components/TransactionCaptureCreate.java: id: ed5d05b51a07 - last_write_checksum: sha1:f4fda3d0c7935856161c7e1de4aad4fe0f93e666 - pristine_git_object: 796e297c14cde1fe632fbedd9728d9c209f3f506 + last_write_checksum: sha1:4c2e1904cd86ff9afef4c007dd4d8a5dc91091fa + pristine_git_object: 3cbc02fca6c90fc4c0783b11777e4f29b2486b2a src/main/java/com/gr4vy/sdk/models/components/TransactionConnectionOptions.java: id: 31501e4506f3 last_write_checksum: sha1:b7b456f206682ea90d402d7ae540e520984b5fae @@ -11880,24 +11880,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.apiKeyPairs.list()`: **Added** - * `gr4vy.apiKeyPairs.create()`: **Added** - * `gr4vy.apiKeyPairs.get()`: **Added** - * `gr4vy.apiKeyPairs.update()`: **Added** - * `gr4vy.apiKeyPairs.delete()`: **Added** - * `gr4vy.giftCards.get()`: `response.giftCardService.giftCardServiceDefinitionId.enum(valuelinkGiftCard)` **Added** - * `gr4vy.giftCards.create()`: `response.giftCardService.giftCardServiceDefinitionId.enum(valuelinkGiftCard)` **Added** - * `gr4vy.giftCards.list()`: `response.items[].giftCardService.giftCardServiceDefinitionId.enum(valuelinkGiftCard)` **Added** - * `gr4vy.transactions.list()`: `response.items[].giftCardService.giftCardServiceDefinitionId.enum(valuelinkGiftCard)` **Added** - * `gr4vy.transactions.create()`: `response.giftCardService.giftCardServiceDefinitionId.enum(valuelinkGiftCard)` **Added** - * `gr4vy.transactions.get()`: `response.giftCardService.giftCardServiceDefinitionId.enum(valuelinkGiftCard)` **Added** - * `gr4vy.transactions.update()`: `response.giftCardService.giftCardServiceDefinitionId.enum(valuelinkGiftCard)` **Added** - * `gr4vy.transactions.capture()`: `response.union(Transaction).giftCardService.giftCardServiceDefinitionId.enum(valuelinkGiftCard)` **Added** - * `gr4vy.transactions.void()`: `response.union(Transaction).giftCardService.giftCardServiceDefinitionId.enum(valuelinkGiftCard)` **Added** - * `gr4vy.transactions.cancel()`: `response.transaction.giftCardService.giftCardServiceDefinitionId.enum(valuelinkGiftCard)` **Added** - * `gr4vy.transactions.sync()`: `response.giftCardService.giftCardServiceDefinitionId.enum(valuelinkGiftCard)` **Added** +releaseNotes: "## Java SDK Changes:\n* `gr4vy.transactions.capture()`: \n * `request.transactionCaptureCreate.reauthorizeIfAuthorizationExpired` **Added**\n" generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 0bf4885d..c291a79a 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -30,7 +30,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 2.16.102 + version: 2.16.103 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 e0470d33..b48034b8 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -9,8 +9,8 @@ sources: - 1.0.0 openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:d1f0d41c6b25a44292c36fa37eac17cadce97e7a3ffcbf709bf12da3065b5e95 - sourceBlobDigest: sha256:ce44e2167bcd6e2848ac5ce50d449f09608f2e4936fbca2c504367bc758e2901 + sourceRevisionDigest: sha256:76f04926682264ec529f527288bfa0a0b908e640c6da5524bf3ba2f164f22568 + sourceBlobDigest: sha256:2eb73547472115527d1ae464dc8bf23adf4057a86b796839751f8dbfe8626ab6 tags: - latest - 1.0.0 @@ -25,10 +25,10 @@ targets: java: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:d1f0d41c6b25a44292c36fa37eac17cadce97e7a3ffcbf709bf12da3065b5e95 - sourceBlobDigest: sha256:ce44e2167bcd6e2848ac5ce50d449f09608f2e4936fbca2c504367bc758e2901 + sourceRevisionDigest: sha256:76f04926682264ec529f527288bfa0a0b908e640c6da5524bf3ba2f164f22568 + sourceBlobDigest: sha256:2eb73547472115527d1ae464dc8bf23adf4057a86b796839751f8dbfe8626ab6 codeSamplesNamespace: openapi-java-code-samples - codeSamplesRevisionDigest: sha256:bb97093d1863234fc5de24472f1533c536a45943e705941fc979e3ca95b339ff + codeSamplesRevisionDigest: sha256:b5b1f1b4b86ef49a7f0f6cfaa455188953e45ea8c88cfdef4a82045333b2d49c workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index af6310e1..7c980f8c 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.102' +implementation 'com.gr4vy:sdk:2.16.103' ``` Maven: @@ -67,7 +67,7 @@ Maven: com.gr4vy sdk - 2.16.102 + 2.16.103 ``` diff --git a/RELEASES.md b/RELEASES.md index d0215e2d..2357925b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1858,4 +1858,14 @@ Based on: ### Generated - [java v2.16.102] . ### Releases -- [Maven Central v2.16.102] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.102 - . \ No newline at end of file +- [Maven Central v2.16.102] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.102 - . + +## 2026-07-06 10:58:40 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.788.1 (2.915.1) https://github.com/speakeasy-api/speakeasy +### 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 diff --git a/docs/models/components/TransactionCaptureCreate.md b/docs/models/components/TransactionCaptureCreate.md index 88c18168..c388405d 100644 --- a/docs/models/components/TransactionCaptureCreate.md +++ b/docs/models/components/TransactionCaptureCreate.md @@ -11,4 +11,5 @@ Request body for capturing an authorized transaction. | `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. | | | `final_` | *Optional\* | :heavy_minus_sign: | Whether this is marked as the final capture for the associated transaction. Must be `true` or omitted when multi-capture is not enabled; a value of `false` is only valid when multi-capture is available on the connection. | true | -| `externalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | An external identifier that can be used to match the capture against your own records. | capture-12345 | \ No newline at end of file +| `externalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | An external identifier that can be used to match the capture against your own records. | capture-12345 | +| `reauthorizeIfAuthorizationExpired` | *JsonNullable\* | :heavy_minus_sign: | Whether this capture request should re-authorize the transaction if it has expired. | **Example 1:** true
**Example 2:** false | \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 29be94aa..f197e39a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.gr4vy artifactId=sdk -version=2.16.102 +version=2.16.103 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 86ad435c..cd0f1783 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.102"; + public static final String SDK_VERSION = "2.16.103"; public static final String GEN_VERSION = "2.915.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/TransactionCaptureCreate.java b/src/main/java/com/gr4vy/sdk/models/components/TransactionCaptureCreate.java index 796e297c..3cbc02fc 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/TransactionCaptureCreate.java +++ b/src/main/java/com/gr4vy/sdk/models/components/TransactionCaptureCreate.java @@ -64,28 +64,38 @@ public class TransactionCaptureCreate { @JsonProperty("external_identifier") private JsonNullable externalIdentifier; + /** + * Whether this capture request should re-authorize the transaction if it has expired. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("reauthorize_if_authorization_expired") + private JsonNullable reauthorizeIfAuthorizationExpired; + @JsonCreator public TransactionCaptureCreate( @JsonProperty("amount") JsonNullable amount, @JsonProperty("airline") JsonNullable airline, @JsonProperty("cart_items") JsonNullable> cartItems, @JsonProperty("final") Optional final_, - @JsonProperty("external_identifier") JsonNullable externalIdentifier) { + @JsonProperty("external_identifier") JsonNullable externalIdentifier, + @JsonProperty("reauthorize_if_authorization_expired") JsonNullable reauthorizeIfAuthorizationExpired) { Utils.checkNotNull(amount, "amount"); Utils.checkNotNull(airline, "airline"); Utils.checkNotNull(cartItems, "cartItems"); Utils.checkNotNull(final_, "final_"); Utils.checkNotNull(externalIdentifier, "externalIdentifier"); + Utils.checkNotNull(reauthorizeIfAuthorizationExpired, "reauthorizeIfAuthorizationExpired"); this.amount = amount; this.airline = airline; this.cartItems = cartItems; this.final_ = final_; this.externalIdentifier = externalIdentifier; + this.reauthorizeIfAuthorizationExpired = reauthorizeIfAuthorizationExpired; } public TransactionCaptureCreate() { this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - Optional.empty(), JsonNullable.undefined()); + Optional.empty(), JsonNullable.undefined(), JsonNullable.undefined()); } /** @@ -133,6 +143,14 @@ public JsonNullable externalIdentifier() { return externalIdentifier; } + /** + * Whether this capture request should re-authorize the transaction if it has expired. + */ + @JsonIgnore + public JsonNullable reauthorizeIfAuthorizationExpired() { + return reauthorizeIfAuthorizationExpired; + } + public static Builder builder() { return new Builder(); } @@ -235,6 +253,24 @@ public TransactionCaptureCreate withExternalIdentifier(JsonNullable exte return this; } + /** + * Whether this capture request should re-authorize the transaction if it has expired. + */ + public TransactionCaptureCreate withReauthorizeIfAuthorizationExpired(boolean reauthorizeIfAuthorizationExpired) { + Utils.checkNotNull(reauthorizeIfAuthorizationExpired, "reauthorizeIfAuthorizationExpired"); + this.reauthorizeIfAuthorizationExpired = JsonNullable.of(reauthorizeIfAuthorizationExpired); + return this; + } + + /** + * Whether this capture request should re-authorize the transaction if it has expired. + */ + public TransactionCaptureCreate withReauthorizeIfAuthorizationExpired(JsonNullable reauthorizeIfAuthorizationExpired) { + Utils.checkNotNull(reauthorizeIfAuthorizationExpired, "reauthorizeIfAuthorizationExpired"); + this.reauthorizeIfAuthorizationExpired = reauthorizeIfAuthorizationExpired; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -249,14 +285,15 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.airline, other.airline) && Utils.enhancedDeepEquals(this.cartItems, other.cartItems) && Utils.enhancedDeepEquals(this.final_, other.final_) && - Utils.enhancedDeepEquals(this.externalIdentifier, other.externalIdentifier); + Utils.enhancedDeepEquals(this.externalIdentifier, other.externalIdentifier) && + Utils.enhancedDeepEquals(this.reauthorizeIfAuthorizationExpired, other.reauthorizeIfAuthorizationExpired); } @Override public int hashCode() { return Utils.enhancedHash( amount, airline, cartItems, - final_, externalIdentifier); + final_, externalIdentifier, reauthorizeIfAuthorizationExpired); } @Override @@ -266,7 +303,8 @@ public String toString() { "airline", airline, "cartItems", cartItems, "final_", final_, - "externalIdentifier", externalIdentifier); + "externalIdentifier", externalIdentifier, + "reauthorizeIfAuthorizationExpired", reauthorizeIfAuthorizationExpired); } @SuppressWarnings("UnusedReturnValue") @@ -282,6 +320,8 @@ public final static class Builder { private JsonNullable externalIdentifier = JsonNullable.undefined(); + private JsonNullable reauthorizeIfAuthorizationExpired = JsonNullable.undefined(); + private Builder() { // force use of static builder() method } @@ -387,6 +427,25 @@ public Builder externalIdentifier(JsonNullable externalIdentifier) { return this; } + + /** + * Whether this capture request should re-authorize the transaction if it has expired. + */ + public Builder reauthorizeIfAuthorizationExpired(boolean reauthorizeIfAuthorizationExpired) { + Utils.checkNotNull(reauthorizeIfAuthorizationExpired, "reauthorizeIfAuthorizationExpired"); + this.reauthorizeIfAuthorizationExpired = JsonNullable.of(reauthorizeIfAuthorizationExpired); + return this; + } + + /** + * Whether this capture request should re-authorize the transaction if it has expired. + */ + public Builder reauthorizeIfAuthorizationExpired(JsonNullable reauthorizeIfAuthorizationExpired) { + Utils.checkNotNull(reauthorizeIfAuthorizationExpired, "reauthorizeIfAuthorizationExpired"); + this.reauthorizeIfAuthorizationExpired = reauthorizeIfAuthorizationExpired; + return this; + } + public TransactionCaptureCreate build() { if (final_ == null) { final_ = _SINGLETON_VALUE_Final.value(); @@ -394,7 +453,7 @@ public TransactionCaptureCreate build() { return new TransactionCaptureCreate( amount, airline, cartItems, - final_, externalIdentifier); + final_, externalIdentifier, reauthorizeIfAuthorizationExpired); }