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
29 changes: 15 additions & 14 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: 430a7b8ce51bbdfdefacbf9afe64fdfc
docChecksum: 7e450a2b13a55749b50674070c016c32
docVersion: 1.0.0
speakeasyVersion: 1.763.1
generationVersion: 2.884.4
releaseVersion: 2.16.65
configChecksum: 7715dfe2c257426488514aefb1a567e7
releaseVersion: 2.16.66
configChecksum: a8e3050e99c328e13ce16947b13b435b
repoURL: https://github.com/gr4vy/gr4vy-java.git
installationURL: https://github.com/gr4vy/gr4vy-java
published: true
persistentEdits:
generation_id: 1983c502-08ac-4e08-a447-87ba7bb23fd1
pristine_commit_hash: 0e01819ee1ab2c3f12f3cb562b374057433fb1a2
pristine_tree_hash: 917cd6ad26924a4d576237601c6db4007b6e4fea
generation_id: 9b5e1998-6efa-4bb1-8a9f-60d84c8e6b40
pristine_commit_hash: 1ccf6de81d019c402be1f95a6c090693f1daf855
pristine_tree_hash: 4a0b8ccd9fc6f01e67d822d04bb42af1abdd7df4
features:
java:
additionalDependencies: 0.1.0
Expand Down Expand Up @@ -934,8 +934,8 @@ trackedFiles:
pristine_git_object: 6b5aa84de837ae23edb33f11d8d5e4191ac14998
docs/models/components/PazePaymentMethodCreate.md:
id: 286cbce8b461
last_write_checksum: sha1:746baae2692c0a92086c0555f6f3b64ba6f598ad
pristine_git_object: a687837a5ef873cdc392695ad7b6ba087f564b81
last_write_checksum: sha1:6b25b5e85955b99daafcfbf1bd5a5c8a36ea6437
pristine_git_object: 12c336c7c68ae02748060c8accdbe0bcd63285e8
docs/models/components/PlaidPaymentMethodCreate.md:
id: 618a7982ce28
last_write_checksum: sha1:44b01d45af2cba881f8691b92554ab34939d216b
Expand Down Expand Up @@ -2430,8 +2430,8 @@ trackedFiles:
pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b
gradle.properties:
id: 2afbb999f001
last_write_checksum: sha1:bc57837ef5f896b1c79d2032c6840a8894344785
pristine_git_object: 523add7bf1ccfd2128a4a2acada34208e2b34ea3
last_write_checksum: sha1:e54dac5b08a61708a660d408f31d6890b2aa551f
pristine_git_object: 3eb78f485ecee3923d364d571cde25dbf880b409
gradle/wrapper/gradle-wrapper.jar:
id: ec27dae6e852
last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611
Expand Down Expand Up @@ -2754,8 +2754,8 @@ trackedFiles:
pristine_git_object: 502a7312d3dc82c102dbaf7ed5e952d0c793e26f
src/main/java/com/gr4vy/sdk/SDKConfiguration.java:
id: 73a7edeaca45
last_write_checksum: sha1:70473a64725cc683a177ff3428ee5384d3f2f80a
pristine_git_object: 6c1d360c331e14459abf56e867b3a2f43cbf1abb
last_write_checksum: sha1:63646ccb46e0acd424e475e6b9af0b259a1bedb4
pristine_git_object: 1b394bbff09085b0be420f6cfa0fdda0e30b3509
src/main/java/com/gr4vy/sdk/SecuritySource.java:
id: 1b6add6b9b50
last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd
Expand Down Expand Up @@ -3674,8 +3674,8 @@ trackedFiles:
pristine_git_object: 795a5f8069ed930d451c10bdcc00847f0e9d3adc
src/main/java/com/gr4vy/sdk/models/components/PazePaymentMethodCreate.java:
id: e8c88c1bf47a
last_write_checksum: sha1:815ac6d2b4fec40327c441a3a5785026f4724c9f
pristine_git_object: d0ff850dc23a92d7d6fe007ea2c6a28c72610f57
last_write_checksum: sha1:58e6213b25eea44dc3731a31e10a5791d87f70bd
pristine_git_object: fa05a38c3783f7244a8fa3e9edde2845ae55f882
src/main/java/com/gr4vy/sdk/models/components/PlaidPaymentMethodCreate.java:
id: 278082fd49e5
last_write_checksum: sha1:25c90fbad2fd25645c0bcf38fadf272f4aa1ac68
Expand Down Expand Up @@ -10768,6 +10768,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:\n* `gr4vy.transactions.create()`: \n * `request.transactionCreate.paymentMethod.union(PazePaymentMethodCreate).checkoutToken` **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.65
version: 2.16.66
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:15cd983cbbe0596e1db28a205e4dd463279a44b2d6792ffcf31693c65044cacb
sourceBlobDigest: sha256:40abf6dd929db4b27bd130b039d53232a88102cb9d62fe8e555df586c9f1f34b
sourceRevisionDigest: sha256:6861cd78ad900ff41335be6acc1b9847937ad783c52a9a3a8575d213af994da4
sourceBlobDigest: sha256:26460eaef28b958b166ba89423d046efde8828ff294cc6954f31d63023cf4950
tags:
- latest
- 1.0.0
Expand All @@ -25,10 +25,10 @@ targets:
java:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:15cd983cbbe0596e1db28a205e4dd463279a44b2d6792ffcf31693c65044cacb
sourceBlobDigest: sha256:40abf6dd929db4b27bd130b039d53232a88102cb9d62fe8e555df586c9f1f34b
sourceRevisionDigest: sha256:6861cd78ad900ff41335be6acc1b9847937ad783c52a9a3a8575d213af994da4
sourceBlobDigest: sha256:26460eaef28b958b166ba89423d046efde8828ff294cc6954f31d63023cf4950
codeSamplesNamespace: openapi-java-code-samples
codeSamplesRevisionDigest: sha256:61c07913404c53170045943287528996f44f202f60b6f77e438cdb7be44ff1a3
codeSamplesRevisionDigest: sha256:501521c29fae6a8bebd2dd11514ed8dbba37028a7a2ea71a2f10236cb54b2722
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.65'
implementation 'com.gr4vy:sdk:2.16.66'
```

Maven:
```xml
<dependency>
<groupId>com.gr4vy</groupId>
<artifactId>sdk</artifactId>
<version>2.16.65</version>
<version>2.16.66</version>
</dependency>
```

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

## 2026-05-19 14:58:56
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.763.1 (2.884.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v2.16.66] .
### Releases
- [Maven Central v2.16.66] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.66 - .
3 changes: 2 additions & 1 deletion docs/models/components/PazePaymentMethodCreate.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ Create a Paze transaction with a device token.
| `cardScheme` | *JsonNullable\<String>* | :heavy_minus_sign: | The original card scheme for which the token was generated. | visa |
| `cardType` | *JsonNullable\<String>* | :heavy_minus_sign: | The payment scheme of the card. | credit |
| `method` | *String* | :heavy_check_mark: | Always `paze` | paze |
| `token` | *String* | :heavy_check_mark: | The opaque token as received from the Paze complete response. | |
| `token` | *String* | :heavy_check_mark: | The opaque token as received from the Paze complete response. | |
| `checkoutToken` | *JsonNullable\<String>* | :heavy_minus_sign: | The signed checkout JWS as received from the Paze checkout response. | |
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.65
version=2.16.66
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.16.65";
public static final String SDK_VERSION = "2.16.66";
public static final String GEN_VERSION = "2.884.4";
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 @@ -82,6 +82,13 @@ public class PazePaymentMethodCreate {
@JsonProperty("token")
private String token;

/**
* The signed checkout JWS as received from the Paze checkout response.
*/
@JsonInclude(Include.NON_ABSENT)
@JsonProperty("checkout_token")
private JsonNullable<String> checkoutToken;

@JsonCreator
public PazePaymentMethodCreate(
@JsonProperty("buyer_external_identifier") JsonNullable<String> buyerExternalIdentifier,
Expand All @@ -91,7 +98,8 @@ public PazePaymentMethodCreate(
@JsonProperty("card_suffix") JsonNullable<String> cardSuffix,
@JsonProperty("card_scheme") JsonNullable<String> cardScheme,
@JsonProperty("card_type") JsonNullable<String> cardType,
@JsonProperty("token") String token) {
@JsonProperty("token") String token,
@JsonProperty("checkout_token") JsonNullable<String> checkoutToken) {
Utils.checkNotNull(buyerExternalIdentifier, "buyerExternalIdentifier");
Utils.checkNotNull(buyerId, "buyerId");
Utils.checkNotNull(cardholderName, "cardholderName");
Expand All @@ -100,6 +108,7 @@ public PazePaymentMethodCreate(
Utils.checkNotNull(cardScheme, "cardScheme");
Utils.checkNotNull(cardType, "cardType");
Utils.checkNotNull(token, "token");
Utils.checkNotNull(checkoutToken, "checkoutToken");
this.buyerExternalIdentifier = buyerExternalIdentifier;
this.buyerId = buyerId;
this.cardholderName = cardholderName;
Expand All @@ -109,13 +118,14 @@ public PazePaymentMethodCreate(
this.cardType = cardType;
this.method = Builder._SINGLETON_VALUE_Method.value();
this.token = token;
this.checkoutToken = checkoutToken;
}

public PazePaymentMethodCreate(
String token) {
this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
JsonNullable.undefined(), token);
JsonNullable.undefined(), token, JsonNullable.undefined());
}

/**
Expand Down Expand Up @@ -190,6 +200,14 @@ public String token() {
return token;
}

/**
* The signed checkout JWS as received from the Paze checkout response.
*/
@JsonIgnore
public JsonNullable<String> checkoutToken() {
return checkoutToken;
}

public static Builder builder() {
return new Builder();
}
Expand Down Expand Up @@ -330,6 +348,24 @@ public PazePaymentMethodCreate withToken(String token) {
return this;
}

/**
* The signed checkout JWS as received from the Paze checkout response.
*/
public PazePaymentMethodCreate withCheckoutToken(String checkoutToken) {
Utils.checkNotNull(checkoutToken, "checkoutToken");
this.checkoutToken = JsonNullable.of(checkoutToken);
return this;
}

/**
* The signed checkout JWS as received from the Paze checkout response.
*/
public PazePaymentMethodCreate withCheckoutToken(JsonNullable<String> checkoutToken) {
Utils.checkNotNull(checkoutToken, "checkoutToken");
this.checkoutToken = checkoutToken;
return this;
}

@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
Expand All @@ -348,15 +384,17 @@ public boolean equals(java.lang.Object o) {
Utils.enhancedDeepEquals(this.cardScheme, other.cardScheme) &&
Utils.enhancedDeepEquals(this.cardType, other.cardType) &&
Utils.enhancedDeepEquals(this.method, other.method) &&
Utils.enhancedDeepEquals(this.token, other.token);
Utils.enhancedDeepEquals(this.token, other.token) &&
Utils.enhancedDeepEquals(this.checkoutToken, other.checkoutToken);
}

@Override
public int hashCode() {
return Utils.enhancedHash(
buyerExternalIdentifier, buyerId, cardholderName,
redirectUrl, cardSuffix, cardScheme,
cardType, method, token);
cardType, method, token,
checkoutToken);
}

@Override
Expand All @@ -370,7 +408,8 @@ public String toString() {
"cardScheme", cardScheme,
"cardType", cardType,
"method", method,
"token", token);
"token", token,
"checkoutToken", checkoutToken);
}

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

private String token;

private JsonNullable<String> checkoutToken = JsonNullable.undefined();

private Builder() {
// force use of static builder() method
}
Expand Down Expand Up @@ -539,12 +580,31 @@ public Builder token(String token) {
return this;
}


/**
* The signed checkout JWS as received from the Paze checkout response.
*/
public Builder checkoutToken(String checkoutToken) {
Utils.checkNotNull(checkoutToken, "checkoutToken");
this.checkoutToken = JsonNullable.of(checkoutToken);
return this;
}

/**
* The signed checkout JWS as received from the Paze checkout response.
*/
public Builder checkoutToken(JsonNullable<String> checkoutToken) {
Utils.checkNotNull(checkoutToken, "checkoutToken");
this.checkoutToken = checkoutToken;
return this;
}

public PazePaymentMethodCreate build() {

return new PazePaymentMethodCreate(
buyerExternalIdentifier, buyerId, cardholderName,
redirectUrl, cardSuffix, cardScheme,
cardType, token);
cardType, token, checkoutToken);
}


Expand Down
Loading