diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 53c7e465..5675da62 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: dec2c2f1be33711fbeff29ab8205fcf5 + docChecksum: ca0eead0c1254f5920f4b6a53e50b705 docVersion: 1.0.0 speakeasyVersion: 1.796.0 generationVersion: 2.932.15 - releaseVersion: 2.19.1 - configChecksum: 6fcfa48b4a57d41bde01ccfe8b73ee46 + releaseVersion: 2.19.2 + configChecksum: 7b6597c2a5809c2919e2f7713be649a5 repoURL: https://github.com/gr4vy/gr4vy-java.git installationURL: https://github.com/gr4vy/gr4vy-java published: true persistentEdits: - generation_id: c1155540-71c5-45a3-84a5-352233357de9 - pristine_commit_hash: e398222f8807f1fddb94c48629e1eb49f980a723 - pristine_tree_hash: 0944be10be0975df53542202013176e0f9ea944b + generation_id: 3193ff90-4287-4f04-9b38-657d9cf466ea + pristine_commit_hash: b58679cf0ab9c74f32e0acc2990bd4e7fc0db6d0 + pristine_tree_hash: 65408f61a3cfbf06305451e72f6bad86d37b341f features: java: additionalDependencies: 0.1.0 @@ -51,8 +51,8 @@ trackedFiles: pristine_git_object: 7352f66499ad3189cea422bd903ccafb2ce79993 docs/models/components/ACHBankPaymentMethodCreate.md: id: e852a32f84bc - last_write_checksum: sha1:474c254440ecb3b629970e28fa28b8ff8ab1ba8b - pristine_git_object: aba09756bde25c91abc070e9856e4a3dac87a944 + last_write_checksum: sha1:53177bd971f2e5fde2b1faae3cfbc6e645b799c9 + pristine_git_object: a494dd6b2f8bb945ea859eaa6f00b0b2ab1911d3 docs/models/components/AIInsightsReportSpec.md: id: cb77b89acce9 last_write_checksum: sha1:327cf2b0ebf1980a467da39cdd3cbb34ba8a0b84 @@ -79,8 +79,8 @@ trackedFiles: pristine_git_object: ededa3a2d6bff682ff7e4d475262031a6be72ccf docs/models/components/AccountType.md: id: 32b5b4e60da5 - last_write_checksum: sha1:30b86bf112e1ca5305c25965a6fa12b749f18c83 - pristine_git_object: b5ab3e7cadd2194220e55a809596add7e2fbc473 + last_write_checksum: sha1:7a73efa2900778b94f12c12672d6310a97fe37cd + pristine_git_object: 82858068987f7fe02daa532e376b8439aa083692 docs/models/components/AccountUpdaterInquirySummary.md: id: bbb6d651e902 last_write_checksum: sha1:c212857f23958906d4d4378469cbcae2f502659d @@ -2859,8 +2859,8 @@ trackedFiles: pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:258d5d7660f750cd9d33702f5d02def63e399ef7 - pristine_git_object: 225801e2a2122a034bc27afc3df43d296c417cd3 + last_write_checksum: sha1:a5a2548fcd3b342ec89ebbe3a64500a76e04375a + pristine_git_object: 2ee340c774937a69fb1862c0a84c91c79582d997 gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -3203,8 +3203,8 @@ trackedFiles: pristine_git_object: b50475cc7f6041d63c4569256e4ff1850b20d30b src/main/java/com/gr4vy/sdk/SDKConfiguration.java: id: 73a7edeaca45 - last_write_checksum: sha1:fa938615643aab163a5e14214e7b11fb7569ccca - pristine_git_object: 1a1c30c02801dee532e48a047c4012f3307b6a74 + last_write_checksum: sha1:1ad68388c05a4b7fea455c8773586b934de38ea6 + pristine_git_object: 29b9012ba743b44fbfcce3226202fcc5449a5f57 src/main/java/com/gr4vy/sdk/SecuritySource.java: id: 1b6add6b9b50 last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd @@ -3239,8 +3239,8 @@ trackedFiles: pristine_git_object: 364e18f8344a6cb844bdcdee3c14a4646b206ebe src/main/java/com/gr4vy/sdk/models/components/ACHBankPaymentMethodCreate.java: id: 58956823f623 - last_write_checksum: sha1:c51068c7cacc64234400ddb10426bf6cf7309d30 - pristine_git_object: cc396aa041e5eac5efa090d2a4ec23ba139d5193 + last_write_checksum: sha1:46f2971bb0f828bd403e2e7cbfb7ad5d353c1e1b + pristine_git_object: e4944c5d76d7032b451c8f39814da153727d2f74 src/main/java/com/gr4vy/sdk/models/components/AIInsightsReportSpec.java: id: 11b412cb92a0 last_write_checksum: sha1:b7754f5c01adaed74fb5e07b39c7b59a9a0d7453 @@ -3267,8 +3267,8 @@ trackedFiles: pristine_git_object: df7fb6ec9105adc8c5d9a492de03f0466f4025c9 src/main/java/com/gr4vy/sdk/models/components/AccountType.java: id: 478dd361c279 - last_write_checksum: sha1:19dce32670ab97dac16ad9bc7d05887aa916fdc5 - pristine_git_object: e5341ddbefa508c2bbf46e47521e2a1923d1ac31 + last_write_checksum: sha1:9a1c1c75b0f6c85953a1cf95017c433cd38f4ea3 + pristine_git_object: cbdaff552e64bd2350c2c899f1f85bb6abf7daa8 src/main/java/com/gr4vy/sdk/models/components/AccountUpdaterInquirySummary.java: id: f0333b9a86ea last_write_checksum: sha1:507836321199e851be4abb0e3a101e5c42c3a975 @@ -12435,7 +12435,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.paymentServices.list()`: \n * `request.includeFields` **Added**\n" +releaseNotes: "## Java SDK Changes:\n* `gr4vy.paymentMethods.create()`: \n * `requestBody.union(ACHBankPaymentMethodCreate).accountType` **Changed**\n" generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index a11ee13f..0c97e340 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -30,7 +30,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 2.19.1 + version: 2.19.2 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 0aa131c5..4775c897 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -9,8 +9,8 @@ sources: - 1.0.0 openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:ba77a30e806526c5575a0ece5209508c8963aa16d129b068592caa062cd8081d - sourceBlobDigest: sha256:75d52fb8bc5a1fe3874170eb741a79fb41c8c16946e1cbba5bb83b0a43090a6a + sourceRevisionDigest: sha256:f7ce5088afd4f091d0422ac2e7468437747f5592ac8ab9fb33a0cc7edd9f7a38 + sourceBlobDigest: sha256:56f7da2d12bbe944ff935c9268f7733028de04e6fc6edd1eea4802bc0612b131 tags: - latest - 1.0.0 @@ -25,10 +25,10 @@ targets: java: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:ba77a30e806526c5575a0ece5209508c8963aa16d129b068592caa062cd8081d - sourceBlobDigest: sha256:75d52fb8bc5a1fe3874170eb741a79fb41c8c16946e1cbba5bb83b0a43090a6a + sourceRevisionDigest: sha256:f7ce5088afd4f091d0422ac2e7468437747f5592ac8ab9fb33a0cc7edd9f7a38 + sourceBlobDigest: sha256:56f7da2d12bbe944ff935c9268f7733028de04e6fc6edd1eea4802bc0612b131 codeSamplesNamespace: openapi-java-code-samples - codeSamplesRevisionDigest: sha256:60a13b016985dfb7374ead60bf9368d28cd7083c19ce6e475d9d5c8ce249d589 + codeSamplesRevisionDigest: sha256:3d98cc602e979e676002b0a2f128bb2ed5cbfd6a12546d0e19569370c2b80719 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 234cbd05..7e715de1 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.19.1' +implementation 'com.gr4vy:sdk:2.19.2' ``` Maven: @@ -67,7 +67,7 @@ Maven: com.gr4vy sdk - 2.19.1 + 2.19.2 ``` diff --git a/RELEASES.md b/RELEASES.md index 8b77b029..7e8b796f 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -2178,4 +2178,14 @@ Based on: ### Generated - [java v2.19.1] . ### Releases -- [Maven Central v2.19.1] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.19.1 - . \ No newline at end of file +- [Maven Central v2.19.1] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.19.1 - . + +## 2026-08-27 13:26:51 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.796.0 (2.932.15) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v2.19.2] . +### Releases +- [Maven Central v2.19.2] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.19.2 - . \ No newline at end of file diff --git a/docs/models/components/ACHBankPaymentMethodCreate.md b/docs/models/components/ACHBankPaymentMethodCreate.md index aba09756..a494dd6b 100644 --- a/docs/models/components/ACHBankPaymentMethodCreate.md +++ b/docs/models/components/ACHBankPaymentMethodCreate.md @@ -7,15 +7,15 @@ Bank Payment Method for ACH bank accounts. ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `method` | *Optional\* | :heavy_minus_sign: | Always `bank`. | bank | -| `accountHolder` | [BankAccountHolder](../../models/components/BankAccountHolder.md) | :heavy_check_mark: | N/A | | -| `buyerId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the buyer to attach the method to. | fe26475d-ec3e-4884-9553-f7356683f7f9 | -| `buyerExternalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant reference for this payment method. | payment-method-12345 | -| `externalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant identifier for this payment method. | payment-method-12345 | -| `scheme` | *Optional\* | :heavy_minus_sign: | Always `ach`. | ach | -| `accountNumber` | *String* | :heavy_check_mark: | The account number for this ACH bank account | 123456789 | -| `routingNumber` | *String* | :heavy_check_mark: | The routing number for this ACH bank account | 000000111 | -| `isTokenized` | *Optional\* | :heavy_minus_sign: | Whether the account number is tokenized | false | -| `accountType` | [AccountType](../../models/components/AccountType.md) | :heavy_check_mark: | Specify whether this is a `checking` or `savings` account | checking | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `method` | *Optional\* | :heavy_minus_sign: | Always `bank`. | bank | +| `accountHolder` | [BankAccountHolder](../../models/components/BankAccountHolder.md) | :heavy_check_mark: | N/A | | +| `buyerId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the buyer to attach the method to. | fe26475d-ec3e-4884-9553-f7356683f7f9 | +| `buyerExternalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant reference for this payment method. | payment-method-12345 | +| `externalIdentifier` | *JsonNullable\* | :heavy_minus_sign: | The merchant identifier for this payment method. | payment-method-12345 | +| `scheme` | *Optional\* | :heavy_minus_sign: | Always `ach`. | ach | +| `accountNumber` | *String* | :heavy_check_mark: | The account number for this ACH bank account | 123456789 | +| `routingNumber` | *String* | :heavy_check_mark: | The routing number for this ACH bank account | 000000111 | +| `isTokenized` | *Optional\* | :heavy_minus_sign: | Whether the account number is tokenized | false | +| `accountType` | [Optional\](../../models/components/AccountType.md) | :heavy_minus_sign: | Specify whether this is a `checking` or `savings` account. Defaults to `checking`. | checking | \ No newline at end of file diff --git a/docs/models/components/AccountType.md b/docs/models/components/AccountType.md index b5ab3e7c..82858068 100644 --- a/docs/models/components/AccountType.md +++ b/docs/models/components/AccountType.md @@ -1,6 +1,6 @@ # AccountType -Specify whether this is a `checking` or `savings` account +Specify whether this is a `checking` or `savings` account. Defaults to `checking`. ## Example Usage diff --git a/gradle.properties b/gradle.properties index 225801e2..2ee340c7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.gr4vy artifactId=sdk -version=2.19.1 +version=2.19.2 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 1a1c30c0..29b9012b 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.19.1"; + public static final String SDK_VERSION = "2.19.2"; public static final String GEN_VERSION = "2.932.15"; 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/ACHBankPaymentMethodCreate.java b/src/main/java/com/gr4vy/sdk/models/components/ACHBankPaymentMethodCreate.java index cc396aa0..e4944c5d 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/ACHBankPaymentMethodCreate.java +++ b/src/main/java/com/gr4vy/sdk/models/components/ACHBankPaymentMethodCreate.java @@ -14,6 +14,7 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; @@ -84,10 +85,11 @@ public class ACHBankPaymentMethodCreate { private Optional isTokenized; /** - * Specify whether this is a `checking` or `savings` account + * Specify whether this is a `checking` or `savings` account. Defaults to `checking`. */ + @JsonInclude(Include.NON_ABSENT) @JsonProperty("account_type") - private AccountType accountType; + private Optional accountType; @JsonCreator public ACHBankPaymentMethodCreate( @@ -98,7 +100,7 @@ public ACHBankPaymentMethodCreate( @JsonProperty("account_number") String accountNumber, @JsonProperty("routing_number") String routingNumber, @JsonProperty("is_tokenized") Optional isTokenized, - @JsonProperty("account_type") AccountType accountType) { + @JsonProperty("account_type") Optional accountType) { Utils.checkNotNull(accountHolder, "accountHolder"); Utils.checkNotNull(buyerId, "buyerId"); Utils.checkNotNull(buyerExternalIdentifier, "buyerExternalIdentifier"); @@ -122,11 +124,10 @@ public ACHBankPaymentMethodCreate( public ACHBankPaymentMethodCreate( BankAccountHolder accountHolder, String accountNumber, - String routingNumber, - AccountType accountType) { + String routingNumber) { this(accountHolder, JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), accountNumber, routingNumber, - Optional.empty(), accountType); + Optional.empty(), Optional.empty()); } /** @@ -199,11 +200,12 @@ public Optional isTokenized() { } /** - * Specify whether this is a `checking` or `savings` account + * Specify whether this is a `checking` or `savings` account. Defaults to `checking`. */ + @SuppressWarnings("unchecked") @JsonIgnore - public AccountType accountType() { - return accountType; + public Optional accountType() { + return (Optional) accountType; } public static Builder builder() { @@ -309,9 +311,19 @@ public ACHBankPaymentMethodCreate withIsTokenized(Optional isTokenized) } /** - * Specify whether this is a `checking` or `savings` account + * Specify whether this is a `checking` or `savings` account. Defaults to `checking`. */ public ACHBankPaymentMethodCreate withAccountType(AccountType accountType) { + Utils.checkNotNull(accountType, "accountType"); + this.accountType = Optional.ofNullable(accountType); + return this; + } + + + /** + * Specify whether this is a `checking` or `savings` account. Defaults to `checking`. + */ + public ACHBankPaymentMethodCreate withAccountType(Optional accountType) { Utils.checkNotNull(accountType, "accountType"); this.accountType = accountType; return this; @@ -380,7 +392,7 @@ public final static class Builder { private Optional isTokenized; - private AccountType accountType; + private Optional accountType; private Builder() { // force use of static builder() method @@ -491,9 +503,18 @@ public Builder isTokenized(Optional isTokenized) { /** - * Specify whether this is a `checking` or `savings` account + * Specify whether this is a `checking` or `savings` account. Defaults to `checking`. */ public Builder accountType(AccountType accountType) { + Utils.checkNotNull(accountType, "accountType"); + this.accountType = Optional.ofNullable(accountType); + return this; + } + + /** + * Specify whether this is a `checking` or `savings` account. Defaults to `checking`. + */ + public Builder accountType(Optional accountType) { Utils.checkNotNull(accountType, "accountType"); this.accountType = accountType; return this; @@ -503,6 +524,9 @@ public ACHBankPaymentMethodCreate build() { if (isTokenized == null) { isTokenized = _SINGLETON_VALUE_IsTokenized.value(); } + if (accountType == null) { + accountType = _SINGLETON_VALUE_AccountType.value(); + } return new ACHBankPaymentMethodCreate( accountHolder, buyerId, buyerExternalIdentifier, @@ -528,5 +552,11 @@ public ACHBankPaymentMethodCreate build() { "is_tokenized", "false", new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_AccountType = + new LazySingletonValue<>( + "account_type", + "\"checking\"", + new TypeReference>() {}); } } diff --git a/src/main/java/com/gr4vy/sdk/models/components/AccountType.java b/src/main/java/com/gr4vy/sdk/models/components/AccountType.java index e5341ddb..cbdaff55 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/AccountType.java +++ b/src/main/java/com/gr4vy/sdk/models/components/AccountType.java @@ -21,7 +21,7 @@ /** * AccountType * - *

Specify whether this is a `checking` or `savings` account + *

Specify whether this is a `checking` or `savings` account. Defaults to `checking`. */ public class AccountType {