From 0b8335383e37616f0cf36ff7be8585f50fce6d6d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 10 Jul 2026 00:33:25 +0000 Subject: [PATCH 1/2] ## Java SDK Changes: * `gr4vy.merchantAccounts.list()`: `response.items[].loonMerchantAccountId` **Added** * `gr4vy.merchantAccounts.create()`: * `request.loonMerchantAccountId` **Added** * `response.loonMerchantAccountId` **Added** * `gr4vy.merchantAccounts.get()`: `response.loonMerchantAccountId` **Added** * `gr4vy.merchantAccounts.update()`: * `request.merchantAccountUpdate.loonMerchantAccountId` **Added** * `response.loonMerchantAccountId` **Added** --- .speakeasy/gen.lock | 50 ++++---- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 12 +- README.md | 4 +- RELEASES.md | 12 +- docs/models/components/MerchantAccount.md | 1 + .../components/MerchantAccountCreate.md | 1 + .../components/MerchantAccountUpdate.md | 1 + gradle.properties | 2 +- .../java/com/gr4vy/sdk/SDKConfiguration.java | 4 +- .../models/components/MerchantAccount.java | 110 +++++++++++++++--- .../components/MerchantAccountCreate.java | 98 ++++++++++++++-- .../components/MerchantAccountUpdate.java | 95 +++++++++++++-- 13 files changed, 320 insertions(+), 72 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 0b23c961..76921f6e 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: 8d7247e01970d134b7e0d625836723b8 + docChecksum: 33fa77c017964ba28f9a4cfbacf8e369 docVersion: 1.0.0 - speakeasyVersion: 1.789.0 - generationVersion: 2.916.2 - releaseVersion: 2.16.106 - configChecksum: f537577e385dddd913d9996c35a5c5dc + speakeasyVersion: 1.789.1 + generationVersion: 2.916.4 + releaseVersion: 2.16.107 + configChecksum: bcd54f5ca18fa67684bc3c73bf154f6e repoURL: https://github.com/gr4vy/gr4vy-java.git installationURL: https://github.com/gr4vy/gr4vy-java published: true persistentEdits: - generation_id: 8f6fc44b-8de4-4810-92f6-3ec33b13a0c3 - pristine_commit_hash: 44d202936518eab59284a0fdbd18ab17be87defb - pristine_tree_hash: c7b53470819c2f6953fa3efd81fede8add05e184 + generation_id: e4a5b1c8-05c9-4d06-922a-f0fe497668a8 + pristine_commit_hash: 1493ed5cd7189d83205db95e8d23eac5a627c2b1 + pristine_tree_hash: f549a0447d858302109ca824fb97995f33311188 features: java: additionalDependencies: 0.1.0 @@ -710,12 +710,12 @@ trackedFiles: pristine_git_object: 0ebcc1a2d8c19f3d9112245ab8d9c34c27d21ecc docs/models/components/MerchantAccount.md: id: 648030314b0f - last_write_checksum: sha1:c633b23c9a5972358a24ff514533fa38fca5ac0f - pristine_git_object: d3a7d6bc077141d7aa1f67ebf7f5492f07cfc213 + last_write_checksum: sha1:b323fc7941a954d733fd738317b2c09377471f21 + pristine_git_object: 3f2ebbcb2ca8167569e7d0a589d2e57cb2b0c2f7 docs/models/components/MerchantAccountCreate.md: id: 66caf1e4a763 - last_write_checksum: sha1:77dfa050f5be238d2ca8dfcdbe5f6bd7b3a0d0c0 - pristine_git_object: 2db67e0f5371e8ba0281911e80183f8d4ff76316 + last_write_checksum: sha1:753833793959b9fc7faa9248f2685874bb563ad6 + pristine_git_object: cc10f3d00c5bbb5af1364158f0286848edbf3ae7 docs/models/components/MerchantAccountSummary.md: id: f2d06bb7c67e last_write_checksum: sha1:d377fa1f01f29f73aceec054d9710a1bb7ba2149 @@ -738,8 +738,8 @@ trackedFiles: pristine_git_object: 7e614985f9499e0ed1baa99697804c76c05ca3db docs/models/components/MerchantAccountUpdate.md: id: 9709bd5efde9 - last_write_checksum: sha1:42601b1ebd90ec3041ef9ae7ac7c3fc6196a9ce7 - pristine_git_object: ae46e16d21961b0839ae88505b575789fa427ab7 + last_write_checksum: sha1:227dcd386d99448b434e85c60eaf3698a6a0d6a6 + pristine_git_object: 20f9a8a2053a4df1d15d77f545892c47566cb38c docs/models/components/MerchantAccounts.md: id: 066c94dd9676 last_write_checksum: sha1:a8427c0a732719bdad84944f2d319f12ae72acd7 @@ -2746,8 +2746,8 @@ trackedFiles: pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:f66d226012e1eaac8b5fac7c6abdff31148e8c90 - pristine_git_object: 8fb0fcdcd97e1b720f0dbf5f95e41b07de312977 + last_write_checksum: sha1:46fae8f5f7f30ed0111dad323de7471db8ab5241 + pristine_git_object: 6a425d35ca86b333529aa8e7e420cdba043018e7 gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -3058,8 +3058,8 @@ trackedFiles: pristine_git_object: 502a7312d3dc82c102dbaf7ed5e952d0c793e26f src/main/java/com/gr4vy/sdk/SDKConfiguration.java: id: 73a7edeaca45 - last_write_checksum: sha1:8beb271bc3d7fd15a4f1a4332a8c55ba80d8296e - pristine_git_object: 2c33d495a04a3462760b000e51574302fcce5884 + last_write_checksum: sha1:ad67f615ed02f249c43a047110debfa60fe045a1 + pristine_git_object: c4fad1fbfe10a60d07ff694b470ffddce7452baa src/main/java/com/gr4vy/sdk/SecuritySource.java: id: 1b6add6b9b50 last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd @@ -3754,12 +3754,12 @@ trackedFiles: pristine_git_object: 7d7cabc34746674fa202ba016535ced3dfbd6971 src/main/java/com/gr4vy/sdk/models/components/MerchantAccount.java: id: 4de940611d0d - last_write_checksum: sha1:4f62a04650e71ecf497a9dde5d038f1258d3cd01 - pristine_git_object: 3b8eca756f34caed7e43a5555dfceb39152ea8ea + last_write_checksum: sha1:276ec575da0eb96bcc2d37cbaf7229794c3ff3c9 + pristine_git_object: 1f981afcb93a1fbd48d380ce4b402d5f23424ae2 src/main/java/com/gr4vy/sdk/models/components/MerchantAccountCreate.java: id: f630f5edfb5e - last_write_checksum: sha1:d3b134d6da878bb99916091568f51264934036d9 - pristine_git_object: 6469d19f0069434f4d54c6a2c69c67a482082181 + last_write_checksum: sha1:3bfd05d91a1d0afa5ad479d58d21eba70a327050 + pristine_git_object: 4e6ee8f102d14b21a3ef7f1878fcb00f13d79740 src/main/java/com/gr4vy/sdk/models/components/MerchantAccountSummary.java: id: eddd35aff726 last_write_checksum: sha1:16f18a3311e2c8a14a0b03b10096fab82713ad8b @@ -3782,8 +3782,8 @@ trackedFiles: pristine_git_object: c634f8df8c6fe08d35ecb363580187d424a1e69f src/main/java/com/gr4vy/sdk/models/components/MerchantAccountUpdate.java: id: 437f8c2b5c0f - last_write_checksum: sha1:cd075bc95bc115810e0e50797bab14346e3348a0 - pristine_git_object: d02b2fb70f20ddfb0ea3df190ceb504290140cbc + last_write_checksum: sha1:53f1ab14517bcc0ae8c8cfc46d9235cd1971aa92 + pristine_git_object: 38fccfe54d762a4f081f7ecfe58481beb3eac8da src/main/java/com/gr4vy/sdk/models/components/MerchantAccounts.java: id: e101e34f1fc8 last_write_checksum: sha1:fb92dd91df2cc8c3c5461204ca8021427b90e295 @@ -11904,7 +11904,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.connectionOptions.klarnaKlarna` **Added**\n* `gr4vy.transactions.update()`: \n * `request.transactionUpdate.connectionOptions.klarnaKlarna` **Added**\n* `gr4vy.paymentLinks.create()`: \n * `request.paymentLinkCreate.connectionOptions.klarnaKlarna` **Added**\n" +releaseNotes: "## Java SDK Changes:\n* `gr4vy.merchantAccounts.list()`: `response.items[].loonMerchantAccountId` **Added**\n* `gr4vy.merchantAccounts.create()`: \n * `request.loonMerchantAccountId` **Added**\n * `response.loonMerchantAccountId` **Added**\n* `gr4vy.merchantAccounts.get()`: `response.loonMerchantAccountId` **Added**\n* `gr4vy.merchantAccounts.update()`: \n * `request.merchantAccountUpdate.loonMerchantAccountId` **Added**\n * `response.loonMerchantAccountId` **Added**\n" generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 64578106..ed8fd2b6 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -30,7 +30,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 2.16.106 + version: 2.16.107 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 d6590367..ddcef4ec 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.789.0 +speakeasyVersion: 1.789.1 sources: Gr4vy: sourceNamespace: openapi @@ -9,8 +9,8 @@ sources: - 1.0.0 openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:67350726742537eae77d740c087f6bc9da5569c3624cd328e29c361b162d1c7d - sourceBlobDigest: sha256:3c8d5915ff412139183f1eb134e178b990e26be2f670203ef12df93201a764fb + sourceRevisionDigest: sha256:72329240cfdc40a3d79c190da7c71c3c8275ab46a82cefe996dcb1c3d97ab496 + sourceBlobDigest: sha256:097d5d856f3d7e0c898b94db355247de70904a75f3cedaa53a015aba5436221d tags: - latest - 1.0.0 @@ -25,10 +25,10 @@ targets: java: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:67350726742537eae77d740c087f6bc9da5569c3624cd328e29c361b162d1c7d - sourceBlobDigest: sha256:3c8d5915ff412139183f1eb134e178b990e26be2f670203ef12df93201a764fb + sourceRevisionDigest: sha256:72329240cfdc40a3d79c190da7c71c3c8275ab46a82cefe996dcb1c3d97ab496 + sourceBlobDigest: sha256:097d5d856f3d7e0c898b94db355247de70904a75f3cedaa53a015aba5436221d codeSamplesNamespace: openapi-java-code-samples - codeSamplesRevisionDigest: sha256:1c08eda5b308ba860b37b9c9c6f8f02c8573b671e2e0c2d1c46e085fa452ac90 + codeSamplesRevisionDigest: sha256:99c68704c0b9ccbe42094f0bf374c3b597474b6f298538caeda4928803d05afc workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index cd3e03b6..fbdce426 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.106' +implementation 'com.gr4vy:sdk:2.16.107' ``` Maven: @@ -67,7 +67,7 @@ Maven: com.gr4vy sdk - 2.16.106 + 2.16.107 ``` diff --git a/RELEASES.md b/RELEASES.md index c2172196..91ba3142 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1898,4 +1898,14 @@ Based on: ### Generated - [java v2.16.106] . ### Releases -- [Maven Central v2.16.106] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.106 - . \ No newline at end of file +- [Maven Central v2.16.106] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.106 - . + +## 2026-07-10 00:31:25 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.789.1 (2.916.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v2.16.107] . +### Releases +- [Maven Central v2.16.107] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.16.107 - . \ No newline at end of file diff --git a/docs/models/components/MerchantAccount.md b/docs/models/components/MerchantAccount.md index d3a7d6bc..3f2ebbcb 100644 --- a/docs/models/components/MerchantAccount.md +++ b/docs/models/components/MerchantAccount.md @@ -11,6 +11,7 @@ | `loonClientKey` | *JsonNullable\* | :heavy_minus_sign: | Client key provided by Pagos to authenticate to the Loon API. Loon is the Account Updater service we use and if the field is not set or if it's set to null, the Account Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields must be set to null as well. | client-key-1234 | | `loonSecretKey` | *JsonNullable\* | :heavy_minus_sign: | Secret key provided by Pagos to authenticate to the Loon API. Loon is the Account Updater service we use and if the field is not set or if it's set to null, the Account Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields must be set to null as well. | key-12345 | | `loonAcceptedSchemes` | List\<[CardScheme](../../models/components/CardScheme.md)> | :heavy_minus_sign: | Card schemes accepted when creating jobs using this set of Loon API keys. Loon is the Account Updater service we use and if the field is not set or if it's set to null, the Account Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields must be set to null as well. | [
"visa"
] | +| `loonMerchantAccountId` | *JsonNullable\* | :heavy_minus_sign: | Merchant account ID provided by Pagos to identify this merchant account on the Loon API. Loon is the Account Updater service we use and if the field is not set or if it's set to null, the Account Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields must be set to null as well. | loon-merchant-account-1234 | | `accountUpdaterRequestEncryptionKey` | *JsonNullable\* | :heavy_minus_sign: | The public key used to encrypt the request to the Real-Time Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. If the field is not set or if it's set to `null`, the Account Updater service doesn't get called. If the field is set, the other `account_updater_*` fields must be set as well. | key-1234 | | `accountUpdaterRequestEncryptionKeyId` | *JsonNullable\* | :heavy_minus_sign: | The ID of the key used to encrypt the request to the Real-Time Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. If the field is not set or if it's set to `null`, the Account Updater service doesn't get called. If the field is set, the other `account_updater_*` fields must be set as well. | key-id-1234 | | `accountUpdaterResponseDecryptionKey` | *JsonNullable\* | :heavy_minus_sign: | The key used to decrypt the response from the Real-Time Account Updater service. The Account Updater service is used to update card details when cards are lost, stolen or expired. If the field is not set or if it's set to `null`, the Account Updater service doesn't get called. If the field is set, the other `account_updater_*` fields must be set as well. | key-1234 | diff --git a/docs/models/components/MerchantAccountCreate.md b/docs/models/components/MerchantAccountCreate.md index 2db67e0f..cc10f3d0 100644 --- a/docs/models/components/MerchantAccountCreate.md +++ b/docs/models/components/MerchantAccountCreate.md @@ -15,6 +15,7 @@ | `loonClientKey` | *JsonNullable\* | :heavy_minus_sign: | Client key provided by Pagos to authenticate to the Loon API. Loon is the Account Updater service we use and if the field is not set or if it's set to null, the Account Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields must be set to null as well. | client-key-1234 | | `loonSecretKey` | *JsonNullable\* | :heavy_minus_sign: | Secret key provided by Pagos to authenticate to the Loon API. Loon is the Account Updater service we use and if the field is not set or if it's set to null, the Account Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields must be set to null as well. | key-12345 | | `loonAcceptedSchemes` | List\<[CardScheme](../../models/components/CardScheme.md)> | :heavy_minus_sign: | Card schemes accepted when creating jobs using this set of Loon API keys. Loon is the Account Updater service we use and if the field is not set or if it's set to null, the Account Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields must be set to null as well. | [
"visa"
] | +| `loonMerchantAccountId` | *JsonNullable\* | :heavy_minus_sign: | Merchant account ID provided by Pagos to identify this merchant account on the Loon API. Loon is the Account Updater service we use and if the field is not set or if it's set to null, the Account Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields must be set to null as well. | loon-merchant-account-1234 | | `visaNetworkTokensRequestorId` | *JsonNullable\* | :heavy_minus_sign: | Requestor ID provided for Visa after onboarding to use Network Tokens. | id-12345 | | `visaNetworkTokensAppId` | *JsonNullable\* | :heavy_minus_sign: | Application ID provided for Visa after onboarding to use Network Tokens. | id-12345 | | `amexNetworkTokensRequestorId` | *JsonNullable\* | :heavy_minus_sign: | Requestor ID provided for American Express after onboarding to use Network Tokens. | id-12345 | diff --git a/docs/models/components/MerchantAccountUpdate.md b/docs/models/components/MerchantAccountUpdate.md index ae46e16d..20f9a8a2 100644 --- a/docs/models/components/MerchantAccountUpdate.md +++ b/docs/models/components/MerchantAccountUpdate.md @@ -15,6 +15,7 @@ | `loonClientKey` | *JsonNullable\* | :heavy_minus_sign: | Client key provided by Pagos to authenticate to the Loon API. Loon is the Account Updater service we use and if the field is not set or if it's set to null, the Account Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields must be set to null as well. | client-key-1234 | | `loonSecretKey` | *JsonNullable\* | :heavy_minus_sign: | Secret key provided by Pagos to authenticate to the Loon API. Loon is the Account Updater service we use and if the field is not set or if it's set to null, the Account Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields must be set to null as well. | key-12345 | | `loonAcceptedSchemes` | List\<[CardScheme](../../models/components/CardScheme.md)> | :heavy_minus_sign: | Card schemes accepted when creating jobs using this set of Loon API keys. Loon is the Account Updater service we use and if the field is not set or if it's set to null, the Account Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields must be set to null as well. | [
"visa"
] | +| `loonMerchantAccountId` | *JsonNullable\* | :heavy_minus_sign: | Merchant account ID provided by Pagos to identify this merchant account on the Loon API. Loon is the Account Updater service we use and if the field is not set or if it's set to null, the Account Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields must be set to null as well. | loon-merchant-account-1234 | | `visaNetworkTokensRequestorId` | *JsonNullable\* | :heavy_minus_sign: | Requestor ID provided for Visa after onboarding to use Network Tokens. | id-12345 | | `visaNetworkTokensAppId` | *JsonNullable\* | :heavy_minus_sign: | Application ID provided for Visa after onboarding to use Network Tokens. | id-12345 | | `amexNetworkTokensRequestorId` | *JsonNullable\* | :heavy_minus_sign: | Requestor ID provided for American Express after onboarding to use Network Tokens. | id-12345 | diff --git a/gradle.properties b/gradle.properties index 8fb0fcdc..6a425d35 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.gr4vy artifactId=sdk -version=2.16.106 +version=2.16.107 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 2c33d495..c4fad1fb 100644 --- a/src/main/java/com/gr4vy/sdk/SDKConfiguration.java +++ b/src/main/java/com/gr4vy/sdk/SDKConfiguration.java @@ -22,8 +22,8 @@ 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.106"; - public static final String GEN_VERSION = "2.916.2"; + public static final String SDK_VERSION = "2.16.107"; + public static final String GEN_VERSION = "2.916.4"; private static final String BASE_PACKAGE = "com.gr4vy.sdk"; public static final String USER_AGENT = String.format("speakeasy-sdk/%s %s %s %s %s", diff --git a/src/main/java/com/gr4vy/sdk/models/components/MerchantAccount.java b/src/main/java/com/gr4vy/sdk/models/components/MerchantAccount.java index 3b8eca75..1f981afc 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/MerchantAccount.java +++ b/src/main/java/com/gr4vy/sdk/models/components/MerchantAccount.java @@ -70,6 +70,16 @@ public class MerchantAccount { @JsonProperty("loon_accepted_schemes") private JsonNullable> loonAcceptedSchemes; + /** + * Merchant account ID provided by Pagos to identify this merchant account on the Loon API. Loon is the + * Account Updater service we use and if the field is not set or if it's set to null, the Account + * Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields + * must be set to null as well. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("loon_merchant_account_id") + private JsonNullable loonMerchantAccountId; + /** * The public key used to encrypt the request to the Real-Time Account Updater service. The Account * Updater service is used to update card details when cards are lost, stolen or expired. If the field @@ -225,6 +235,7 @@ public MerchantAccount( @JsonProperty("loon_client_key") JsonNullable loonClientKey, @JsonProperty("loon_secret_key") JsonNullable loonSecretKey, @JsonProperty("loon_accepted_schemes") JsonNullable> loonAcceptedSchemes, + @JsonProperty("loon_merchant_account_id") JsonNullable loonMerchantAccountId, @JsonProperty("account_updater_request_encryption_key") JsonNullable accountUpdaterRequestEncryptionKey, @JsonProperty("account_updater_request_encryption_key_id") JsonNullable accountUpdaterRequestEncryptionKeyId, @JsonProperty("account_updater_response_decryption_key") JsonNullable accountUpdaterResponseDecryptionKey, @@ -248,6 +259,7 @@ public MerchantAccount( Utils.checkNotNull(loonClientKey, "loonClientKey"); Utils.checkNotNull(loonSecretKey, "loonSecretKey"); Utils.checkNotNull(loonAcceptedSchemes, "loonAcceptedSchemes"); + Utils.checkNotNull(loonMerchantAccountId, "loonMerchantAccountId"); Utils.checkNotNull(accountUpdaterRequestEncryptionKey, "accountUpdaterRequestEncryptionKey"); Utils.checkNotNull(accountUpdaterRequestEncryptionKeyId, "accountUpdaterRequestEncryptionKeyId"); Utils.checkNotNull(accountUpdaterResponseDecryptionKey, "accountUpdaterResponseDecryptionKey"); @@ -272,6 +284,7 @@ public MerchantAccount( this.loonClientKey = loonClientKey; this.loonSecretKey = loonSecretKey; this.loonAcceptedSchemes = loonAcceptedSchemes; + this.loonMerchantAccountId = loonMerchantAccountId; this.accountUpdaterRequestEncryptionKey = accountUpdaterRequestEncryptionKey; this.accountUpdaterRequestEncryptionKeyId = accountUpdaterRequestEncryptionKeyId; this.accountUpdaterResponseDecryptionKey = accountUpdaterResponseDecryptionKey; @@ -301,11 +314,11 @@ public MerchantAccount( this(id, displayName, JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - accountUpdaterEnabled, JsonNullable.undefined(), JsonNullable.undefined(), + JsonNullable.undefined(), accountUpdaterEnabled, JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined(), JsonNullable.undefined(), Optional.empty(), - createdAt, updatedAt); + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + Optional.empty(), createdAt, updatedAt); } /** @@ -364,6 +377,17 @@ public JsonNullable> loonAcceptedSchemes() { return (JsonNullable>) loonAcceptedSchemes; } + /** + * Merchant account ID provided by Pagos to identify this merchant account on the Loon API. Loon is the + * Account Updater service we use and if the field is not set or if it's set to null, the Account + * Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields + * must be set to null as well. + */ + @JsonIgnore + public JsonNullable loonMerchantAccountId() { + return loonMerchantAccountId; + } + /** * The public key used to encrypt the request to the Real-Time Account Updater service. The Account * Updater service is used to update card details when cards are lost, stolen or expired. If the field @@ -624,6 +648,30 @@ public MerchantAccount withLoonAcceptedSchemes(JsonNullable loonMerchantAccountId) { + Utils.checkNotNull(loonMerchantAccountId, "loonMerchantAccountId"); + this.loonMerchantAccountId = loonMerchantAccountId; + return this; + } + /** * The public key used to encrypt the request to the Real-Time Account Updater service. The Account * Updater service is used to update card details when cards are lost, stolen or expired. If the field @@ -982,6 +1030,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.loonClientKey, other.loonClientKey) && Utils.enhancedDeepEquals(this.loonSecretKey, other.loonSecretKey) && Utils.enhancedDeepEquals(this.loonAcceptedSchemes, other.loonAcceptedSchemes) && + Utils.enhancedDeepEquals(this.loonMerchantAccountId, other.loonMerchantAccountId) && Utils.enhancedDeepEquals(this.accountUpdaterRequestEncryptionKey, other.accountUpdaterRequestEncryptionKey) && Utils.enhancedDeepEquals(this.accountUpdaterRequestEncryptionKeyId, other.accountUpdaterRequestEncryptionKeyId) && Utils.enhancedDeepEquals(this.accountUpdaterResponseDecryptionKey, other.accountUpdaterResponseDecryptionKey) && @@ -1007,12 +1056,13 @@ public int hashCode() { return Utils.enhancedHash( type, id, displayName, loonClientKey, loonSecretKey, loonAcceptedSchemes, - accountUpdaterRequestEncryptionKey, accountUpdaterRequestEncryptionKeyId, accountUpdaterResponseDecryptionKey, - accountUpdaterResponseDecryptionKeyId, accountUpdaterEnabled, overCaptureAmount, - overCapturePercentage, visaNetworkTokensRequestorId, visaNetworkTokensAppId, - amexNetworkTokensRequestorId, amexNetworkTokensAppId, mastercardNetworkTokensRequestorId, - mastercardNetworkTokensAppId, discoverNetworkTokensRequestorId, discoverNetworkTokensAppId, - asyncNetworkTokensEnabled, createdAt, updatedAt); + loonMerchantAccountId, accountUpdaterRequestEncryptionKey, accountUpdaterRequestEncryptionKeyId, + accountUpdaterResponseDecryptionKey, accountUpdaterResponseDecryptionKeyId, accountUpdaterEnabled, + overCaptureAmount, overCapturePercentage, visaNetworkTokensRequestorId, + visaNetworkTokensAppId, amexNetworkTokensRequestorId, amexNetworkTokensAppId, + mastercardNetworkTokensRequestorId, mastercardNetworkTokensAppId, discoverNetworkTokensRequestorId, + discoverNetworkTokensAppId, asyncNetworkTokensEnabled, createdAt, + updatedAt); } @Override @@ -1024,6 +1074,7 @@ public String toString() { "loonClientKey", loonClientKey, "loonSecretKey", loonSecretKey, "loonAcceptedSchemes", loonAcceptedSchemes, + "loonMerchantAccountId", loonMerchantAccountId, "accountUpdaterRequestEncryptionKey", accountUpdaterRequestEncryptionKey, "accountUpdaterRequestEncryptionKeyId", accountUpdaterRequestEncryptionKeyId, "accountUpdaterResponseDecryptionKey", accountUpdaterResponseDecryptionKey, @@ -1057,6 +1108,8 @@ public final static class Builder { private JsonNullable> loonAcceptedSchemes = JsonNullable.undefined(); + private JsonNullable loonMerchantAccountId = JsonNullable.undefined(); + private JsonNullable accountUpdaterRequestEncryptionKey = JsonNullable.undefined(); private JsonNullable accountUpdaterRequestEncryptionKeyId = JsonNullable.undefined(); @@ -1189,6 +1242,31 @@ public Builder loonAcceptedSchemes(JsonNullable> loon } + /** + * Merchant account ID provided by Pagos to identify this merchant account on the Loon API. Loon is the + * Account Updater service we use and if the field is not set or if it's set to null, the Account + * Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields + * must be set to null as well. + */ + public Builder loonMerchantAccountId(String loonMerchantAccountId) { + Utils.checkNotNull(loonMerchantAccountId, "loonMerchantAccountId"); + this.loonMerchantAccountId = JsonNullable.of(loonMerchantAccountId); + return this; + } + + /** + * Merchant account ID provided by Pagos to identify this merchant account on the Loon API. Loon is the + * Account Updater service we use and if the field is not set or if it's set to null, the Account + * Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields + * must be set to null as well. + */ + public Builder loonMerchantAccountId(JsonNullable loonMerchantAccountId) { + Utils.checkNotNull(loonMerchantAccountId, "loonMerchantAccountId"); + this.loonMerchantAccountId = loonMerchantAccountId; + return this; + } + + /** * The public key used to encrypt the request to the Real-Time Account Updater service. The Account * Updater service is used to update card details when cards are lost, stolen or expired. If the field @@ -1554,13 +1632,13 @@ public MerchantAccount build() { return new MerchantAccount( id, displayName, loonClientKey, - loonSecretKey, loonAcceptedSchemes, accountUpdaterRequestEncryptionKey, - accountUpdaterRequestEncryptionKeyId, accountUpdaterResponseDecryptionKey, accountUpdaterResponseDecryptionKeyId, - accountUpdaterEnabled, overCaptureAmount, overCapturePercentage, - visaNetworkTokensRequestorId, visaNetworkTokensAppId, amexNetworkTokensRequestorId, - amexNetworkTokensAppId, mastercardNetworkTokensRequestorId, mastercardNetworkTokensAppId, - discoverNetworkTokensRequestorId, discoverNetworkTokensAppId, asyncNetworkTokensEnabled, - createdAt, updatedAt); + loonSecretKey, loonAcceptedSchemes, loonMerchantAccountId, + accountUpdaterRequestEncryptionKey, accountUpdaterRequestEncryptionKeyId, accountUpdaterResponseDecryptionKey, + accountUpdaterResponseDecryptionKeyId, accountUpdaterEnabled, overCaptureAmount, + overCapturePercentage, visaNetworkTokensRequestorId, visaNetworkTokensAppId, + amexNetworkTokensRequestorId, amexNetworkTokensAppId, mastercardNetworkTokensRequestorId, + mastercardNetworkTokensAppId, discoverNetworkTokensRequestorId, discoverNetworkTokensAppId, + asyncNetworkTokensEnabled, createdAt, updatedAt); } diff --git a/src/main/java/com/gr4vy/sdk/models/components/MerchantAccountCreate.java b/src/main/java/com/gr4vy/sdk/models/components/MerchantAccountCreate.java index 6469d19f..4e6ee8f1 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/MerchantAccountCreate.java +++ b/src/main/java/com/gr4vy/sdk/models/components/MerchantAccountCreate.java @@ -123,6 +123,16 @@ public class MerchantAccountCreate { @JsonProperty("loon_accepted_schemes") private JsonNullable> loonAcceptedSchemes; + /** + * Merchant account ID provided by Pagos to identify this merchant account on the Loon API. Loon is the + * Account Updater service we use and if the field is not set or if it's set to null, the Account + * Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields + * must be set to null as well. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("loon_merchant_account_id") + private JsonNullable loonMerchantAccountId; + /** * Requestor ID provided for Visa after onboarding to use Network Tokens. */ @@ -211,6 +221,7 @@ public MerchantAccountCreate( @JsonProperty("loon_client_key") JsonNullable loonClientKey, @JsonProperty("loon_secret_key") JsonNullable loonSecretKey, @JsonProperty("loon_accepted_schemes") JsonNullable> loonAcceptedSchemes, + @JsonProperty("loon_merchant_account_id") JsonNullable loonMerchantAccountId, @JsonProperty("visa_network_tokens_requestor_id") JsonNullable visaNetworkTokensRequestorId, @JsonProperty("visa_network_tokens_app_id") JsonNullable visaNetworkTokensAppId, @JsonProperty("amex_network_tokens_requestor_id") JsonNullable amexNetworkTokensRequestorId, @@ -232,6 +243,7 @@ public MerchantAccountCreate( Utils.checkNotNull(loonClientKey, "loonClientKey"); Utils.checkNotNull(loonSecretKey, "loonSecretKey"); Utils.checkNotNull(loonAcceptedSchemes, "loonAcceptedSchemes"); + Utils.checkNotNull(loonMerchantAccountId, "loonMerchantAccountId"); Utils.checkNotNull(visaNetworkTokensRequestorId, "visaNetworkTokensRequestorId"); Utils.checkNotNull(visaNetworkTokensAppId, "visaNetworkTokensAppId"); Utils.checkNotNull(amexNetworkTokensRequestorId, "amexNetworkTokensRequestorId"); @@ -253,6 +265,7 @@ public MerchantAccountCreate( this.loonClientKey = loonClientKey; this.loonSecretKey = loonSecretKey; this.loonAcceptedSchemes = loonAcceptedSchemes; + this.loonMerchantAccountId = loonMerchantAccountId; this.visaNetworkTokensRequestorId = visaNetworkTokensRequestorId; this.visaNetworkTokensAppId = visaNetworkTokensAppId; this.amexNetworkTokensRequestorId = amexNetworkTokensRequestorId; @@ -275,7 +288,8 @@ public MerchantAccountCreate( JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - Optional.empty(), id, displayName); + JsonNullable.undefined(), Optional.empty(), id, + displayName); } /** @@ -390,6 +404,17 @@ public JsonNullable> loonAcceptedSchemes() { return (JsonNullable>) loonAcceptedSchemes; } + /** + * Merchant account ID provided by Pagos to identify this merchant account on the Loon API. Loon is the + * Account Updater service we use and if the field is not set or if it's set to null, the Account + * Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields + * must be set to null as well. + */ + @JsonIgnore + public JsonNullable loonMerchantAccountId() { + return loonMerchantAccountId; + } + /** * Requestor ID provided for Visa after onboarding to use Network Tokens. */ @@ -727,6 +752,30 @@ public MerchantAccountCreate withLoonAcceptedSchemes(JsonNullable loonMerchantAccountId) { + Utils.checkNotNull(loonMerchantAccountId, "loonMerchantAccountId"); + this.loonMerchantAccountId = loonMerchantAccountId; + return this; + } + /** * Requestor ID provided for Visa after onboarding to use Network Tokens. */ @@ -930,6 +979,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.loonClientKey, other.loonClientKey) && Utils.enhancedDeepEquals(this.loonSecretKey, other.loonSecretKey) && Utils.enhancedDeepEquals(this.loonAcceptedSchemes, other.loonAcceptedSchemes) && + Utils.enhancedDeepEquals(this.loonMerchantAccountId, other.loonMerchantAccountId) && Utils.enhancedDeepEquals(this.visaNetworkTokensRequestorId, other.visaNetworkTokensRequestorId) && Utils.enhancedDeepEquals(this.visaNetworkTokensAppId, other.visaNetworkTokensAppId) && Utils.enhancedDeepEquals(this.amexNetworkTokensRequestorId, other.amexNetworkTokensRequestorId) && @@ -949,10 +999,11 @@ public int hashCode() { accountUpdaterEnabled, accountUpdaterRequestEncryptionKey, accountUpdaterRequestEncryptionKeyId, accountUpdaterResponseDecryptionKey, accountUpdaterResponseDecryptionKeyId, overCaptureAmount, overCapturePercentage, loonClientKey, loonSecretKey, - loonAcceptedSchemes, visaNetworkTokensRequestorId, visaNetworkTokensAppId, - amexNetworkTokensRequestorId, amexNetworkTokensAppId, mastercardNetworkTokensRequestorId, - mastercardNetworkTokensAppId, discoverNetworkTokensRequestorId, discoverNetworkTokensAppId, - asyncNetworkTokensEnabled, id, displayName); + loonAcceptedSchemes, loonMerchantAccountId, visaNetworkTokensRequestorId, + visaNetworkTokensAppId, amexNetworkTokensRequestorId, amexNetworkTokensAppId, + mastercardNetworkTokensRequestorId, mastercardNetworkTokensAppId, discoverNetworkTokensRequestorId, + discoverNetworkTokensAppId, asyncNetworkTokensEnabled, id, + displayName); } @Override @@ -968,6 +1019,7 @@ public String toString() { "loonClientKey", loonClientKey, "loonSecretKey", loonSecretKey, "loonAcceptedSchemes", loonAcceptedSchemes, + "loonMerchantAccountId", loonMerchantAccountId, "visaNetworkTokensRequestorId", visaNetworkTokensRequestorId, "visaNetworkTokensAppId", visaNetworkTokensAppId, "amexNetworkTokensRequestorId", amexNetworkTokensRequestorId, @@ -1004,6 +1056,8 @@ public final static class Builder { private JsonNullable> loonAcceptedSchemes = JsonNullable.undefined(); + private JsonNullable loonMerchantAccountId = JsonNullable.undefined(); + private JsonNullable visaNetworkTokensRequestorId = JsonNullable.undefined(); private JsonNullable visaNetworkTokensAppId = JsonNullable.undefined(); @@ -1283,6 +1337,31 @@ public Builder loonAcceptedSchemes(JsonNullable> loon } + /** + * Merchant account ID provided by Pagos to identify this merchant account on the Loon API. Loon is the + * Account Updater service we use and if the field is not set or if it's set to null, the Account + * Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields + * must be set to null as well. + */ + public Builder loonMerchantAccountId(String loonMerchantAccountId) { + Utils.checkNotNull(loonMerchantAccountId, "loonMerchantAccountId"); + this.loonMerchantAccountId = JsonNullable.of(loonMerchantAccountId); + return this; + } + + /** + * Merchant account ID provided by Pagos to identify this merchant account on the Loon API. Loon is the + * Account Updater service we use and if the field is not set or if it's set to null, the Account + * Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields + * must be set to null as well. + */ + public Builder loonMerchantAccountId(JsonNullable loonMerchantAccountId) { + Utils.checkNotNull(loonMerchantAccountId, "loonMerchantAccountId"); + this.loonMerchantAccountId = loonMerchantAccountId; + return this; + } + + /** * Requestor ID provided for Visa after onboarding to use Network Tokens. */ @@ -1487,10 +1566,11 @@ public MerchantAccountCreate build() { accountUpdaterEnabled, accountUpdaterRequestEncryptionKey, accountUpdaterRequestEncryptionKeyId, accountUpdaterResponseDecryptionKey, accountUpdaterResponseDecryptionKeyId, overCaptureAmount, overCapturePercentage, loonClientKey, loonSecretKey, - loonAcceptedSchemes, visaNetworkTokensRequestorId, visaNetworkTokensAppId, - amexNetworkTokensRequestorId, amexNetworkTokensAppId, mastercardNetworkTokensRequestorId, - mastercardNetworkTokensAppId, discoverNetworkTokensRequestorId, discoverNetworkTokensAppId, - asyncNetworkTokensEnabled, id, displayName); + loonAcceptedSchemes, loonMerchantAccountId, visaNetworkTokensRequestorId, + visaNetworkTokensAppId, amexNetworkTokensRequestorId, amexNetworkTokensAppId, + mastercardNetworkTokensRequestorId, mastercardNetworkTokensAppId, discoverNetworkTokensRequestorId, + discoverNetworkTokensAppId, asyncNetworkTokensEnabled, id, + displayName); } diff --git a/src/main/java/com/gr4vy/sdk/models/components/MerchantAccountUpdate.java b/src/main/java/com/gr4vy/sdk/models/components/MerchantAccountUpdate.java index d02b2fb7..38fccfe5 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/MerchantAccountUpdate.java +++ b/src/main/java/com/gr4vy/sdk/models/components/MerchantAccountUpdate.java @@ -123,6 +123,16 @@ public class MerchantAccountUpdate { @JsonProperty("loon_accepted_schemes") private JsonNullable> loonAcceptedSchemes; + /** + * Merchant account ID provided by Pagos to identify this merchant account on the Loon API. Loon is the + * Account Updater service we use and if the field is not set or if it's set to null, the Account + * Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields + * must be set to null as well. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("loon_merchant_account_id") + private JsonNullable loonMerchantAccountId; + /** * Requestor ID provided for Visa after onboarding to use Network Tokens. */ @@ -206,6 +216,7 @@ public MerchantAccountUpdate( @JsonProperty("loon_client_key") JsonNullable loonClientKey, @JsonProperty("loon_secret_key") JsonNullable loonSecretKey, @JsonProperty("loon_accepted_schemes") JsonNullable> loonAcceptedSchemes, + @JsonProperty("loon_merchant_account_id") JsonNullable loonMerchantAccountId, @JsonProperty("visa_network_tokens_requestor_id") JsonNullable visaNetworkTokensRequestorId, @JsonProperty("visa_network_tokens_app_id") JsonNullable visaNetworkTokensAppId, @JsonProperty("amex_network_tokens_requestor_id") JsonNullable amexNetworkTokensRequestorId, @@ -226,6 +237,7 @@ public MerchantAccountUpdate( Utils.checkNotNull(loonClientKey, "loonClientKey"); Utils.checkNotNull(loonSecretKey, "loonSecretKey"); Utils.checkNotNull(loonAcceptedSchemes, "loonAcceptedSchemes"); + Utils.checkNotNull(loonMerchantAccountId, "loonMerchantAccountId"); Utils.checkNotNull(visaNetworkTokensRequestorId, "visaNetworkTokensRequestorId"); Utils.checkNotNull(visaNetworkTokensAppId, "visaNetworkTokensAppId"); Utils.checkNotNull(amexNetworkTokensRequestorId, "amexNetworkTokensRequestorId"); @@ -246,6 +258,7 @@ public MerchantAccountUpdate( this.loonClientKey = loonClientKey; this.loonSecretKey = loonSecretKey; this.loonAcceptedSchemes = loonAcceptedSchemes; + this.loonMerchantAccountId = loonMerchantAccountId; this.visaNetworkTokensRequestorId = visaNetworkTokensRequestorId; this.visaNetworkTokensAppId = visaNetworkTokensAppId; this.amexNetworkTokensRequestorId = amexNetworkTokensRequestorId; @@ -265,7 +278,7 @@ public MerchantAccountUpdate() { JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - Optional.empty(), JsonNullable.undefined()); + JsonNullable.undefined(), Optional.empty(), JsonNullable.undefined()); } /** @@ -380,6 +393,17 @@ public JsonNullable> loonAcceptedSchemes() { return (JsonNullable>) loonAcceptedSchemes; } + /** + * Merchant account ID provided by Pagos to identify this merchant account on the Loon API. Loon is the + * Account Updater service we use and if the field is not set or if it's set to null, the Account + * Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields + * must be set to null as well. + */ + @JsonIgnore + public JsonNullable loonMerchantAccountId() { + return loonMerchantAccountId; + } + /** * Requestor ID provided for Visa after onboarding to use Network Tokens. */ @@ -709,6 +733,30 @@ public MerchantAccountUpdate withLoonAcceptedSchemes(JsonNullable loonMerchantAccountId) { + Utils.checkNotNull(loonMerchantAccountId, "loonMerchantAccountId"); + this.loonMerchantAccountId = loonMerchantAccountId; + return this; + } + /** * Requestor ID provided for Visa after onboarding to use Network Tokens. */ @@ -912,6 +960,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.loonClientKey, other.loonClientKey) && Utils.enhancedDeepEquals(this.loonSecretKey, other.loonSecretKey) && Utils.enhancedDeepEquals(this.loonAcceptedSchemes, other.loonAcceptedSchemes) && + Utils.enhancedDeepEquals(this.loonMerchantAccountId, other.loonMerchantAccountId) && Utils.enhancedDeepEquals(this.visaNetworkTokensRequestorId, other.visaNetworkTokensRequestorId) && Utils.enhancedDeepEquals(this.visaNetworkTokensAppId, other.visaNetworkTokensAppId) && Utils.enhancedDeepEquals(this.amexNetworkTokensRequestorId, other.amexNetworkTokensRequestorId) && @@ -930,10 +979,10 @@ public int hashCode() { accountUpdaterEnabled, accountUpdaterRequestEncryptionKey, accountUpdaterRequestEncryptionKeyId, accountUpdaterResponseDecryptionKey, accountUpdaterResponseDecryptionKeyId, overCaptureAmount, overCapturePercentage, loonClientKey, loonSecretKey, - loonAcceptedSchemes, visaNetworkTokensRequestorId, visaNetworkTokensAppId, - amexNetworkTokensRequestorId, amexNetworkTokensAppId, mastercardNetworkTokensRequestorId, - mastercardNetworkTokensAppId, discoverNetworkTokensRequestorId, discoverNetworkTokensAppId, - asyncNetworkTokensEnabled, displayName); + loonAcceptedSchemes, loonMerchantAccountId, visaNetworkTokensRequestorId, + visaNetworkTokensAppId, amexNetworkTokensRequestorId, amexNetworkTokensAppId, + mastercardNetworkTokensRequestorId, mastercardNetworkTokensAppId, discoverNetworkTokensRequestorId, + discoverNetworkTokensAppId, asyncNetworkTokensEnabled, displayName); } @Override @@ -949,6 +998,7 @@ public String toString() { "loonClientKey", loonClientKey, "loonSecretKey", loonSecretKey, "loonAcceptedSchemes", loonAcceptedSchemes, + "loonMerchantAccountId", loonMerchantAccountId, "visaNetworkTokensRequestorId", visaNetworkTokensRequestorId, "visaNetworkTokensAppId", visaNetworkTokensAppId, "amexNetworkTokensRequestorId", amexNetworkTokensRequestorId, @@ -984,6 +1034,8 @@ public final static class Builder { private JsonNullable> loonAcceptedSchemes = JsonNullable.undefined(); + private JsonNullable loonMerchantAccountId = JsonNullable.undefined(); + private JsonNullable visaNetworkTokensRequestorId = JsonNullable.undefined(); private JsonNullable visaNetworkTokensAppId = JsonNullable.undefined(); @@ -1261,6 +1313,31 @@ public Builder loonAcceptedSchemes(JsonNullable> loon } + /** + * Merchant account ID provided by Pagos to identify this merchant account on the Loon API. Loon is the + * Account Updater service we use and if the field is not set or if it's set to null, the Account + * Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields + * must be set to null as well. + */ + public Builder loonMerchantAccountId(String loonMerchantAccountId) { + Utils.checkNotNull(loonMerchantAccountId, "loonMerchantAccountId"); + this.loonMerchantAccountId = JsonNullable.of(loonMerchantAccountId); + return this; + } + + /** + * Merchant account ID provided by Pagos to identify this merchant account on the Loon API. Loon is the + * Account Updater service we use and if the field is not set or if it's set to null, the Account + * Updater service doesn't get configured. If the field is set to `null`, the other `loon_*` fields + * must be set to null as well. + */ + public Builder loonMerchantAccountId(JsonNullable loonMerchantAccountId) { + Utils.checkNotNull(loonMerchantAccountId, "loonMerchantAccountId"); + this.loonMerchantAccountId = loonMerchantAccountId; + return this; + } + + /** * Requestor ID provided for Visa after onboarding to use Network Tokens. */ @@ -1464,10 +1541,10 @@ public MerchantAccountUpdate build() { accountUpdaterEnabled, accountUpdaterRequestEncryptionKey, accountUpdaterRequestEncryptionKeyId, accountUpdaterResponseDecryptionKey, accountUpdaterResponseDecryptionKeyId, overCaptureAmount, overCapturePercentage, loonClientKey, loonSecretKey, - loonAcceptedSchemes, visaNetworkTokensRequestorId, visaNetworkTokensAppId, - amexNetworkTokensRequestorId, amexNetworkTokensAppId, mastercardNetworkTokensRequestorId, - mastercardNetworkTokensAppId, discoverNetworkTokensRequestorId, discoverNetworkTokensAppId, - asyncNetworkTokensEnabled, displayName); + loonAcceptedSchemes, loonMerchantAccountId, visaNetworkTokensRequestorId, + visaNetworkTokensAppId, amexNetworkTokensRequestorId, amexNetworkTokensAppId, + mastercardNetworkTokensRequestorId, mastercardNetworkTokensAppId, discoverNetworkTokensRequestorId, + discoverNetworkTokensAppId, asyncNetworkTokensEnabled, displayName); } From 673e51a86a890795ced6c6f3ddc6a2c73a7cd3dc Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2026 00:33:44 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow