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
39 changes: 18 additions & 21 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
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.16.74
version: 2.16.75
additionalDependencies:
- testImplementation:org.junit.jupiter:junit-jupiter:5.10.0
- implementation:com.auth0:java-jwt:4.5.0
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.766.0
speakeasyVersion: 1.767.0
sources:
Gr4vy:
sourceNamespace: openapi
Expand All @@ -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
Expand All @@ -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
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.16.74'
implementation 'com.gr4vy:sdk:2.16.75'
```

Maven:
```xml
<dependency>
<groupId>com.gr4vy</groupId>
<artifactId>sdk</artifactId>
<version>2.16.74</version>
<version>2.16.75</version>
</dependency>
```

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - .
- [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 - .
3 changes: 2 additions & 1 deletion docs/models/components/TransactionCaptureCreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ Request body for capturing an authorized transaction.
| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `amount` | *JsonNullable\<Long>* | :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\<Airline>](../../models/components/Airline.md) | :heavy_minus_sign: | The airline data to submit to the payment service during the capture call. | |
| `airline` | [JsonNullable\<Airline>](../../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. | |
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.16.74
version=2.16.75
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g
4 changes: 2 additions & 2 deletions src/main/java/com/gr4vy/sdk/SDKConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand All @@ -36,18 +37,28 @@ public class TransactionCaptureCreate {
@JsonProperty("airline")
private JsonNullable<? extends Airline> airline;

/**
* An array of cart items that represents the line items of this capture.
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("cart_items")
private JsonNullable<? extends List<CartItem>> cartItems;

@JsonCreator
public TransactionCaptureCreate(
@JsonProperty("amount") JsonNullable<Long> amount,
@JsonProperty("airline") JsonNullable<? extends Airline> airline) {
@JsonProperty("airline") JsonNullable<? extends Airline> airline,
@JsonProperty("cart_items") JsonNullable<? extends List<CartItem>> 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());
}

/**
Expand All @@ -68,6 +79,15 @@ public JsonNullable<Airline> airline() {
return (JsonNullable<Airline>) airline;
}

/**
* An array of cart items that represents the line items of this capture.
*/
@SuppressWarnings("unchecked")
@JsonIgnore
public JsonNullable<List<CartItem>> cartItems() {
return (JsonNullable<List<CartItem>>) cartItems;
}

public static Builder builder() {
return new Builder();
}
Expand Down Expand Up @@ -111,6 +131,24 @@ public TransactionCaptureCreate withAirline(JsonNullable<? extends Airline> airl
return this;
}

/**
* An array of cart items that represents the line items of this capture.
*/
public TransactionCaptureCreate withCartItems(List<CartItem> 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<? extends List<CartItem>> cartItems) {
Utils.checkNotNull(cartItems, "cartItems");
this.cartItems = cartItems;
return this;
}

@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
Expand All @@ -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")
Expand All @@ -145,6 +185,8 @@ public final static class Builder {

private JsonNullable<? extends Airline> airline = JsonNullable.undefined();

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

private Builder() {
// force use of static builder() method
}
Expand Down Expand Up @@ -189,10 +231,29 @@ public Builder airline(JsonNullable<? extends Airline> airline) {
return this;
}


/**
* An array of cart items that represents the line items of this capture.
*/
public Builder cartItems(List<CartItem> 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<? extends List<CartItem>> cartItems) {
Utils.checkNotNull(cartItems, "cartItems");
this.cartItems = cartItems;
return this;
}

public TransactionCaptureCreate build() {

return new TransactionCaptureCreate(
amount, airline);
amount, airline, cartItems);
}

}
Expand Down
Loading