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
34 changes: 18 additions & 16 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: ece5a8d17aca31190508b3f7034d0dfc
docChecksum: acadadee4a36d9cea2d3f033d22ebc1c
docVersion: 1.0.0
speakeasyVersion: 1.806.0
generationVersion: 2.956.1
releaseVersion: 2.19.29
configChecksum: a944fd7bb3d7c2b1d3ba773b697237eb
releaseVersion: 2.19.30
configChecksum: 1c4a318e0d1c8e8f46757038e441cd25
repoURL: https://github.com/gr4vy/gr4vy-java.git
installationURL: https://github.com/gr4vy/gr4vy-java
published: true
persistentEdits:
generation_id: 8549bbe1-f9fd-468b-8cce-0d6fbcdf0066
pristine_commit_hash: b7d236d70c77665cd47573ef11490a7c4ee0e61f
pristine_tree_hash: 34e7180c568200fe2318906565da43e97d4c28e1
generation_id: 154c9258-8e8e-480f-ae2d-86ce1d15c3e2
pristine_commit_hash: 1c845f66475f69863b4c3fbfedd3978e290498a2
pristine_tree_hash: 5d51ade68a8df0e6d7103e9a5a6506fde0ae2f63
features:
java:
additionalDependencies: 0.1.0
Expand Down Expand Up @@ -911,8 +911,8 @@ trackedFiles:
pristine_git_object: 9e3e92c3d68f8a201f885f3abc8e090b891a7a97
docs/models/components/PaymentOption.md:
id: bff35ba08612
last_write_checksum: sha1:7404ee50cfb54aafac986a96657229526deb3004
pristine_git_object: 364c353775c268e9cd441e83ca33fda56318c837
last_write_checksum: sha1:f9cf6c142e89bacf0a5db72d1bac762a27b65680
pristine_git_object: b5bccb000b9c8c4b4226c536945aa772e2d5c5e8
docs/models/components/PaymentOptionContext.md:
id: 46f1d6bbd415
last_write_checksum: sha1:b0c88f0c7225c02a520f4fcd0a51bea35612e8b4
Expand Down Expand Up @@ -2907,8 +2907,8 @@ trackedFiles:
pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b
gradle.properties:
id: 2afbb999f001
last_write_checksum: sha1:3d65bd4de2caa417a61ced845b9d456dae4c2d68
pristine_git_object: 26fc948d8599e432568c80f4d5c8d8058aaa3458
last_write_checksum: sha1:fb49a7b4947750d95dc3d81d7a81e18da4c36378
pristine_git_object: 61bfcbf381f9a45e7bec4bd9e18a9fe6914bfe02
gradle/wrapper/gradle-wrapper.jar:
id: ec27dae6e852
last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611
Expand Down Expand Up @@ -3251,8 +3251,8 @@ trackedFiles:
pristine_git_object: b50475cc7f6041d63c4569256e4ff1850b20d30b
src/main/java/com/gr4vy/sdk/SDKConfiguration.java:
id: 73a7edeaca45
last_write_checksum: sha1:27ce1f3cf39c6d9e95c1f92f3a2e808ebd7dc4d5
pristine_git_object: adeeed026783af89d99089f5c97669ef20b66fa4
last_write_checksum: sha1:db53a4d8597b2a272fa539097ffae39e314ad7d9
pristine_git_object: 228bf380f04c980f54e237589be5535fca6c7edf
src/main/java/com/gr4vy/sdk/SecuritySource.java:
id: 1b6add6b9b50
last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd
Expand Down Expand Up @@ -4147,8 +4147,8 @@ trackedFiles:
pristine_git_object: ef09c23e4f4c80784524110102d8449b045f10e9
src/main/java/com/gr4vy/sdk/models/components/PaymentOption.java:
id: 89220c45a50d
last_write_checksum: sha1:a0c7f362ee3a74a338114d99ae59bf4e0004f9d1
pristine_git_object: ec3e1c68f3164c5eff648565f1351a79c7b29759
last_write_checksum: sha1:f05462c4d206169f50a2a958c0c10c87a5b547dd
pristine_git_object: fb2a8a0b81d5a3b4c41c1f5235d65bfc227b33ee
src/main/java/com/gr4vy/sdk/models/components/PaymentOptionContext.java:
id: a6a27940fc91
last_write_checksum: sha1:02321d490b991437158732d6ccd59b373962e5fe
Expand Down Expand Up @@ -10274,7 +10274,7 @@ examples:
application/json: {"locale": "en"}
responses:
"200":
application/json: {"items": [{"type": "payment-option", "method": "<value>", "mode": "card", "can_store_payment_method": true, "can_delay_capture": true}]}
application/json: {"items": [{"type": "payment-option", "method": "<value>", "icon_url": "https://legal-fibre.com/", "mode": "card", "label": "<value>", "can_store_payment_method": true, "can_delay_capture": true}]}
"400":
application/json: {"type": "error", "code": "bad_request", "status": 400, "message": "Request failed validation"}
"401":
Expand Down Expand Up @@ -12531,7 +12531,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.paymentMethods.create()`: \n * `requestBody.union(CardPaymentMethodCreate).preferredScheme` **Added**\n* `gr4vy.transactions.create()`: \n * `request.transactionCreate.paymentMethod` **Changed**\n"
releaseNotes: |
## Java SDK Changes:
* `gr4vy.paymentOptions.list()`: `response.items[]` **Changed** (Breaking ⚠️)
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 @@ -31,7 +31,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
java:
version: 2.19.29
version: 2.19.30
additionalDependencies:
- testImplementation:org.junit.jupiter:junit-jupiter:5.10.0
- implementation:com.auth0:java-jwt:4.6.2
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:d12fff9a98d3f2890e66395d42a915220f67c41aa38417d8ac5dbc29c3b8279d
sourceBlobDigest: sha256:b8c50e0f147d450a5937a32f4da85d3968785e69e600aa978d9fc41823e14bab
sourceRevisionDigest: sha256:e94935dfe1324ba3cc84c69ef081d59705ec6ce0173c51debdf836a99104fa92
sourceBlobDigest: sha256:e7be48533b9fad9f852037378193730f702aad9ab212d6edaae14b00851a8482
tags:
- latest
- 1.0.0
Expand All @@ -25,10 +25,10 @@ targets:
java:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:d12fff9a98d3f2890e66395d42a915220f67c41aa38417d8ac5dbc29c3b8279d
sourceBlobDigest: sha256:b8c50e0f147d450a5937a32f4da85d3968785e69e600aa978d9fc41823e14bab
sourceRevisionDigest: sha256:e94935dfe1324ba3cc84c69ef081d59705ec6ce0173c51debdf836a99104fa92
sourceBlobDigest: sha256:e7be48533b9fad9f852037378193730f702aad9ab212d6edaae14b00851a8482
codeSamplesNamespace: openapi-java-code-samples
codeSamplesRevisionDigest: sha256:7cbc464b5764d3d4e1af5736edb7ae26f4567fdb5fcfe11b9f6e4512471b9923
codeSamplesRevisionDigest: sha256:630a12d87eb3ba719ce05be87ea878503e41662400cfc93ed9232362c87cb94e
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.29'
implementation 'com.gr4vy:sdk:2.19.30'
```

Maven:
```xml
<dependency>
<groupId>com.gr4vy</groupId>
<artifactId>sdk</artifactId>
<version>2.19.29</version>
<version>2.19.30</version>
</dependency>
```

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

## 2026-11-09 08:28:29
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.806.0 (2.956.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v2.19.30] .
### Releases
- [Maven Central v2.19.30] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.19.30 - .
4 changes: 2 additions & 2 deletions docs/models/components/PaymentOption.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
| `type` | *Optional\<String>* | :heavy_minus_sign: | N/A | |
| `method` | *String* | :heavy_check_mark: | N/A | |
| `iconUrl` | *JsonNullable\<String>* | :heavy_minus_sign: | N/A | |
| `iconUrl` | *String* | :heavy_check_mark: | N/A | |
| `mode` | [Mode](../../models/components/Mode.md) | :heavy_check_mark: | N/A | card |
| `label` | *JsonNullable\<String>* | :heavy_minus_sign: | N/A | |
| `label` | *String* | :heavy_check_mark: | N/A | |
| `canStorePaymentMethod` | *boolean* | :heavy_check_mark: | N/A | |
| `canDelayCapture` | *boolean* | :heavy_check_mark: | N/A | |
| `context` | [JsonNullable\<Context>](../../models/components/Context.md) | :heavy_minus_sign: | N/A | |
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.29
version=2.19.30
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.29";
public static final String SDK_VERSION = "2.19.30";
public static final String GEN_VERSION = "2.956.1";
private static final String BASE_PACKAGE = "com.gr4vy.sdk";
public static final String USER_AGENT =
Expand Down
48 changes: 12 additions & 36 deletions src/main/java/com/gr4vy/sdk/models/components/PaymentOption.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,16 @@ public class PaymentOption {
private String method;


@JsonInclude(Include.NON_ABSENT)
@JsonProperty("icon_url")
private JsonNullable<String> iconUrl;
private String iconUrl;


@JsonProperty("mode")
private Mode mode;


@JsonInclude(Include.NON_ABSENT)
@JsonProperty("label")
private JsonNullable<String> label;
private String label;


@JsonProperty("can_store_payment_method")
Expand All @@ -59,9 +57,9 @@ public class PaymentOption {
@JsonCreator
public PaymentOption(
@JsonProperty("method") String method,
@JsonProperty("icon_url") JsonNullable<String> iconUrl,
@JsonProperty("icon_url") String iconUrl,
@JsonProperty("mode") Mode mode,
@JsonProperty("label") JsonNullable<String> label,
@JsonProperty("label") String label,
@JsonProperty("can_store_payment_method") boolean canStorePaymentMethod,
@JsonProperty("can_delay_capture") boolean canDelayCapture,
@JsonProperty("context") JsonNullable<? extends Context> context) {
Expand All @@ -84,11 +82,13 @@ public PaymentOption(

public PaymentOption(
String method,
String iconUrl,
Mode mode,
String label,
boolean canStorePaymentMethod,
boolean canDelayCapture) {
this(method, JsonNullable.undefined(), mode,
JsonNullable.undefined(), canStorePaymentMethod, canDelayCapture,
this(method, iconUrl, mode,
label, canStorePaymentMethod, canDelayCapture,
JsonNullable.undefined());
}

Expand All @@ -103,7 +103,7 @@ public String method() {
}

@JsonIgnore
public JsonNullable<String> iconUrl() {
public String iconUrl() {
return iconUrl;
}

Expand All @@ -113,7 +113,7 @@ public Mode mode() {
}

@JsonIgnore
public JsonNullable<String> label() {
public String label() {
return label;
}

Expand Down Expand Up @@ -145,12 +145,6 @@ public PaymentOption withMethod(String method) {
}

public PaymentOption withIconUrl(String iconUrl) {
Utils.checkNotNull(iconUrl, "iconUrl");
this.iconUrl = JsonNullable.of(iconUrl);
return this;
}

public PaymentOption withIconUrl(JsonNullable<String> iconUrl) {
Utils.checkNotNull(iconUrl, "iconUrl");
this.iconUrl = iconUrl;
return this;
Expand All @@ -163,12 +157,6 @@ public PaymentOption withMode(Mode mode) {
}

public PaymentOption withLabel(String label) {
Utils.checkNotNull(label, "label");
this.label = JsonNullable.of(label);
return this;
}

public PaymentOption withLabel(JsonNullable<String> label) {
Utils.checkNotNull(label, "label");
this.label = label;
return this;
Expand Down Expand Up @@ -244,11 +232,11 @@ public final static class Builder {

private String method;

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

private Mode mode;

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

private Boolean canStorePaymentMethod;

Expand All @@ -269,12 +257,6 @@ public Builder method(String method) {


public Builder iconUrl(String iconUrl) {
Utils.checkNotNull(iconUrl, "iconUrl");
this.iconUrl = JsonNullable.of(iconUrl);
return this;
}

public Builder iconUrl(JsonNullable<String> iconUrl) {
Utils.checkNotNull(iconUrl, "iconUrl");
this.iconUrl = iconUrl;
return this;
Expand All @@ -289,12 +271,6 @@ public Builder mode(Mode mode) {


public Builder label(String label) {
Utils.checkNotNull(label, "label");
this.label = JsonNullable.of(label);
return this;
}

public Builder label(JsonNullable<String> label) {
Utils.checkNotNull(label, "label");
this.label = label;
return this;
Expand Down
Loading