Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: 5bbaa3a9-baa0-471b-ba6a-13fd88e8c119
management:
docChecksum: faccc22c75487a5bdf67f315e8b660ea
docChecksum: cac1ae0ead466991be937c1264350879
docVersion: 1.0.0
speakeasyVersion: 1.797.0
generationVersion: 2.937.18
releaseVersion: 2.19.11
configChecksum: a77c4b5166e5f6b9905ccb0f0b683574
releaseVersion: 2.19.12
configChecksum: 964d3bef9ed6c8b935c9674f80383b42
repoURL: https://github.com/gr4vy/gr4vy-java.git
installationURL: https://github.com/gr4vy/gr4vy-java
published: true
persistentEdits:
generation_id: 2f3ef9b9-087b-4843-9ef4-c5c5d65e2e3f
pristine_commit_hash: 48f2424418e67e3d9d89862c5b3623a039e52b16
pristine_tree_hash: 2ea367cc556e0bf927814a8453294b9af1f08908
generation_id: a9318e13-2869-4e07-b999-2b1ff90f9b29
pristine_commit_hash: 58e4779cfe3a9aba72da99ecf625f55fc471d150
pristine_tree_hash: b76433148ebc231b6bd5b298470225ffdfaaeac3
features:
java:
additionalDependencies: 0.1.0
Expand Down Expand Up @@ -267,8 +267,8 @@ trackedFiles:
pristine_git_object: f9797b3e6baa52543493c4d011bf577d1fb7d86d
docs/models/components/Capture.md:
id: 607298de4f0e
last_write_checksum: sha1:e002636ad0f27e5d2010c3c724e42daa5709d4bc
pristine_git_object: 22f44727cad560e8bb82837faf4bb948ca00bcb5
last_write_checksum: sha1:ae4e68f102ab6d3bfb235449f734bbb682c59125
pristine_git_object: 61dcb4ba38a912b29013e63975b3b6081bd1122a
docs/models/components/CaptureCollection.md:
id: 0e6b11d5d258
last_write_checksum: sha1:ac8fe522afd039686a3eb4daaa8b9b7791c32262
Expand Down Expand Up @@ -2879,8 +2879,8 @@ trackedFiles:
pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b
gradle.properties:
id: 2afbb999f001
last_write_checksum: sha1:e369d6cac5ddc2315aeb624ce6e2a841aea84d30
pristine_git_object: fee1f53098c8ee360641e7071bca92da7b92828f
last_write_checksum: sha1:dbb7dd5ac06ad888cff9594b22c594af2b591fda
pristine_git_object: 8df58812ace664ffcc997d63933ad483d18c51bd
gradle/wrapper/gradle-wrapper.jar:
id: ec27dae6e852
last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611
Expand Down Expand Up @@ -3223,8 +3223,8 @@ trackedFiles:
pristine_git_object: b50475cc7f6041d63c4569256e4ff1850b20d30b
src/main/java/com/gr4vy/sdk/SDKConfiguration.java:
id: 73a7edeaca45
last_write_checksum: sha1:8ee00c9fdeb6ec63c04ca73943daf8d95390e4d5
pristine_git_object: b613171ec22376301f98ee460ddee7ce79fc8a08
last_write_checksum: sha1:85049db789d2762bfae8375ac810da1e219f9fb6
pristine_git_object: fd03acd398f7e594e492436a6770d0941a4f87b2
src/main/java/com/gr4vy/sdk/SecuritySource.java:
id: 1b6add6b9b50
last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd
Expand Down Expand Up @@ -3475,8 +3475,8 @@ trackedFiles:
pristine_git_object: 4d3f07af303853024b4b4439267e26baecc44a35
src/main/java/com/gr4vy/sdk/models/components/Capture.java:
id: 28665079fbc1
last_write_checksum: sha1:5897843299c1eaf8bc097bb012ede298f24b65c1
pristine_git_object: 69852b619214bd39fa5ea7b8b9b963bab272b6d3
last_write_checksum: sha1:a8c40850dc3593e7f7b871cb352c1700f15d2959
pristine_git_object: 457cb2bddba02ab91da929eeb39bf28ce6857413
src/main/java/com/gr4vy/sdk/models/components/CaptureCollection.java:
id: 73e38a3efafb
last_write_checksum: sha1:943d2767f86c9a92a720f3021411f35bc14c94de
Expand Down Expand Up @@ -12475,7 +12475,10 @@ 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.connectionOptions.repayBank` **Added**\n* `gr4vy.transactions.update()`: \n * `request.transactionUpdate.connectionOptions.repayBank` **Added**\n* `gr4vy.paymentLinks.create()`: \n * `request.paymentLinkCreate.connectionOptions.repayBank` **Added**\n"
releaseNotes: |
## Java SDK Changes:
* `gr4vy.transactions.captures.list()`: `response.items[].tracking` **Added**
* `gr4vy.transactions.captures.get()`: `response.tracking` **Added**
generatedFiles:
- .gitattributes
- USAGE.md
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
java:
version: 2.19.11
version: 2.19.12
additionalDependencies:
- testImplementation:org.junit.jupiter:junit-jupiter:5.10.0
- implementation:com.auth0:java-jwt:4.5.0
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ sources:
- 1.0.0
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:3871c735f3d1f840ee278273afb80a0ffc4040f073ccf2d980a402b526b05b61
sourceBlobDigest: sha256:d4abe979a9983b9446045724f705b8df62683ceb35f3689ae0dd92e0e14bdda8
sourceRevisionDigest: sha256:f8acfd072b3c95414006251c677227e3590b3b695fa9cac46261f7939701d420
sourceBlobDigest: sha256:be22889d70beb201bfb36fcc722696bbbb4703fa080a252c87a1ad23ba01c85c
tags:
- latest
- 1.0.0
Expand All @@ -25,10 +25,10 @@ targets:
java:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:3871c735f3d1f840ee278273afb80a0ffc4040f073ccf2d980a402b526b05b61
sourceBlobDigest: sha256:d4abe979a9983b9446045724f705b8df62683ceb35f3689ae0dd92e0e14bdda8
sourceRevisionDigest: sha256:f8acfd072b3c95414006251c677227e3590b3b695fa9cac46261f7939701d420
sourceBlobDigest: sha256:be22889d70beb201bfb36fcc722696bbbb4703fa080a252c87a1ad23ba01c85c
codeSamplesNamespace: openapi-java-code-samples
codeSamplesRevisionDigest: sha256:4ae3a71a6e0f6f286c6d87cf7ada92831978a891c78ea8b7ffc5b37bfb74ea7e
codeSamplesRevisionDigest: sha256:09327b2c5aceeacbad7eea7604942440b7640e0f0a63a91b1f68cf9f541e7f90
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'com.gr4vy:sdk:2.19.11'
implementation 'com.gr4vy:sdk:2.19.12'
```

Maven:
```xml
<dependency>
<groupId>com.gr4vy</groupId>
<artifactId>sdk</artifactId>
<version>2.19.11</version>
<version>2.19.12</version>
</dependency>
```

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2278,4 +2278,14 @@ Based on:
### Generated
- [java v2.19.11] .
### Releases
- [Maven Central v2.19.11] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.19.11 - .
- [Maven Central v2.19.11] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.19.11 - .

## 2026-09-17 07:26:58
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.797.0 (2.937.18) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v2.19.12] .
### Releases
- [Maven Central v2.19.12] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.19.12 - .
3 changes: 2 additions & 1 deletion docs/models/components/Capture.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@
| `rawResponseCode` | *JsonNullable\<String>* | :heavy_minus_sign: | 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` | *JsonNullable\<String>* | :heavy_minus_sign: | 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 |
| `transactionExternalIdentifier` | *JsonNullable\<String>* | :heavy_minus_sign: | The external identifier of the associated transaction. | transaction-12345 |
| `cartItems` | List\<[CartItem](../../models/components/CartItem.md)> | :heavy_minus_sign: | An array of cart items that represents the line items of this capture. | |
| `cartItems` | List\<[CartItem](../../models/components/CartItem.md)> | :heavy_minus_sign: | An array of cart items that represents the line items of this capture. | |
| `tracking` | List\<[Tracking](../../models/components/Tracking.md)> | :heavy_minus_sign: | The shipment tracking details associated with the capture. | |
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
groupId=com.gr4vy
artifactId=sdk
version=2.19.11
version=2.19.12
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g
2 changes: 1 addition & 1 deletion src/main/java/com/gr4vy/sdk/SDKConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.19.11";
public static final String SDK_VERSION = "2.19.12";
public static final String GEN_VERSION = "2.937.18";
private static final String BASE_PACKAGE = "com.gr4vy.sdk";
public static final String USER_AGENT =
Expand Down
74 changes: 68 additions & 6 deletions src/main/java/com/gr4vy/sdk/models/components/Capture.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ public class Capture {
@JsonProperty("cart_items")
private JsonNullable<? extends List<CartItem>> cartItems;

/**
* The shipment tracking details associated with the capture.
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("tracking")
private JsonNullable<? extends List<Tracking>> tracking;

@JsonCreator
public Capture(
@JsonProperty("id") String id,
Expand All @@ -166,7 +173,8 @@ public Capture(
@JsonProperty("raw_response_code") JsonNullable<String> rawResponseCode,
@JsonProperty("raw_response_description") JsonNullable<String> rawResponseDescription,
@JsonProperty("transaction_external_identifier") JsonNullable<String> transactionExternalIdentifier,
@JsonProperty("cart_items") JsonNullable<? extends List<CartItem>> cartItems) {
@JsonProperty("cart_items") JsonNullable<? extends List<CartItem>> cartItems,
@JsonProperty("tracking") JsonNullable<? extends List<Tracking>> tracking) {
Utils.checkNotNull(id, "id");
Utils.checkNotNull(merchantAccountId, "merchantAccountId");
Utils.checkNotNull(transactionId, "transactionId");
Expand All @@ -185,6 +193,7 @@ public Capture(
Utils.checkNotNull(rawResponseDescription, "rawResponseDescription");
Utils.checkNotNull(transactionExternalIdentifier, "transactionExternalIdentifier");
Utils.checkNotNull(cartItems, "cartItems");
Utils.checkNotNull(tracking, "tracking");
this.type = Builder._SINGLETON_VALUE_Type.value();
this.id = id;
this.merchantAccountId = merchantAccountId;
Expand All @@ -204,6 +213,7 @@ public Capture(
this.rawResponseDescription = rawResponseDescription;
this.transactionExternalIdentifier = transactionExternalIdentifier;
this.cartItems = cartItems;
this.tracking = tracking;
}

public Capture(
Expand All @@ -221,7 +231,8 @@ public Capture(
status, final_, createdAt,
updatedAt, JsonNullable.undefined(), JsonNullable.undefined(),
JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined());
JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
JsonNullable.undefined());
}

/**
Expand Down Expand Up @@ -376,6 +387,15 @@ public JsonNullable<List<CartItem>> cartItems() {
return (JsonNullable<List<CartItem>>) cartItems;
}

/**
* The shipment tracking details associated with the capture.
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public JsonNullable<List<Tracking>> tracking() {
return (JsonNullable<List<Tracking>>) tracking;
}

public static Builder builder() {
return new Builder();
}
Expand Down Expand Up @@ -625,6 +645,24 @@ public Capture withCartItems(JsonNullable<? extends List<CartItem>> cartItems) {
return this;
}

/**
* The shipment tracking details associated with the capture.
*/
public Capture withTracking(List<Tracking> tracking) {
Utils.checkNotNull(tracking, "tracking");
this.tracking = JsonNullable.of(tracking);
return this;
}

/**
* The shipment tracking details associated with the capture.
*/
public Capture withTracking(JsonNullable<? extends List<Tracking>> tracking) {
Utils.checkNotNull(tracking, "tracking");
this.tracking = tracking;
return this;
}

@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
Expand Down Expand Up @@ -653,7 +691,8 @@ public boolean equals(java.lang.Object o) {
Utils.enhancedDeepEquals(this.rawResponseCode, other.rawResponseCode) &&
Utils.enhancedDeepEquals(this.rawResponseDescription, other.rawResponseDescription) &&
Utils.enhancedDeepEquals(this.transactionExternalIdentifier, other.transactionExternalIdentifier) &&
Utils.enhancedDeepEquals(this.cartItems, other.cartItems);
Utils.enhancedDeepEquals(this.cartItems, other.cartItems) &&
Utils.enhancedDeepEquals(this.tracking, other.tracking);
}

@Override
Expand All @@ -665,7 +704,7 @@ public int hashCode() {
createdAt, updatedAt, capturedAt,
externalIdentifier, errorCode, isoResponseCode,
rawResponseCode, rawResponseDescription, transactionExternalIdentifier,
cartItems);
cartItems, tracking);
}

@Override
Expand All @@ -689,7 +728,8 @@ public String toString() {
"rawResponseCode", rawResponseCode,
"rawResponseDescription", rawResponseDescription,
"transactionExternalIdentifier", transactionExternalIdentifier,
"cartItems", cartItems);
"cartItems", cartItems,
"tracking", tracking);
}

@SuppressWarnings("UnusedReturnValue")
Expand Down Expand Up @@ -731,6 +771,8 @@ public final static class Builder {

private JsonNullable<? extends List<CartItem>> cartItems = JsonNullable.undefined();

private JsonNullable<? extends List<Tracking>> tracking = JsonNullable.undefined();

private Builder() {
// force use of static builder() method
}
Expand Down Expand Up @@ -997,6 +1039,25 @@ public Builder cartItems(JsonNullable<? extends List<CartItem>> cartItems) {
return this;
}


/**
* The shipment tracking details associated with the capture.
*/
public Builder tracking(List<Tracking> tracking) {
Utils.checkNotNull(tracking, "tracking");
this.tracking = JsonNullable.of(tracking);
return this;
}

/**
* The shipment tracking details associated with the capture.
*/
public Builder tracking(JsonNullable<? extends List<Tracking>> tracking) {
Utils.checkNotNull(tracking, "tracking");
this.tracking = tracking;
return this;
}

public Capture build() {

return new Capture(
Expand All @@ -1005,7 +1066,8 @@ public Capture build() {
status, final_, createdAt,
updatedAt, capturedAt, externalIdentifier,
errorCode, isoResponseCode, rawResponseCode,
rawResponseDescription, transactionExternalIdentifier, cartItems);
rawResponseDescription, transactionExternalIdentifier, cartItems,
tracking);
}


Expand Down
Loading