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
151 changes: 127 additions & 24 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.67
version: 2.16.68
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.763.2
speakeasyVersion: 1.763.3
sources:
Gr4vy:
sourceNamespace: openapi
Expand All @@ -9,8 +9,8 @@ sources:
- 1.0.0
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:0e04191794cdce8ff11880dabcbcf4793dad0f68e56462faaf0e88f871d2c744
sourceBlobDigest: sha256:05bacf1bf7802f523bf59eae9ed409c9002e90d4a3072143839213f12043164c
sourceRevisionDigest: sha256:818e6ea22c05a16485e9ee094dd0960ab84df40a1346c8eabddf1b81d8caf9e9
sourceBlobDigest: sha256:65fed463f49de1e45480f574c2463dd7f10b9938a59ccb118efa2fa8f8a010f9
tags:
- latest
- 1.0.0
Expand All @@ -25,10 +25,10 @@ targets:
java:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:0e04191794cdce8ff11880dabcbcf4793dad0f68e56462faaf0e88f871d2c744
sourceBlobDigest: sha256:05bacf1bf7802f523bf59eae9ed409c9002e90d4a3072143839213f12043164c
sourceRevisionDigest: sha256:818e6ea22c05a16485e9ee094dd0960ab84df40a1346c8eabddf1b81d8caf9e9
sourceBlobDigest: sha256:65fed463f49de1e45480f574c2463dd7f10b9938a59ccb118efa2fa8f8a010f9
codeSamplesNamespace: openapi-java-code-samples
codeSamplesRevisionDigest: sha256:791c42e1e84c208f71b2a4260285aae40b802c9ffa628beeb67673212cbdb05a
codeSamplesRevisionDigest: sha256:1f32758aa80fb332704b3e9692dd7568d9954e709ea32407ff3077133febab22
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
5 changes: 3 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.67'
implementation 'com.gr4vy:sdk:2.16.68'
```

Maven:
```xml
<dependency>
<groupId>com.gr4vy</groupId>
<artifactId>sdk</artifactId>
<version>2.16.67</version>
<version>2.16.68</version>
</dependency>
```

Expand Down Expand Up @@ -354,6 +354,7 @@ Async support is available for:

* [googlePay](docs/sdks/sessions/README.md#googlepay) - Create a Google Pay session
* [applePay](docs/sdks/sessions/README.md#applepay) - Create a Apple Pay session
* [paze](docs/sdks/sessions/README.md#paze) - Create a Paze session
* [clickToPay](docs/sdks/sessions/README.md#clicktopay) - Create a Click to Pay session

### [GiftCards](docs/sdks/giftcards/README.md)
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1508,4 +1508,14 @@ Based on:
### Generated
- [java v2.16.67] .
### Releases
- [Maven Central v2.16.67] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.67 - .
- [Maven Central v2.16.67] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.67 - .

## 2026-05-20 08:29:06
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.763.3 (2.884.7) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v2.16.68] .
### Releases
- [Maven Central v2.16.68] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.68 - .
12 changes: 12 additions & 0 deletions docs/models/components/PazeMobileSession.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# PazeMobileSession


## Fields

| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- |
| `id` | *String* | :heavy_check_mark: | The Paze merchant data ID. | W8GT9RLCNME754Z7025613H3PDM2T4HF2CSAOi9w2kkP3D4S0 |
| `name` | *String* | :heavy_check_mark: | The merchant display name. | ACME |
| `profileId` | *String* | :heavy_check_mark: | The Paze profile ID for the given domain. | 550e8400-e29b-41d4-a716-446655440000 |
| `accessToken` | *String* | :heavy_check_mark: | The Paze OAuth access token. Returned only when `source` is `mobile`. | eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9... |
| `sessionId` | *String* | :heavy_check_mark: | The Paze session ID. Returned only when `source` is `mobile`. | 550e8400-e29b-41d4-a716-446655440000 |
9 changes: 9 additions & 0 deletions docs/models/components/PazeSessionRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# PazeSessionRequest


## Fields

| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| `source` | [Optional\<Source>](../../models/components/Source.md) | :heavy_minus_sign: | The platform that the Paze session is being created for. Defaults to `web`. | web |
| `domainName` | *JsonNullable\<String>* | :heavy_minus_sign: | The domain on which Paze is being loaded. Required when `source` is `web`. | example.com |
10 changes: 10 additions & 0 deletions docs/models/components/PazeWebSession.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# PazeWebSession


## Fields

| Field | Type | Required | Description | Example |
| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- |
| `id` | *String* | :heavy_check_mark: | The Paze merchant data ID. | W8GT9RLCNME754Z7025613H3PDM2T4HF2CSAOi9w2kkP3D4S0 |
| `name` | *String* | :heavy_check_mark: | The merchant display name. | ACME |
| `profileId` | *String* | :heavy_check_mark: | The Paze profile ID for the given domain. | 550e8400-e29b-41d4-a716-446655440000 |
22 changes: 22 additions & 0 deletions docs/models/components/Source.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Source

The platform that the Paze session is being created for. Defaults to `web`.

## Example Usage

```java
import com.gr4vy.sdk.models.components.Source;

Source value = Source.WEB;

// Open enum: use .of() to create instances from custom string values
Source custom = Source.of("custom_value");
```


## Values

| Name | Value |
| -------- | -------- |
| `WEB` | web |
| `MOBILE` | mobile |
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# CreatePazeDigitalWalletSessionRequest


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
| `merchantAccountId` | *JsonNullable\<String>* | :heavy_minus_sign: | The ID of the merchant account to use for this request. |
| `pazeSessionRequest` | [PazeSessionRequest](../../models/components/PazeSessionRequest.md) | :heavy_check_mark: | N/A |
11 changes: 11 additions & 0 deletions docs/models/operations/CreatePazeDigitalWalletSessionResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# CreatePazeDigitalWalletSessionResponse


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation |
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `rawResponse` | [HttpResponse\<?>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `responseCreatePazeDigitalWalletSession` | [Optional\<ResponseCreatePazeDigitalWalletSession>](../../models/operations/ResponseCreatePazeDigitalWalletSession.md) | :heavy_minus_sign: | Successful Response |
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ResponseCreatePazeDigitalWalletSession

Successful Response

79 changes: 79 additions & 0 deletions docs/sdks/sessions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

* [googlePay](#googlepay) - Create a Google Pay session
* [applePay](#applepay) - Create a Apple Pay session
* [paze](#paze) - Create a Paze session
* [clickToPay](#clicktopay) - Create a Click to Pay session

## googlePay
Expand Down Expand Up @@ -143,6 +144,84 @@ public class Application {
| models/errors/Error504 | 504 | application/json |
| models/errors/APIException | 4XX, 5XX | \*/\* |

## paze

Create a session for use with Paze.

### Example Usage

<!-- UsageSnippet language="java" operationID="create_paze_digital_wallet_session" method="post" path="/digital-wallets/paze/session" -->
```java
package hello.world;

import com.gr4vy.sdk.Gr4vy;
import com.gr4vy.sdk.models.components.*;
import com.gr4vy.sdk.models.errors.*;
import com.gr4vy.sdk.models.operations.CreatePazeDigitalWalletSessionResponse;
import com.gr4vy.sdk.models.operations.ResponseCreatePazeDigitalWalletSession;
import java.lang.Exception;
import java.lang.Object;

public class Application {

public static void main(String[] args) throws Exception {

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

CreatePazeDigitalWalletSessionResponse res = sdk.digitalWallets().sessions().paze()
.pazeSessionRequest(PazeSessionRequest.builder()
.build())
.call();

if (res.responseCreatePazeDigitalWalletSession().isPresent()) {
ResponseCreatePazeDigitalWalletSession unionValue = res.responseCreatePazeDigitalWalletSession().get();
Object raw = unionValue.value();
if (raw instanceof PazeWebSession) {
PazeWebSession pazeWebSessionValue = (PazeWebSession) raw;
// Handle pazeWebSession variant
} else if (raw instanceof PazeMobileSession) {
PazeMobileSession pazeMobileSessionValue = (PazeMobileSession) raw;
// Handle pazeMobileSession variant
} else {
// Unknown or unsupported variant
}
}
}
}
```

### Parameters

| Parameter | Type | Required | Description |
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
| `merchantAccountId` | *JsonNullable\<String>* | :heavy_minus_sign: | The ID of the merchant account to use for this request. |
| `pazeSessionRequest` | [PazeSessionRequest](../../models/components/PazeSessionRequest.md) | :heavy_check_mark: | N/A |

### Response

**[CreatePazeDigitalWalletSessionResponse](../../models/operations/CreatePazeDigitalWalletSessionResponse.md)**

### Errors

| Error Type | Status Code | Content Type |
| --------------------------------- | --------------------------------- | --------------------------------- |
| models/errors/Error400 | 400 | application/json |
| models/errors/Error401 | 401 | application/json |
| models/errors/Error403 | 403 | application/json |
| models/errors/Error404 | 404 | application/json |
| models/errors/Error405 | 405 | application/json |
| models/errors/Error409 | 409 | application/json |
| models/errors/HTTPValidationError | 422 | application/json |
| models/errors/Error425 | 425 | application/json |
| models/errors/Error429 | 429 | application/json |
| models/errors/Error500 | 500 | application/json |
| models/errors/Error502 | 502 | application/json |
| models/errors/Error504 | 504 | application/json |
| models/errors/APIException | 4XX, 5XX | \*/\* |

## clickToPay

Create a session for use with Click to Pay.
Expand Down
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.67
version=2.16.68
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g
Loading
Loading