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
32 changes: 17 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: d1c97500b30e45177a1d800b48bc8aac
docChecksum: 816149e22f33cfc8c2e99554892f1b89
docVersion: 1.0.0
speakeasyVersion: 1.797.0
generationVersion: 2.937.18
releaseVersion: 2.19.9
configChecksum: 5476e4544254fee4c118c497e2bd76b8
releaseVersion: 2.19.10
configChecksum: 6988623de62db297119c2d6306eaf6d0
repoURL: https://github.com/gr4vy/gr4vy-java.git
installationURL: https://github.com/gr4vy/gr4vy-java
published: true
persistentEdits:
generation_id: 0f327cbe-c319-42e4-adf4-ae1ab6c06f6c
pristine_commit_hash: 5d5be6a223f9ad208b980aa1aa391e2889fd580e
pristine_tree_hash: 2cbea099f20e88f28a306e7ab3b4b4181b92b83d
generation_id: bab673f4-65f0-4d3d-897f-7a9b6b4a0e23
pristine_commit_hash: 5ad089ae80cd4164953c5ee3081631e4d01812af
pristine_tree_hash: edf83e87464fc2665040e782c29cc3c65e7b8506
features:
java:
additionalDependencies: 0.1.0
Expand Down Expand Up @@ -1515,8 +1515,8 @@ trackedFiles:
pristine_git_object: 5afce2a8c2f41bfcd16d9ed8127ae5941aeebaad
docs/models/components/TransactionCapture.md:
id: d1b2e22cc0fd
last_write_checksum: sha1:773a8e3af18a24ad4266096eb8b57c9a8bb03368
pristine_git_object: 103165f9ab976350b28b45b43d928114ace6ce40
last_write_checksum: sha1:a759a2bb796764397ea35c435d29aca7583ebf08
pristine_git_object: b53eed7e93200c5ec2f4795be66098869c156d25
docs/models/components/TransactionCaptureCreate.md:
id: fa6f6819cb5d
last_write_checksum: sha1:2073205f8b9f4da78cbeec16014e779f3e5503dd
Expand Down Expand Up @@ -2871,8 +2871,8 @@ trackedFiles:
pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b
gradle.properties:
id: 2afbb999f001
last_write_checksum: sha1:cc68fd3d5e8b25111e318969fa9332f6ef090b75
pristine_git_object: e5b31e40b7772be78ca83ab2f04da822d20a3e37
last_write_checksum: sha1:e6accf528ab38c4f6c8156ae1c70d0a28e285399
pristine_git_object: d8f6204373d7fd5b8f1e087649a21a8359284e3c
gradle/wrapper/gradle-wrapper.jar:
id: ec27dae6e852
last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611
Expand Down Expand Up @@ -3215,8 +3215,8 @@ trackedFiles:
pristine_git_object: b50475cc7f6041d63c4569256e4ff1850b20d30b
src/main/java/com/gr4vy/sdk/SDKConfiguration.java:
id: 73a7edeaca45
last_write_checksum: sha1:c6120390dae998f5834f0b39180791a6f220fde0
pristine_git_object: e430ac787b6f35326aabea7481049e3ac3da239e
last_write_checksum: sha1:089cef876f96474d63ff5fc079178a585cf2d28d
pristine_git_object: fe4d67465b5c6152a3f89a1f80520b8e49cacc35
src/main/java/com/gr4vy/sdk/SecuritySource.java:
id: 1b6add6b9b50
last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd
Expand Down Expand Up @@ -4719,8 +4719,8 @@ trackedFiles:
pristine_git_object: c4e2e7ef83de294b37ff47fdcf3f8f326b871351
src/main/java/com/gr4vy/sdk/models/components/TransactionCapture.java:
id: 9cd3562a3fa1
last_write_checksum: sha1:bf4a7ac2edbe3f240c7d3022d74bf21d0b9f5fa5
pristine_git_object: 1199d52513a1e9b1a5acee53d35535f81d4590d6
last_write_checksum: sha1:6258549925b4a35ff671ef6382002e12de11ab35
pristine_git_object: 8eebc23158a7f820c79c94068583ea6d361dae79
src/main/java/com/gr4vy/sdk/models/components/TransactionCaptureCreate.java:
id: ed5d05b51a07
last_write_checksum: sha1:436c47c4b4055a0987ba5b42e634efbac24c2908
Expand Down Expand Up @@ -12459,7 +12459,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.tracking` **Added**\n"
releaseNotes: |
## Java SDK Changes:
* `gr4vy.transactions.capture()`: `response.union(TransactionCapture).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.9
version: 2.19.10
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:f0778b9a94e94250530b1b5c90892d2b297612517548c6db8f634d8d982821c3
sourceBlobDigest: sha256:b6022cde1e5a5d1314572a303bc8767fa826cbd20e8ca8343a0f50985aa02e53
sourceRevisionDigest: sha256:d011c48e6d8c223b6e4a2d98a5c1038473946c744d21cc88c3e57d9b68d337ee
sourceBlobDigest: sha256:14f6aaa30bd40ca3373f30748d0d796fde49748273ca7f4ed9f4c21fe9d9e3dd
tags:
- latest
- 1.0.0
Expand All @@ -25,10 +25,10 @@ targets:
java:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:f0778b9a94e94250530b1b5c90892d2b297612517548c6db8f634d8d982821c3
sourceBlobDigest: sha256:b6022cde1e5a5d1314572a303bc8767fa826cbd20e8ca8343a0f50985aa02e53
sourceRevisionDigest: sha256:d011c48e6d8c223b6e4a2d98a5c1038473946c744d21cc88c3e57d9b68d337ee
sourceBlobDigest: sha256:14f6aaa30bd40ca3373f30748d0d796fde49748273ca7f4ed9f4c21fe9d9e3dd
codeSamplesNamespace: openapi-java-code-samples
codeSamplesRevisionDigest: sha256:046e3be73cd8a4bb1ecef1e8c1f6fb88635cbbd9bff6a21a65e1858ce8e2dfd2
codeSamplesRevisionDigest: sha256:73468d03d2640d596eacdfeb789a70bc4c44fdf5c202f4e50fff5d88818cdaf2
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.9'
implementation 'com.gr4vy:sdk:2.19.10'
```

Maven:
```xml
<dependency>
<groupId>com.gr4vy</groupId>
<artifactId>sdk</artifactId>
<version>2.19.9</version>
<version>2.19.10</version>
</dependency>
```

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

## 2026-09-15 12:53:51
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.797.0 (2.937.18) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v2.19.10] .
### Releases
- [Maven Central v2.19.10] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.19.10 - .
3 changes: 2 additions & 1 deletion docs/models/components/TransactionCapture.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
| `paymentServiceCaptureId` | *JsonNullable\<String>* | :heavy_minus_sign: | The payment service's unique ID for the capture. | capture-12345 |
| `externalIdentifier` | *JsonNullable\<String>* | :heavy_minus_sign: | The external identifier for the capture. | capture-12345 |
| `billingDetails` | [JsonNullable\<BillingDetails>](../../models/components/BillingDetails.md) | :heavy_minus_sign: | The billing details associated with the capture. | |
| `shippingDetails` | [JsonNullable\<ShippingDetails>](../../models/components/ShippingDetails.md) | :heavy_minus_sign: | The shipping details associated with the catpure. | |
| `shippingDetails` | [JsonNullable\<ShippingDetails>](../../models/components/ShippingDetails.md) | :heavy_minus_sign: | The shipping details associated with the catpure. | |
| `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.9
version=2.19.10
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.9";
public static final String SDK_VERSION = "2.19.10";
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
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.List;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;

Expand Down Expand Up @@ -94,6 +95,13 @@ public class TransactionCapture {
@JsonProperty("shipping_details")
private JsonNullable<? extends ShippingDetails> shippingDetails;

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

@JsonCreator
public TransactionCapture(
@JsonProperty("status") CaptureStatus status,
Expand All @@ -105,7 +113,8 @@ public TransactionCapture(
@JsonProperty("payment_service_capture_id") JsonNullable<String> paymentServiceCaptureId,
@JsonProperty("external_identifier") JsonNullable<String> externalIdentifier,
@JsonProperty("billing_details") JsonNullable<? extends BillingDetails> billingDetails,
@JsonProperty("shipping_details") JsonNullable<? extends ShippingDetails> shippingDetails) {
@JsonProperty("shipping_details") JsonNullable<? extends ShippingDetails> shippingDetails,
@JsonProperty("tracking") JsonNullable<? extends List<Tracking>> tracking) {
Utils.checkNotNull(status, "status");
Utils.checkNotNull(code, "code");
Utils.checkNotNull(rawResponseCode, "rawResponseCode");
Expand All @@ -116,6 +125,7 @@ public TransactionCapture(
Utils.checkNotNull(externalIdentifier, "externalIdentifier");
Utils.checkNotNull(billingDetails, "billingDetails");
Utils.checkNotNull(shippingDetails, "shippingDetails");
Utils.checkNotNull(tracking, "tracking");
this.type = Builder._SINGLETON_VALUE_Type.value();
this.status = status;
this.code = code;
Expand All @@ -127,6 +137,7 @@ public TransactionCapture(
this.externalIdentifier = externalIdentifier;
this.billingDetails = billingDetails;
this.shippingDetails = shippingDetails;
this.tracking = tracking;
}

public TransactionCapture(
Expand All @@ -135,7 +146,7 @@ public TransactionCapture(
this(status, Optional.empty(), Optional.empty(),
Optional.empty(), transaction, JsonNullable.undefined(),
JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
JsonNullable.undefined());
JsonNullable.undefined(), JsonNullable.undefined());
}

/**
Expand Down Expand Up @@ -227,6 +238,15 @@ public JsonNullable<ShippingDetails> shippingDetails() {
return (JsonNullable<ShippingDetails>) shippingDetails;
}

/**
* 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 @@ -398,6 +418,24 @@ public TransactionCapture withShippingDetails(JsonNullable<? extends ShippingDet
return this;
}

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

/**
* The shipment tracking details associated with the capture.
*/
public TransactionCapture 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 All @@ -418,7 +456,8 @@ public boolean equals(java.lang.Object o) {
Utils.enhancedDeepEquals(this.paymentServiceCaptureId, other.paymentServiceCaptureId) &&
Utils.enhancedDeepEquals(this.externalIdentifier, other.externalIdentifier) &&
Utils.enhancedDeepEquals(this.billingDetails, other.billingDetails) &&
Utils.enhancedDeepEquals(this.shippingDetails, other.shippingDetails);
Utils.enhancedDeepEquals(this.shippingDetails, other.shippingDetails) &&
Utils.enhancedDeepEquals(this.tracking, other.tracking);
}

@Override
Expand All @@ -427,7 +466,7 @@ public int hashCode() {
type, status, code,
rawResponseCode, rawResponseDescription, transaction,
captureId, paymentServiceCaptureId, externalIdentifier,
billingDetails, shippingDetails);
billingDetails, shippingDetails, tracking);
}

@Override
Expand All @@ -443,7 +482,8 @@ public String toString() {
"paymentServiceCaptureId", paymentServiceCaptureId,
"externalIdentifier", externalIdentifier,
"billingDetails", billingDetails,
"shippingDetails", shippingDetails);
"shippingDetails", shippingDetails,
"tracking", tracking);
}

@SuppressWarnings("UnusedReturnValue")
Expand All @@ -469,6 +509,8 @@ public final static class Builder {

private JsonNullable<? extends ShippingDetails> shippingDetails = JsonNullable.undefined();

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

private Builder() {
// force use of static builder() method
}
Expand Down Expand Up @@ -646,13 +688,32 @@ public Builder shippingDetails(JsonNullable<? extends ShippingDetails> shippingD
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 TransactionCapture build() {

return new TransactionCapture(
status, code, rawResponseCode,
rawResponseDescription, transaction, captureId,
paymentServiceCaptureId, externalIdentifier, billingDetails,
shippingDetails);
shippingDetails, tracking);
}


Expand Down
Loading