diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 4622e1f7..5c0f24d5 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: 816149e22f33cfc8c2e99554892f1b89 + docChecksum: faccc22c75487a5bdf67f315e8b660ea docVersion: 1.0.0 speakeasyVersion: 1.797.0 generationVersion: 2.937.18 - releaseVersion: 2.19.10 - configChecksum: 6988623de62db297119c2d6306eaf6d0 + releaseVersion: 2.19.11 + configChecksum: a77c4b5166e5f6b9905ccb0f0b683574 repoURL: https://github.com/gr4vy/gr4vy-java.git installationURL: https://github.com/gr4vy/gr4vy-java published: true persistentEdits: - generation_id: bab673f4-65f0-4d3d-897f-7a9b6b4a0e23 - pristine_commit_hash: 5ad089ae80cd4164953c5ee3081631e4d01812af - pristine_tree_hash: edf83e87464fc2665040e782c29cc3c65e7b8506 + generation_id: 2f3ef9b9-087b-4843-9ef4-c5c5d65e2e3f + pristine_commit_hash: 48f2424418e67e3d9d89862c5b3623a039e52b16 + pristine_tree_hash: 2ea367cc556e0bf927814a8453294b9af1f08908 features: java: additionalDependencies: 0.1.0 @@ -1221,6 +1221,10 @@ trackedFiles: id: 9487ae6ffe90 last_write_checksum: sha1:d758de80df026c975d995fa3b37638004c2a32b9 pristine_git_object: 3ddba69e72b58d3ffe172d926efd15d70ff0cdb6 + docs/models/components/RepayBankOptions.md: + id: 4d5618a0cc52 + last_write_checksum: sha1:44fa6f9ff068abf2b2229d4ded3f3a400c3032b1 + pristine_git_object: f918b758ebe3569646f4f9b8dcebc4236d51df3c docs/models/components/Report.md: id: 610bd9ffdc9d last_write_checksum: sha1:6ccde4e766a220ebcd73c688d1e108a0dd313dcb @@ -1325,6 +1329,10 @@ trackedFiles: id: 5591e864637a last_write_checksum: sha1:80164f666630fa76206f3c4b623345c32e5d9c29 pristine_git_object: 8023c4c5f2d338a4c2d236bebd7772691fb2f200 + docs/models/components/SecCode.md: + id: 582b117605ac + last_write_checksum: sha1:a80da84a24b8606cb703bc41c3b7a01eb7f732af + pristine_git_object: a68e5daed733cea753dc3632e75061fc35a1450e docs/models/components/Security.md: id: 3878f0f84029 last_write_checksum: sha1:130ce67c86b8efbd1dfdc247a52629887aeba93f @@ -1523,8 +1531,8 @@ trackedFiles: pristine_git_object: 428794d12ebb53b788c3a52a007b9fff3b2c4241 docs/models/components/TransactionConnectionOptions.md: id: 2a90ee52a662 - last_write_checksum: sha1:19ac7c797b57a744823c778f2262934b0f4df781 - pristine_git_object: 41901748492b2c9065a392a754184b1f80163d0d + last_write_checksum: sha1:246b98b5567442f3927ed27e2217ff6c6b004ed0 + pristine_git_object: ac3961a8bc2d59a64532154833b21306e34c454a docs/models/components/TransactionCreate.md: id: 0af6b811ca1f last_write_checksum: sha1:1800f8bd0f00d21470f52ba8697c4a872c4bb9f5 @@ -2871,8 +2879,8 @@ trackedFiles: pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:e6accf528ab38c4f6c8156ae1c70d0a28e285399 - pristine_git_object: d8f6204373d7fd5b8f1e087649a21a8359284e3c + last_write_checksum: sha1:e369d6cac5ddc2315aeb624ce6e2a841aea84d30 + pristine_git_object: fee1f53098c8ee360641e7071bca92da7b92828f gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -3215,8 +3223,8 @@ trackedFiles: pristine_git_object: b50475cc7f6041d63c4569256e4ff1850b20d30b src/main/java/com/gr4vy/sdk/SDKConfiguration.java: id: 73a7edeaca45 - last_write_checksum: sha1:089cef876f96474d63ff5fc079178a585cf2d28d - pristine_git_object: fe4d67465b5c6152a3f89a1f80520b8e49cacc35 + last_write_checksum: sha1:8ee00c9fdeb6ec63c04ca73943daf8d95390e4d5 + pristine_git_object: b613171ec22376301f98ee460ddee7ce79fc8a08 src/main/java/com/gr4vy/sdk/SecuritySource.java: id: 1b6add6b9b50 last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd @@ -4421,6 +4429,10 @@ trackedFiles: id: c1b3d29069dc last_write_checksum: sha1:2eeb77f03654e1515cdcfe15315145679796646b pristine_git_object: 8f209b1ad757eb550905f0c186565cddb3f53b59 + src/main/java/com/gr4vy/sdk/models/components/RepayBankOptions.java: + id: af79964e044d + last_write_checksum: sha1:cefcdec735162334f766e0a137f3af7fb7ad19e3 + pristine_git_object: b3ece337abb997a5e7f39ac025daaf5476db9a1e src/main/java/com/gr4vy/sdk/models/components/Report.java: id: 8bf6247989f1 last_write_checksum: sha1:382964e811f03b155521feef695b6d10f1a75712 @@ -4525,6 +4537,10 @@ trackedFiles: id: d1084d2ea48a last_write_checksum: sha1:60d19ee1d0d289c84246467f9e8583335b248786 pristine_git_object: 2fd6ade5a51c5775a5f24993578dfe8e4e236676 + src/main/java/com/gr4vy/sdk/models/components/SecCode.java: + id: 702cc9cadfe6 + last_write_checksum: sha1:14838fb79cba527d8f6f8afa8989522dc3cade84 + pristine_git_object: c115d05da5f026b25e305c5b8cebb68d1a10385b src/main/java/com/gr4vy/sdk/models/components/Security.java: id: 42fff468ea64 last_write_checksum: sha1:7592e19af06a7621e32345ddad9fbfdcf44d0334 @@ -4727,8 +4743,8 @@ trackedFiles: pristine_git_object: 62046c9977b03ec5c305b415b5822e8b687e45af src/main/java/com/gr4vy/sdk/models/components/TransactionConnectionOptions.java: id: 31501e4506f3 - last_write_checksum: sha1:90d3d0a8d022cbaae7f45ad28a4fd5343d549e81 - pristine_git_object: 11f3dfb340168be406c4dc3ac36c31a7f8391aba + last_write_checksum: sha1:e017baa777548312c5bcc8b20a188696861833b9 + pristine_git_object: fea2b982d4ce432b49d21462427026f5b1d380f5 src/main/java/com/gr4vy/sdk/models/components/TransactionCreate.java: id: 85da9dd45d8a last_write_checksum: sha1:277d073f4476aad9caf28749d0f68ce1f8706864 @@ -12459,9 +12475,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: - * `gr4vy.transactions.capture()`: `response.union(TransactionCapture).tracking` **Added** +releaseNotes: "## Java SDK Changes:\n* `gr4vy.transactions.create()`: \n * `request.transactionCreate.connectionOptions.repayBank` **Added**\n* `gr4vy.transactions.update()`: \n * `request.transactionUpdate.connectionOptions.repayBank` **Added**\n* `gr4vy.paymentLinks.create()`: \n * `request.paymentLinkCreate.connectionOptions.repayBank` **Added**\n" generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index af3e0fda..b591f7c1 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -30,7 +30,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 2.19.10 + version: 2.19.11 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 84f105e9..d845fc75 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -9,8 +9,8 @@ sources: - 1.0.0 openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:d011c48e6d8c223b6e4a2d98a5c1038473946c744d21cc88c3e57d9b68d337ee - sourceBlobDigest: sha256:14f6aaa30bd40ca3373f30748d0d796fde49748273ca7f4ed9f4c21fe9d9e3dd + sourceRevisionDigest: sha256:3871c735f3d1f840ee278273afb80a0ffc4040f073ccf2d980a402b526b05b61 + sourceBlobDigest: sha256:d4abe979a9983b9446045724f705b8df62683ceb35f3689ae0dd92e0e14bdda8 tags: - latest - 1.0.0 @@ -25,10 +25,10 @@ targets: java: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:d011c48e6d8c223b6e4a2d98a5c1038473946c744d21cc88c3e57d9b68d337ee - sourceBlobDigest: sha256:14f6aaa30bd40ca3373f30748d0d796fde49748273ca7f4ed9f4c21fe9d9e3dd + sourceRevisionDigest: sha256:3871c735f3d1f840ee278273afb80a0ffc4040f073ccf2d980a402b526b05b61 + sourceBlobDigest: sha256:d4abe979a9983b9446045724f705b8df62683ceb35f3689ae0dd92e0e14bdda8 codeSamplesNamespace: openapi-java-code-samples - codeSamplesRevisionDigest: sha256:73468d03d2640d596eacdfeb789a70bc4c44fdf5c202f4e50fff5d88818cdaf2 + codeSamplesRevisionDigest: sha256:4ae3a71a6e0f6f286c6d87cf7ada92831978a891c78ea8b7ffc5b37bfb74ea7e workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index b3dbd633..0b0ae642 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.10' +implementation 'com.gr4vy:sdk:2.19.11' ``` Maven: @@ -67,7 +67,7 @@ Maven: com.gr4vy sdk - 2.19.10 + 2.19.11 ``` diff --git a/RELEASES.md b/RELEASES.md index e14f8476..eaddc8fc 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -2268,4 +2268,14 @@ Based on: ### Generated - [java v2.19.10] . ### Releases -- [Maven Central v2.19.10] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.19.10 - . \ No newline at end of file +- [Maven Central v2.19.10] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.19.10 - . + +## 2026-09-16 18:29:04 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.797.0 (2.937.18) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v2.19.11] . +### Releases +- [Maven Central v2.19.11] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.19.11 - . \ No newline at end of file diff --git a/docs/models/components/RepayBankOptions.md b/docs/models/components/RepayBankOptions.md new file mode 100644 index 00000000..f918b758 --- /dev/null +++ b/docs/models/components/RepayBankOptions.md @@ -0,0 +1,8 @@ +# RepayBankOptions + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `secCode` | [JsonNullable\](../../models/components/SecCode.md) | :heavy_minus_sign: | The Nacha Standard Entry Class code describing how the account holder authorized an ACH debit. When omitted, `TelDebit` is used for a `moto` payment source and `WebDebit` otherwise. Ignored for business accounts, which Repay requires to use `CcdDebit`. | WebDebit | \ No newline at end of file diff --git a/docs/models/components/SecCode.md b/docs/models/components/SecCode.md new file mode 100644 index 00000000..a68e5dae --- /dev/null +++ b/docs/models/components/SecCode.md @@ -0,0 +1,21 @@ +# SecCode + +## Example Usage + +```java +import com.gr4vy.sdk.models.components.SecCode; + +SecCode value = SecCode.WEB_DEBIT; + +// Open enum: use .of() to create instances from custom string values +SecCode custom = SecCode.of("custom_value"); +``` + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `WEB_DEBIT` | WebDebit | +| `TEL_DEBIT` | TelDebit | +| `PPD_DEBIT` | PpdDebit | \ No newline at end of file diff --git a/docs/models/components/TransactionConnectionOptions.md b/docs/models/components/TransactionConnectionOptions.md index 41901748..ac3961a8 100644 --- a/docs/models/components/TransactionConnectionOptions.md +++ b/docs/models/components/TransactionConnectionOptions.md @@ -60,6 +60,7 @@ | `paypalPaypaldirectorder` | [JsonNullable\](../../models/components/PaypalDirectOrderOptions.md) | :heavy_minus_sign: | Custom options to be passed to the `paypal-paypaldirectorder` connector. | | `paypalPaypalpaylater` | [JsonNullable\](../../models/components/PaypalOptions.md) | :heavy_minus_sign: | Custom options to be passed to the `paypal-paypalpaylater` connector. | | `powertranzCard` | [JsonNullable\](../../models/components/PowertranzOptions.md) | :heavy_minus_sign: | Custom options to be passed to the `powertranz-card` connector. | +| `repayBank` | [JsonNullable\](../../models/components/RepayBankOptions.md) | :heavy_minus_sign: | Custom options to be passed to the `repay-bank` connector. | | `riskifiedAntiFraud` | [JsonNullable\](../../models/components/RiskifiedAntiFraudOptions.md) | :heavy_minus_sign: | Custom options to be passed to the `riskified-anti-fraud` connector. | | `stripeAffirm` | [JsonNullable\](../../models/components/StripeOptions.md) | :heavy_minus_sign: | Custom options to be passed to the `stripe-affirm` connector. | | `stripeCard` | [JsonNullable\](../../models/components/StripeCardOptions.md) | :heavy_minus_sign: | Custom options to be passed to the `stripe-card` connector. | diff --git a/gradle.properties b/gradle.properties index d8f62043..fee1f530 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.gr4vy artifactId=sdk -version=2.19.10 +version=2.19.11 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 fe4d6746..b613171e 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.10"; + public static final String SDK_VERSION = "2.19.11"; public static final String GEN_VERSION = "2.937.18"; 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/RepayBankOptions.java b/src/main/java/com/gr4vy/sdk/models/components/RepayBankOptions.java new file mode 100644 index 00000000..b3ece337 --- /dev/null +++ b/src/main/java/com/gr4vy/sdk/models/components/RepayBankOptions.java @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.gr4vy.sdk.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.gr4vy.sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class RepayBankOptions { + /** + * The Nacha Standard Entry Class code describing how the account holder authorized an ACH debit. When + * omitted, `TelDebit` is used for a `moto` payment source and `WebDebit` otherwise. Ignored for + * business accounts, which Repay requires to use `CcdDebit`. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("sec_code") + private JsonNullable secCode; + + @JsonCreator + public RepayBankOptions( + @JsonProperty("sec_code") JsonNullable secCode) { + Utils.checkNotNull(secCode, "secCode"); + this.secCode = secCode; + } + + public RepayBankOptions() { + this(JsonNullable.undefined()); + } + + /** + * The Nacha Standard Entry Class code describing how the account holder authorized an ACH debit. When + * omitted, `TelDebit` is used for a `moto` payment source and `WebDebit` otherwise. Ignored for + * business accounts, which Repay requires to use `CcdDebit`. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable secCode() { + return (JsonNullable) secCode; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The Nacha Standard Entry Class code describing how the account holder authorized an ACH debit. When + * omitted, `TelDebit` is used for a `moto` payment source and `WebDebit` otherwise. Ignored for + * business accounts, which Repay requires to use `CcdDebit`. + */ + public RepayBankOptions withSecCode(SecCode secCode) { + Utils.checkNotNull(secCode, "secCode"); + this.secCode = JsonNullable.of(secCode); + return this; + } + + /** + * The Nacha Standard Entry Class code describing how the account holder authorized an ACH debit. When + * omitted, `TelDebit` is used for a `moto` payment source and `WebDebit` otherwise. Ignored for + * business accounts, which Repay requires to use `CcdDebit`. + */ + public RepayBankOptions withSecCode(JsonNullable secCode) { + Utils.checkNotNull(secCode, "secCode"); + this.secCode = secCode; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RepayBankOptions other = (RepayBankOptions) o; + return + Utils.enhancedDeepEquals(this.secCode, other.secCode); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + secCode); + } + + @Override + public String toString() { + return Utils.toString(RepayBankOptions.class, + "secCode", secCode); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private JsonNullable secCode = JsonNullable.undefined(); + + private Builder() { + // force use of static builder() method + } + + + /** + * The Nacha Standard Entry Class code describing how the account holder authorized an ACH debit. When + * omitted, `TelDebit` is used for a `moto` payment source and `WebDebit` otherwise. Ignored for + * business accounts, which Repay requires to use `CcdDebit`. + */ + public Builder secCode(SecCode secCode) { + Utils.checkNotNull(secCode, "secCode"); + this.secCode = JsonNullable.of(secCode); + return this; + } + + /** + * The Nacha Standard Entry Class code describing how the account holder authorized an ACH debit. When + * omitted, `TelDebit` is used for a `moto` payment source and `WebDebit` otherwise. Ignored for + * business accounts, which Repay requires to use `CcdDebit`. + */ + public Builder secCode(JsonNullable secCode) { + Utils.checkNotNull(secCode, "secCode"); + this.secCode = secCode; + return this; + } + + public RepayBankOptions build() { + + return new RepayBankOptions( + secCode); + } + + } +} diff --git a/src/main/java/com/gr4vy/sdk/models/components/SecCode.java b/src/main/java/com/gr4vy/sdk/models/components/SecCode.java new file mode 100644 index 00000000..c115d05d --- /dev/null +++ b/src/main/java/com/gr4vy/sdk/models/components/SecCode.java @@ -0,0 +1,131 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.gr4vy.sdk.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.Override; +import java.lang.String; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +/** + * Wrapper for an "open" enum that can handle unknown values from API responses + * without runtime errors. Instances are immutable singletons with reference equality. + * Use {@code asEnum()} for switch expressions. + */ +public class SecCode { + + public static final SecCode WEB_DEBIT = new SecCode("WebDebit"); + public static final SecCode TEL_DEBIT = new SecCode("TelDebit"); + public static final SecCode PPD_DEBIT = new SecCode("PpdDebit"); + + // This map will grow whenever a Color gets created with a new + // unrecognized value (a potential memory leak if the user is not + // careful). Keep this field lower case to avoid clashing with + // generated member names which will always be upper cased (Java + // convention) + private static final Map values = createValuesMap(); + private static final Map enums = createEnumsMap(); + + private final String value; + + private SecCode(String value) { + this.value = value; + } + + /** + * Returns a SecCode with the given value. For a specific value the + * returned object will always be a singleton so reference equality + * is satisfied when the values are the same. + * + * @param value value to be wrapped as SecCode + */ + @JsonCreator + public static SecCode of(String value) { + synchronized (SecCode.class) { + return values.computeIfAbsent(value, v -> new SecCode(v)); + } + } + + @JsonValue + public String value() { + return value; + } + + public Optional asEnum() { + return Optional.ofNullable(enums.getOrDefault(value, null)); + } + + public boolean isKnown() { + return asEnum().isPresent(); + } + + @Override + public int hashCode() { + return Objects.hash(value); + } + + @Override + public boolean equals(java.lang.Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + SecCode other = (SecCode) obj; + return Objects.equals(value, other.value); + } + + @Override + public String toString() { + return "SecCode [value=" + value + "]"; + } + + // return an array just like an enum + public static SecCode[] values() { + synchronized (SecCode.class) { + return values.values().toArray(new SecCode[] {}); + } + } + + private static final Map createValuesMap() { + Map map = new LinkedHashMap<>(); + map.put("WebDebit", WEB_DEBIT); + map.put("TelDebit", TEL_DEBIT); + map.put("PpdDebit", PPD_DEBIT); + return map; + } + + private static final Map createEnumsMap() { + Map map = new HashMap<>(); + map.put("WebDebit", SecCodeEnum.WEB_DEBIT); + map.put("TelDebit", SecCodeEnum.TEL_DEBIT); + map.put("PpdDebit", SecCodeEnum.PPD_DEBIT); + return map; + } + + + public enum SecCodeEnum { + + WEB_DEBIT("WebDebit"), + TEL_DEBIT("TelDebit"), + PPD_DEBIT("PpdDebit"),; + + private final String value; + + private SecCodeEnum(String value) { + this.value = value; + } + + public String value() { + return value; + } + } +} + diff --git a/src/main/java/com/gr4vy/sdk/models/components/TransactionConnectionOptions.java b/src/main/java/com/gr4vy/sdk/models/components/TransactionConnectionOptions.java index 11f3dfb3..fea2b982 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/TransactionConnectionOptions.java +++ b/src/main/java/com/gr4vy/sdk/models/components/TransactionConnectionOptions.java @@ -402,6 +402,13 @@ public class TransactionConnectionOptions { @JsonProperty("powertranz-card") private JsonNullable powertranzCard; + /** + * Custom options to be passed to the `repay-bank` connector. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("repay-bank") + private JsonNullable repayBank; + /** * Custom options to be passed to the `riskified-anti-fraud` connector. */ @@ -536,6 +543,7 @@ public TransactionConnectionOptions( @JsonProperty("paypal-paypaldirectorder") JsonNullable paypalPaypaldirectorder, @JsonProperty("paypal-paypalpaylater") JsonNullable paypalPaypalpaylater, @JsonProperty("powertranz-card") JsonNullable powertranzCard, + @JsonProperty("repay-bank") JsonNullable repayBank, @JsonProperty("riskified-anti-fraud") JsonNullable riskifiedAntiFraud, @JsonProperty("stripe-affirm") JsonNullable stripeAffirm, @JsonProperty("stripe-card") JsonNullable stripeCard, @@ -602,6 +610,7 @@ public TransactionConnectionOptions( Utils.checkNotNull(paypalPaypaldirectorder, "paypalPaypaldirectorder"); Utils.checkNotNull(paypalPaypalpaylater, "paypalPaypalpaylater"); Utils.checkNotNull(powertranzCard, "powertranzCard"); + Utils.checkNotNull(repayBank, "repayBank"); Utils.checkNotNull(riskifiedAntiFraud, "riskifiedAntiFraud"); Utils.checkNotNull(stripeAffirm, "stripeAffirm"); Utils.checkNotNull(stripeCard, "stripeCard"); @@ -668,6 +677,7 @@ public TransactionConnectionOptions( this.paypalPaypaldirectorder = paypalPaypaldirectorder; this.paypalPaypalpaylater = paypalPaypalpaylater; this.powertranzCard = powertranzCard; + this.repayBank = repayBank; this.riskifiedAntiFraud = riskifiedAntiFraud; this.stripeAffirm = stripeAffirm; this.stripeCard = stripeCard; @@ -703,7 +713,8 @@ public TransactionConnectionOptions() { JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined()); + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined()); } /** @@ -1202,6 +1213,15 @@ public JsonNullable powertranzCard() { return (JsonNullable) powertranzCard; } + /** + * Custom options to be passed to the `repay-bank` connector. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable repayBank() { + return (JsonNullable) repayBank; + } + /** * Custom options to be passed to the `riskified-anti-fraud` connector. */ @@ -2298,6 +2318,24 @@ public TransactionConnectionOptions withPowertranzCard(JsonNullable repayBank) { + Utils.checkNotNull(repayBank, "repayBank"); + this.repayBank = repayBank; + return this; + } + /** * Custom options to be passed to the `riskified-anti-fraud` connector. */ @@ -2561,6 +2599,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.paypalPaypaldirectorder, other.paypalPaypaldirectorder) && Utils.enhancedDeepEquals(this.paypalPaypalpaylater, other.paypalPaypalpaylater) && Utils.enhancedDeepEquals(this.powertranzCard, other.powertranzCard) && + Utils.enhancedDeepEquals(this.repayBank, other.repayBank) && Utils.enhancedDeepEquals(this.riskifiedAntiFraud, other.riskifiedAntiFraud) && Utils.enhancedDeepEquals(this.stripeAffirm, other.stripeAffirm) && Utils.enhancedDeepEquals(this.stripeCard, other.stripeCard) && @@ -2595,10 +2634,11 @@ public int hashCode() { mockdsCard, nuveiCard, nuveiIdeal, nuveiKlarna, nuveiPse, oxxoOxxo, paypalPaypal, paypalPaypaldirectorder, paypalPaypalpaylater, - powertranzCard, riskifiedAntiFraud, stripeAffirm, - stripeCard, stripeKlarna, stripeOnelink, - stripeStripe, travelhubCard, trustlyTrustly, - worldpayvapCard, wpayEverydaypay, wpayPayto); + powertranzCard, repayBank, riskifiedAntiFraud, + stripeAffirm, stripeCard, stripeKlarna, + stripeOnelink, stripeStripe, travelhubCard, + trustlyTrustly, worldpayvapCard, wpayEverydaypay, + wpayPayto); } @Override @@ -2659,6 +2699,7 @@ public String toString() { "paypalPaypaldirectorder", paypalPaypaldirectorder, "paypalPaypalpaylater", paypalPaypalpaylater, "powertranzCard", powertranzCard, + "repayBank", repayBank, "riskifiedAntiFraud", riskifiedAntiFraud, "stripeAffirm", stripeAffirm, "stripeCard", stripeCard, @@ -2785,6 +2826,8 @@ public final static class Builder { private JsonNullable powertranzCard = JsonNullable.undefined(); + private JsonNullable repayBank = JsonNullable.undefined(); + private JsonNullable riskifiedAntiFraud = JsonNullable.undefined(); private JsonNullable stripeAffirm = JsonNullable.undefined(); @@ -3859,6 +3902,25 @@ public Builder powertranzCard(JsonNullable powertra } + /** + * Custom options to be passed to the `repay-bank` connector. + */ + public Builder repayBank(RepayBankOptions repayBank) { + Utils.checkNotNull(repayBank, "repayBank"); + this.repayBank = JsonNullable.of(repayBank); + return this; + } + + /** + * Custom options to be passed to the `repay-bank` connector. + */ + public Builder repayBank(JsonNullable repayBank) { + Utils.checkNotNull(repayBank, "repayBank"); + this.repayBank = repayBank; + return this; + } + + /** * Custom options to be passed to the `riskified-anti-fraud` connector. */ @@ -4088,10 +4150,11 @@ public TransactionConnectionOptions build() { mockdsCard, nuveiCard, nuveiIdeal, nuveiKlarna, nuveiPse, oxxoOxxo, paypalPaypal, paypalPaypaldirectorder, paypalPaypalpaylater, - powertranzCard, riskifiedAntiFraud, stripeAffirm, - stripeCard, stripeKlarna, stripeOnelink, - stripeStripe, travelhubCard, trustlyTrustly, - worldpayvapCard, wpayEverydaypay, wpayPayto); + powertranzCard, repayBank, riskifiedAntiFraud, + stripeAffirm, stripeCard, stripeKlarna, + stripeOnelink, stripeStripe, travelhubCard, + trustlyTrustly, worldpayvapCard, wpayEverydaypay, + wpayPayto); } }