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
482 changes: 444 additions & 38 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

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.101
version: 2.16.102
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.787.0
speakeasyVersion: 1.788.1
sources:
Gr4vy:
sourceNamespace: openapi
Expand All @@ -9,8 +9,8 @@ sources:
- 1.0.0
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:989cfd6e142efb191c2a3d9402df111d08d903985b70f13a458e0948f0143045
sourceBlobDigest: sha256:8880bb8b9b1656951edbe7cd41e9c52238f4908fb6f057d0cf09c846d769f12a
sourceRevisionDigest: sha256:d1f0d41c6b25a44292c36fa37eac17cadce97e7a3ffcbf709bf12da3065b5e95
sourceBlobDigest: sha256:ce44e2167bcd6e2848ac5ce50d449f09608f2e4936fbca2c504367bc758e2901
tags:
- latest
- 1.0.0
Expand All @@ -25,10 +25,10 @@ targets:
java:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:989cfd6e142efb191c2a3d9402df111d08d903985b70f13a458e0948f0143045
sourceBlobDigest: sha256:8880bb8b9b1656951edbe7cd41e9c52238f4908fb6f057d0cf09c846d769f12a
sourceRevisionDigest: sha256:d1f0d41c6b25a44292c36fa37eac17cadce97e7a3ffcbf709bf12da3065b5e95
sourceBlobDigest: sha256:ce44e2167bcd6e2848ac5ce50d449f09608f2e4936fbca2c504367bc758e2901
codeSamplesNamespace: openapi-java-code-samples
codeSamplesRevisionDigest: sha256:fb97e0500f664d60b5fd57b42393d67b17fcd1ad3e12b0bb72f964aa4b9c0ae9
codeSamplesRevisionDigest: sha256:bb97093d1863234fc5de24472f1533c536a45943e705941fc979e3ca95b339ff
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
76 changes: 28 additions & 48 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.101'
implementation 'com.gr4vy:sdk:2.16.102'
```

Maven:
```xml
<dependency>
<groupId>com.gr4vy</groupId>
<artifactId>sdk</artifactId>
<version>2.16.101</version>
<version>2.16.102</version>
</dependency>
```

Expand Down Expand Up @@ -334,6 +334,14 @@ Async support is available for:

* [create](docs/sdks/jobs/README.md#create) - Create account updater job

### [ApiKeyPairs](docs/sdks/apikeypairs/README.md)

* [list](docs/sdks/apikeypairs/README.md#list) - List all API key pairs
* [create](docs/sdks/apikeypairs/README.md#create) - Create an API key pair
* [get](docs/sdks/apikeypairs/README.md#get) - Get an API key pair
* [update](docs/sdks/apikeypairs/README.md#update) - Update an API key pair
* [delete](docs/sdks/apikeypairs/README.md#delete) - Delete an API key pair

### [AuditLogs](docs/sdks/auditlogs/README.md)

* [list](docs/sdks/auditlogs/README.md#list) - List audit log entries
Expand Down Expand Up @@ -563,8 +571,7 @@ package hello.world;

import com.gr4vy.sdk.Gr4vy;
import com.gr4vy.sdk.models.errors.*;
import com.gr4vy.sdk.models.operations.ListBuyersRequest;
import com.gr4vy.sdk.models.operations.ListBuyersResponse;
import com.gr4vy.sdk.models.operations.ListApiKeyPairsResponse;
import java.lang.Exception;
import java.lang.Iterable;

Expand All @@ -573,23 +580,17 @@ public class Application {
public static void main(String[] args) throws Exception {

Gr4vy sdk = Gr4vy.builder()
.merchantAccountId("default")
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
.build();

ListBuyersRequest req = ListBuyersRequest.builder()
.cursor("ZXhhbXBsZTE")
.search("John")
.externalIdentifier("buyer-12345")
.build();


var b = sdk.buyers().list();
var b = sdk.apiKeyPairs().list()
.limit(20L);

// Iterate through all pages using a traditional for-each loop
// Each iteration returns a complete page response
Iterable<ListBuyersResponse> iterable = b.callAsIterable();
for (ListBuyersResponse page : iterable) {
Iterable<ListApiKeyPairsResponse> iterable = b.callAsIterable();
for (ListApiKeyPairsResponse page : iterable) {
// handle page
}

Expand All @@ -598,7 +599,7 @@ public class Application {

// Stream through pages without unwrapping (each item is a complete page)
b.callAsStream()
.forEach((ListBuyersResponse page) -> {
.forEach((ListApiKeyPairsResponse page) -> {
// handle page
});

Expand All @@ -612,31 +613,24 @@ package hello.world;

import com.gr4vy.sdk.AsyncGr4vy;
import com.gr4vy.sdk.Gr4vy;
import com.gr4vy.sdk.models.operations.ListBuyersRequest;
import com.gr4vy.sdk.models.operations.async.ListBuyersResponse;
import com.gr4vy.sdk.models.operations.async.ListApiKeyPairsResponse;
import reactor.core.publisher.Flux;

public class Application {

public static void main(String[] args) {

AsyncGr4vy sdk = Gr4vy.builder()
.merchantAccountId("default")
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
.build()
.async();

ListBuyersRequest req = ListBuyersRequest.builder()
.cursor("ZXhhbXBsZTE")
.search("John")
.externalIdentifier("buyer-12345")
.build();


var b = sdk.buyers().list();
var b = sdk.apiKeyPairs().list()
.limit(20L);

// Example using Project Reactor (illustrative) - pages
Flux<ListBuyersResponse> pageFlux = Flux.from(b.callAsPublisher());
Flux<ListApiKeyPairsResponse> pageFlux = Flux.from(b.callAsPublisher());
pageFlux.subscribe(
page -> System.out.println(page),
error -> error.printStackTrace(),
Expand All @@ -661,8 +655,7 @@ package hello.world;

import com.gr4vy.sdk.Gr4vy;
import com.gr4vy.sdk.models.errors.*;
import com.gr4vy.sdk.models.operations.ListBuyersRequest;
import com.gr4vy.sdk.models.operations.ListBuyersResponse;
import com.gr4vy.sdk.models.operations.ListApiKeyPairsResponse;
import com.gr4vy.sdk.utils.BackoffStrategy;
import com.gr4vy.sdk.utils.RetryConfig;
import java.lang.Exception;
Expand All @@ -673,18 +666,11 @@ public class Application {
public static void main(String[] args) throws Exception {

Gr4vy sdk = Gr4vy.builder()
.merchantAccountId("default")
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
.build();

ListBuyersRequest req = ListBuyersRequest.builder()
.cursor("ZXhhbXBsZTE")
.search("John")
.externalIdentifier("buyer-12345")
.build();


sdk.buyers().list()
sdk.apiKeyPairs().list()
.retryConfig(RetryConfig.builder()
.backoff(BackoffStrategy.builder()
.initialInterval(1L, TimeUnit.MILLISECONDS)
Expand All @@ -695,8 +681,9 @@ public class Application {
.retryConnectError(false)
.build())
.build())
.limit(20L)
.callAsStream()
.forEach((ListBuyersResponse item) -> {
.forEach((ListApiKeyPairsResponse item) -> {
// handle page
});

Expand All @@ -710,8 +697,7 @@ package hello.world;

import com.gr4vy.sdk.Gr4vy;
import com.gr4vy.sdk.models.errors.*;
import com.gr4vy.sdk.models.operations.ListBuyersRequest;
import com.gr4vy.sdk.models.operations.ListBuyersResponse;
import com.gr4vy.sdk.models.operations.ListApiKeyPairsResponse;
import com.gr4vy.sdk.utils.BackoffStrategy;
import com.gr4vy.sdk.utils.RetryConfig;
import java.lang.Exception;
Expand All @@ -732,20 +718,14 @@ public class Application {
.retryConnectError(false)
.build())
.build())
.merchantAccountId("default")
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
.build();

ListBuyersRequest req = ListBuyersRequest.builder()
.cursor("ZXhhbXBsZTE")
.search("John")
.externalIdentifier("buyer-12345")
.build();


sdk.buyers().list()
sdk.apiKeyPairs().list()
.limit(20L)
.callAsStream()
.forEach((ListBuyersResponse item) -> {
.forEach((ListApiKeyPairsResponse item) -> {
// handle page
});

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

## 2026-07-06 10:39:52
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.788.1 (2.915.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v2.16.102] .
### Releases
- [Maven Central v2.16.102] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.102 - .
Loading
Loading