diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 791ebc78..023d4032 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 5bbaa3a9-baa0-471b-ba6a-13fd88e8c119 management: - docChecksum: ebba10a14a6c94c535ff65d99d61028b + docChecksum: a72d31b18ba219e4b2c49d8d031dcb9d docVersion: 1.0.0 speakeasyVersion: 1.784.1 generationVersion: 2.911.3 - releaseVersion: 2.16.95 - configChecksum: fa8e1a9baaceff88fdb9d5fb64ce7053 + releaseVersion: 2.16.96 + configChecksum: be40dc9d66c822b4339cb61074d70111 repoURL: https://github.com/gr4vy/gr4vy-java.git installationURL: https://github.com/gr4vy/gr4vy-java published: true persistentEdits: - generation_id: 13dfd970-c74c-44a5-9882-6463a6c9cab8 - pristine_commit_hash: b381caa405d6019b8da44d9762e050389c2fbd7d - pristine_tree_hash: 8a20de82f418303f93c7855d2ce896657920c9e5 + generation_id: 7d4774a0-3eb1-44f4-8e79-0659495e9847 + pristine_commit_hash: 262b2a8f71662cabbd40e9dc55ccfd73d13555b8 + pristine_tree_hash: e315a30abd568d4dae8841c78e3b8eb724961340 features: java: additionalDependencies: 0.1.0 @@ -1282,8 +1282,8 @@ trackedFiles: pristine_git_object: 200923b4f46c720912ac4687c902414b69512ed8 docs/models/components/StripeCardOptions.md: id: ff144908d9f7 - last_write_checksum: sha1:80471c6b2edd4275c2fc37e4e36a9910edf0cf47 - pristine_git_object: 0f31c634d2b2eafe5ae489229fa231633ec0ccbe + last_write_checksum: sha1:e9d0e9473409533f14d535bffe7d1748e456ebac + pristine_git_object: d38100d5ef0cd7e23a6e7ee10475d9ab556e3d03 docs/models/components/StripeConnectOptions.md: id: 1ebc8fd8afbd last_write_checksum: sha1:398bb64983d23accf8532872832ce9ef3555f054 @@ -2654,8 +2654,8 @@ trackedFiles: pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:46bd402e04e2ff45d04dec713f9e5a986ea487e3 - pristine_git_object: bd57228c76a150d5a12dc74a60d2503fa65571dd + last_write_checksum: sha1:03fea2cca61d87403757dc9531327ead04ab8ff7 + pristine_git_object: 9af894007fdb701430e613a587ffda4389ac6352 gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -2958,8 +2958,8 @@ trackedFiles: pristine_git_object: 502a7312d3dc82c102dbaf7ed5e952d0c793e26f src/main/java/com/gr4vy/sdk/SDKConfiguration.java: id: 73a7edeaca45 - last_write_checksum: sha1:1ac8fc542cfacdfeaee1d3223c4ab35dd39ccf77 - pristine_git_object: 0092ef8cc795242280115206995510f65d2053d6 + last_write_checksum: sha1:1ab43afcf6f8d1c84e1c37a92ebab54ae7170b13 + pristine_git_object: 14018d0be311cb9afaa880e60d6e7f9dccae96c8 src/main/java/com/gr4vy/sdk/SecuritySource.java: id: 1b6add6b9b50 last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd @@ -4230,8 +4230,8 @@ trackedFiles: pristine_git_object: eaa89dbd9564f870cd9b6935c9b1726ed005f92d src/main/java/com/gr4vy/sdk/models/components/StripeCardOptions.java: id: 751be999eeb5 - last_write_checksum: sha1:b33dd2c72ccce2b106e3c4230db3d50746ef97cd - pristine_git_object: ea4660d257694872b37081d2fa20214bfa660906 + last_write_checksum: sha1:336396fc239744f963eacc9684cc8bc20bfb743d + pristine_git_object: 43bde79b63442184154627c8e395095bbebaa003 src/main/java/com/gr4vy/sdk/models/components/StripeConnectOptions.java: id: 578b3554bd98 last_write_checksum: sha1:6f8e5bdf0da6f77f6adb2ce7f9b9d37ea5090778 @@ -11477,7 +11477,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.merchantAccounts.list()`: `response.items[]` **Changed**\n* `gr4vy.merchantAccounts.create()`: \n * `request` **Changed**\n * `response` **Changed**\n* `gr4vy.merchantAccounts.get()`: `response` **Changed**\n* `gr4vy.merchantAccounts.update()`: \n * `request.merchantAccountUpdate` **Changed**\n * `response` **Changed**\n" +releaseNotes: "## Java SDK Changes:\n* `gr4vy.transactions.create()`: \n * `request.transactionCreate.connectionOptions.stripeCard.customerId` **Added**\n* `gr4vy.transactions.update()`: \n * `request.transactionUpdate.connectionOptions.stripeCard.customerId` **Added**\n* `gr4vy.paymentLinks.create()`: \n * `request.paymentLinkCreate.connectionOptions.stripeCard.customerId` **Added**\n" generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 29ba8136..a0ff116c 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -30,7 +30,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 2.16.95 + version: 2.16.96 additionalDependencies: - testImplementation:org.junit.jupiter:junit-jupiter:5.10.0 - implementation:com.auth0:java-jwt:4.5.0 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index bc152d28..35018c88 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -9,8 +9,8 @@ sources: - 1.0.0 openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:1d0f22743bb1d77931f52469d5698cee46a0a4beadd796bc1dab11378220dbf6 - sourceBlobDigest: sha256:ac563df99fdeceda8b20bb584b260f7c5e69918ea864b0fb3eafecbab451551f + sourceRevisionDigest: sha256:e626fe2823ebef0de9d5e508900ea4cf19ecd26ce8f3838e99dae4052c343725 + sourceBlobDigest: sha256:77daf457ab2d159b33081c46481ab66e8cf69fc2d761b60636ecd490928f28b9 tags: - latest - 1.0.0 @@ -25,10 +25,10 @@ targets: java: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:1d0f22743bb1d77931f52469d5698cee46a0a4beadd796bc1dab11378220dbf6 - sourceBlobDigest: sha256:ac563df99fdeceda8b20bb584b260f7c5e69918ea864b0fb3eafecbab451551f + sourceRevisionDigest: sha256:e626fe2823ebef0de9d5e508900ea4cf19ecd26ce8f3838e99dae4052c343725 + sourceBlobDigest: sha256:77daf457ab2d159b33081c46481ab66e8cf69fc2d761b60636ecd490928f28b9 codeSamplesNamespace: openapi-java-code-samples - codeSamplesRevisionDigest: sha256:70b8bb1f3d5f2100bef7b0253d65726441b859fcf236d607642de6b046521257 + codeSamplesRevisionDigest: sha256:7cbac8907cce87ccd671c4939e8e1c599d362a7c54b2e7637f20ddea2d5a5d0f workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 06aafa34..6b705c92 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.gr4vy:sdk:2.16.95' +implementation 'com.gr4vy:sdk:2.16.96' ``` Maven: @@ -67,7 +67,7 @@ Maven: com.gr4vy sdk - 2.16.95 + 2.16.96 ``` diff --git a/RELEASES.md b/RELEASES.md index bcdcaf2f..af64e49d 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1788,4 +1788,14 @@ Based on: ### Generated - [java v2.16.95] . ### Releases -- [Maven Central v2.16.95] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.95 - . \ No newline at end of file +- [Maven Central v2.16.95] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.95 - . + +## 2026-06-23 15:00:44 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.784.1 (2.911.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v2.16.96] . +### Releases +- [Maven Central v2.16.96] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.96 - . \ No newline at end of file diff --git a/docs/models/components/StripeCardOptions.md b/docs/models/components/StripeCardOptions.md index 0f31c634..d38100d5 100644 --- a/docs/models/components/StripeCardOptions.md +++ b/docs/models/components/StripeCardOptions.md @@ -6,4 +6,5 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `stripeConnect` | [JsonNullable\](../../models/components/StripeConnectOptions.md) | :heavy_minus_sign: | Stripe options to support Stripe Connect | | +| `customerId` | *JsonNullable\* | :heavy_minus_sign: | A Stripe customer ID (`cus_xxx`) to associate with the PaymentIntent for network token transactions. When provided, Stripe Radar can access the customer's payment history, dispute rate, and account age to improve risk scoring for returning customers. | cus_UgwySgjyKWrN5o | | `errorOnRequiresAction` | *JsonNullable\* | :heavy_minus_sign: | Passes the `error_on_requires_action` option to the Stripe API. Set to true to fail the payment attempt if it transitions into requires_action. Use this parameter for simpler integrations that don't handle customer actions, such as saving cards without authentication. | true | \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index bd57228c..9af89400 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.gr4vy artifactId=sdk -version=2.16.95 +version=2.16.96 org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g diff --git a/src/main/java/com/gr4vy/sdk/SDKConfiguration.java b/src/main/java/com/gr4vy/sdk/SDKConfiguration.java index 0092ef8c..14018d0b 100644 --- a/src/main/java/com/gr4vy/sdk/SDKConfiguration.java +++ b/src/main/java/com/gr4vy/sdk/SDKConfiguration.java @@ -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.95"; + public static final String SDK_VERSION = "2.16.96"; public static final String GEN_VERSION = "2.911.3"; private static final String BASE_PACKAGE = "com.gr4vy.sdk"; public static final String USER_AGENT = diff --git a/src/main/java/com/gr4vy/sdk/models/components/StripeCardOptions.java b/src/main/java/com/gr4vy/sdk/models/components/StripeCardOptions.java index ea4660d2..43bde79b 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/StripeCardOptions.java +++ b/src/main/java/com/gr4vy/sdk/models/components/StripeCardOptions.java @@ -24,6 +24,15 @@ public class StripeCardOptions { @JsonProperty("stripe_connect") private JsonNullable stripeConnect; + /** + * A Stripe customer ID (`cus_xxx`) to associate with the PaymentIntent for network token transactions. + * When provided, Stripe Radar can access the customer's payment history, dispute rate, and account age + * to improve risk scoring for returning customers. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("customer_id") + private JsonNullable customerId; + /** * Passes the `error_on_requires_action` option to the Stripe API. Set to true to fail the payment * attempt if it transitions into requires_action. Use this parameter for simpler integrations that @@ -36,15 +45,18 @@ public class StripeCardOptions { @JsonCreator public StripeCardOptions( @JsonProperty("stripe_connect") JsonNullable stripeConnect, + @JsonProperty("customer_id") JsonNullable customerId, @JsonProperty("error_on_requires_action") JsonNullable errorOnRequiresAction) { Utils.checkNotNull(stripeConnect, "stripeConnect"); + Utils.checkNotNull(customerId, "customerId"); Utils.checkNotNull(errorOnRequiresAction, "errorOnRequiresAction"); this.stripeConnect = stripeConnect; + this.customerId = customerId; this.errorOnRequiresAction = errorOnRequiresAction; } public StripeCardOptions() { - this(JsonNullable.undefined(), JsonNullable.undefined()); + this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined()); } /** @@ -56,6 +68,16 @@ public JsonNullable stripeConnect() { return (JsonNullable) stripeConnect; } + /** + * A Stripe customer ID (`cus_xxx`) to associate with the PaymentIntent for network token transactions. + * When provided, Stripe Radar can access the customer's payment history, dispute rate, and account age + * to improve risk scoring for returning customers. + */ + @JsonIgnore + public JsonNullable customerId() { + return customerId; + } + /** * Passes the `error_on_requires_action` option to the Stripe API. Set to true to fail the payment * attempt if it transitions into requires_action. Use this parameter for simpler integrations that @@ -89,6 +111,28 @@ public StripeCardOptions withStripeConnect(JsonNullable customerId) { + Utils.checkNotNull(customerId, "customerId"); + this.customerId = customerId; + return this; + } + /** * Passes the `error_on_requires_action` option to the Stripe API. Set to true to fail the payment * attempt if it transitions into requires_action. Use this parameter for simpler integrations that @@ -122,19 +166,21 @@ public boolean equals(java.lang.Object o) { StripeCardOptions other = (StripeCardOptions) o; return Utils.enhancedDeepEquals(this.stripeConnect, other.stripeConnect) && + Utils.enhancedDeepEquals(this.customerId, other.customerId) && Utils.enhancedDeepEquals(this.errorOnRequiresAction, other.errorOnRequiresAction); } @Override public int hashCode() { return Utils.enhancedHash( - stripeConnect, errorOnRequiresAction); + stripeConnect, customerId, errorOnRequiresAction); } @Override public String toString() { return Utils.toString(StripeCardOptions.class, "stripeConnect", stripeConnect, + "customerId", customerId, "errorOnRequiresAction", errorOnRequiresAction); } @@ -143,6 +189,8 @@ public final static class Builder { private JsonNullable stripeConnect = JsonNullable.undefined(); + private JsonNullable customerId = JsonNullable.undefined(); + private JsonNullable errorOnRequiresAction = JsonNullable.undefined(); private Builder() { @@ -169,6 +217,29 @@ public Builder stripeConnect(JsonNullable stripe } + /** + * A Stripe customer ID (`cus_xxx`) to associate with the PaymentIntent for network token transactions. + * When provided, Stripe Radar can access the customer's payment history, dispute rate, and account age + * to improve risk scoring for returning customers. + */ + public Builder customerId(String customerId) { + Utils.checkNotNull(customerId, "customerId"); + this.customerId = JsonNullable.of(customerId); + return this; + } + + /** + * A Stripe customer ID (`cus_xxx`) to associate with the PaymentIntent for network token transactions. + * When provided, Stripe Radar can access the customer's payment history, dispute rate, and account age + * to improve risk scoring for returning customers. + */ + public Builder customerId(JsonNullable customerId) { + Utils.checkNotNull(customerId, "customerId"); + this.customerId = customerId; + return this; + } + + /** * Passes the `error_on_requires_action` option to the Stripe API. Set to true to fail the payment * attempt if it transitions into requires_action. Use this parameter for simpler integrations that @@ -194,7 +265,7 @@ public Builder errorOnRequiresAction(JsonNullable errorOnRequiresAction public StripeCardOptions build() { return new StripeCardOptions( - stripeConnect, errorOnRequiresAction); + stripeConnect, customerId, errorOnRequiresAction); } }